1 | #! /bin/sh |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | # Guess values for system-dependent variables and create Makefiles. |
---|
27 | # Generated automatically using autoconf version 2.13 |
---|
28 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
29 | # |
---|
30 | # This configure script is free software; the Free Software Foundation |
---|
31 | # gives unlimited permission to copy, distribute and modify it. |
---|
32 | |
---|
33 | # Defaults: |
---|
34 | ac_help= |
---|
35 | ac_default_prefix=/usr/local |
---|
36 | # Any additions from configure.in: |
---|
37 | ac_help="$ac_help |
---|
38 | --with-cross-host=HOST host (cygnus)" |
---|
39 | ac_help="$ac_help |
---|
40 | --enable-gmake-print-directory enable GNU Make's print directory" |
---|
41 | ac_help="$ac_help |
---|
42 | --enable-multiprocessing enable multiprocessing interface" |
---|
43 | ac_help="$ac_help |
---|
44 | --enable-posix enable posix interface" |
---|
45 | ac_help="$ac_help |
---|
46 | --enable-networking enable TCP/IP stack" |
---|
47 | ac_help="$ac_help |
---|
48 | --enable-rdbg enable remote debugger" |
---|
49 | ac_help="$ac_help |
---|
50 | --enable-rtems-inlines enable RTEMS inline functions |
---|
51 | (default:enabled, disable to use macros)" |
---|
52 | ac_help="$ac_help |
---|
53 | --enable-cxx enable C++ support, |
---|
54 | and build the rtems++ library" |
---|
55 | ac_help="$ac_help |
---|
56 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
57 | ac_help="$ac_help |
---|
58 | --enable-libcdir=directory set the directory for the C library" |
---|
59 | ac_help="$ac_help |
---|
60 | --enable-bare-cpu-cflags specify a particular cpu cflag |
---|
61 | (bare bsp specific)" |
---|
62 | ac_help="$ac_help |
---|
63 | --enable-bare-cpu-model specify a particular cpu model |
---|
64 | (bare bsp specific)" |
---|
65 | ac_help="$ac_help |
---|
66 | \ |
---|
67 | --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build" |
---|
68 | ac_help="$ac_help |
---|
69 | --enable-tests enable tests (default:disabled)" |
---|
70 | ac_help="$ac_help |
---|
71 | \ |
---|
72 | --enable-hwapi enable hardware API library" |
---|
73 | |
---|
74 | # Initialize some variables set by options. |
---|
75 | # The variables have the same names as the options, with |
---|
76 | # dashes changed to underlines. |
---|
77 | build=NONE |
---|
78 | cache_file=./config.cache |
---|
79 | exec_prefix=NONE |
---|
80 | host=NONE |
---|
81 | no_create= |
---|
82 | nonopt=NONE |
---|
83 | no_recursion= |
---|
84 | prefix=NONE |
---|
85 | program_prefix=NONE |
---|
86 | program_suffix=NONE |
---|
87 | program_transform_name=s,x,x, |
---|
88 | silent= |
---|
89 | site= |
---|
90 | srcdir= |
---|
91 | target=NONE |
---|
92 | verbose= |
---|
93 | x_includes=NONE |
---|
94 | x_libraries=NONE |
---|
95 | bindir='${exec_prefix}/bin' |
---|
96 | sbindir='${exec_prefix}/sbin' |
---|
97 | libexecdir='${exec_prefix}/libexec' |
---|
98 | datadir='${prefix}/share' |
---|
99 | sysconfdir='${prefix}/etc' |
---|
100 | sharedstatedir='${prefix}/com' |
---|
101 | localstatedir='${prefix}/var' |
---|
102 | libdir='${exec_prefix}/lib' |
---|
103 | includedir='${prefix}/include' |
---|
104 | oldincludedir='/usr/include' |
---|
105 | infodir='${prefix}/info' |
---|
106 | mandir='${prefix}/man' |
---|
107 | |
---|
108 | # Initialize some other variables. |
---|
109 | subdirs= |
---|
110 | MFLAGS= MAKEFLAGS= |
---|
111 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
112 | # Maximum number of lines to put in a shell here document. |
---|
113 | ac_max_here_lines=12 |
---|
114 | |
---|
115 | ac_prev= |
---|
116 | for ac_option |
---|
117 | do |
---|
118 | |
---|
119 | # If the previous option needs an argument, assign it. |
---|
120 | if test -n "$ac_prev"; then |
---|
121 | eval "$ac_prev=\$ac_option" |
---|
122 | ac_prev= |
---|
123 | continue |
---|
124 | fi |
---|
125 | |
---|
126 | case "$ac_option" in |
---|
127 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
128 | *) ac_optarg= ;; |
---|
129 | esac |
---|
130 | |
---|
131 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
132 | |
---|
133 | case "$ac_option" in |
---|
134 | |
---|
135 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
136 | ac_prev=bindir ;; |
---|
137 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
138 | bindir="$ac_optarg" ;; |
---|
139 | |
---|
140 | -build | --build | --buil | --bui | --bu) |
---|
141 | ac_prev=build ;; |
---|
142 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
143 | build="$ac_optarg" ;; |
---|
144 | |
---|
145 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
146 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
147 | ac_prev=cache_file ;; |
---|
148 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
149 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
150 | cache_file="$ac_optarg" ;; |
---|
151 | |
---|
152 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
153 | ac_prev=datadir ;; |
---|
154 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
155 | | --da=*) |
---|
156 | datadir="$ac_optarg" ;; |
---|
157 | |
---|
158 | -disable-* | --disable-*) |
---|
159 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
160 | # Reject names that are not valid shell variable names. |
---|
161 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
162 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
163 | fi |
---|
164 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
165 | eval "enable_${ac_feature}=no" ;; |
---|
166 | |
---|
167 | -enable-* | --enable-*) |
---|
168 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
169 | # Reject names that are not valid shell variable names. |
---|
170 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
171 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
172 | fi |
---|
173 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
174 | case "$ac_option" in |
---|
175 | *=*) ;; |
---|
176 | *) ac_optarg=yes ;; |
---|
177 | esac |
---|
178 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
179 | |
---|
180 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
181 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
182 | | --exec | --exe | --ex) |
---|
183 | ac_prev=exec_prefix ;; |
---|
184 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
185 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
186 | | --exec=* | --exe=* | --ex=*) |
---|
187 | exec_prefix="$ac_optarg" ;; |
---|
188 | |
---|
189 | -gas | --gas | --ga | --g) |
---|
190 | # Obsolete; use --with-gas. |
---|
191 | with_gas=yes ;; |
---|
192 | |
---|
193 | -help | --help | --hel | --he) |
---|
194 | # Omit some internal or obsolete options to make the list less imposing. |
---|
195 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
196 | cat << EOF |
---|
197 | Usage: configure [options] [host] |
---|
198 | Options: [defaults in brackets after descriptions] |
---|
199 | Configuration: |
---|
200 | --cache-file=FILE cache test results in FILE |
---|
201 | --help print this message |
---|
202 | --no-create do not create output files |
---|
203 | --quiet, --silent do not print \`checking...' messages |
---|
204 | --version print the version of autoconf that created configure |
---|
205 | Directory and file names: |
---|
206 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
207 | [$ac_default_prefix] |
---|
208 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
209 | [same as prefix] |
---|
210 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
211 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
212 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
213 | --datadir=DIR read-only architecture-independent data in DIR |
---|
214 | [PREFIX/share] |
---|
215 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
216 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
217 | [PREFIX/com] |
---|
218 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
219 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
220 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
221 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
222 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
223 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
224 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
225 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
226 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
227 | --program-transform-name=PROGRAM |
---|
228 | run sed PROGRAM on installed program names |
---|
229 | EOF |
---|
230 | cat << EOF |
---|
231 | Host type: |
---|
232 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
233 | --host=HOST configure for HOST [guessed] |
---|
234 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
235 | Features and packages: |
---|
236 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
237 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
238 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
239 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
240 | --x-includes=DIR X include files are in DIR |
---|
241 | --x-libraries=DIR X library files are in DIR |
---|
242 | EOF |
---|
243 | if test -n "$ac_help"; then |
---|
244 | echo "--enable and --with options recognized:$ac_help" |
---|
245 | fi |
---|
246 | exit 0 ;; |
---|
247 | |
---|
248 | -host | --host | --hos | --ho) |
---|
249 | ac_prev=host ;; |
---|
250 | -host=* | --host=* | --hos=* | --ho=*) |
---|
251 | host="$ac_optarg" ;; |
---|
252 | |
---|
253 | -includedir | --includedir | --includedi | --included | --include \ |
---|
254 | | --includ | --inclu | --incl | --inc) |
---|
255 | ac_prev=includedir ;; |
---|
256 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
257 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
258 | includedir="$ac_optarg" ;; |
---|
259 | |
---|
260 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
261 | ac_prev=infodir ;; |
---|
262 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
263 | infodir="$ac_optarg" ;; |
---|
264 | |
---|
265 | -libdir | --libdir | --libdi | --libd) |
---|
266 | ac_prev=libdir ;; |
---|
267 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
268 | libdir="$ac_optarg" ;; |
---|
269 | |
---|
270 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
271 | | --libexe | --libex | --libe) |
---|
272 | ac_prev=libexecdir ;; |
---|
273 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
274 | | --libexe=* | --libex=* | --libe=*) |
---|
275 | libexecdir="$ac_optarg" ;; |
---|
276 | |
---|
277 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
278 | | --localstate | --localstat | --localsta | --localst \ |
---|
279 | | --locals | --local | --loca | --loc | --lo) |
---|
280 | ac_prev=localstatedir ;; |
---|
281 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
282 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
283 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
284 | localstatedir="$ac_optarg" ;; |
---|
285 | |
---|
286 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
287 | ac_prev=mandir ;; |
---|
288 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
289 | mandir="$ac_optarg" ;; |
---|
290 | |
---|
291 | -nfp | --nfp | --nf) |
---|
292 | # Obsolete; use --without-fp. |
---|
293 | with_fp=no ;; |
---|
294 | |
---|
295 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
296 | | --no-cr | --no-c) |
---|
297 | no_create=yes ;; |
---|
298 | |
---|
299 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
300 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
301 | no_recursion=yes ;; |
---|
302 | |
---|
303 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
304 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
305 | | --oldin | --oldi | --old | --ol | --o) |
---|
306 | ac_prev=oldincludedir ;; |
---|
307 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
308 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
309 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
310 | oldincludedir="$ac_optarg" ;; |
---|
311 | |
---|
312 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
313 | ac_prev=prefix ;; |
---|
314 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
315 | prefix="$ac_optarg" ;; |
---|
316 | |
---|
317 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
318 | | --program-pre | --program-pr | --program-p) |
---|
319 | ac_prev=program_prefix ;; |
---|
320 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
321 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
322 | program_prefix="$ac_optarg" ;; |
---|
323 | |
---|
324 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
325 | | --program-suf | --program-su | --program-s) |
---|
326 | ac_prev=program_suffix ;; |
---|
327 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
328 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
329 | program_suffix="$ac_optarg" ;; |
---|
330 | |
---|
331 | -program-transform-name | --program-transform-name \ |
---|
332 | | --program-transform-nam | --program-transform-na \ |
---|
333 | | --program-transform-n | --program-transform- \ |
---|
334 | | --program-transform | --program-transfor \ |
---|
335 | | --program-transfo | --program-transf \ |
---|
336 | | --program-trans | --program-tran \ |
---|
337 | | --progr-tra | --program-tr | --program-t) |
---|
338 | ac_prev=program_transform_name ;; |
---|
339 | -program-transform-name=* | --program-transform-name=* \ |
---|
340 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
341 | | --program-transform-n=* | --program-transform-=* \ |
---|
342 | | --program-transform=* | --program-transfor=* \ |
---|
343 | | --program-transfo=* | --program-transf=* \ |
---|
344 | | --program-trans=* | --program-tran=* \ |
---|
345 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
346 | program_transform_name="$ac_optarg" ;; |
---|
347 | |
---|
348 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
349 | | -silent | --silent | --silen | --sile | --sil) |
---|
350 | silent=yes ;; |
---|
351 | |
---|
352 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
353 | ac_prev=sbindir ;; |
---|
354 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
355 | | --sbi=* | --sb=*) |
---|
356 | sbindir="$ac_optarg" ;; |
---|
357 | |
---|
358 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
359 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
360 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
361 | | --sha | --sh) |
---|
362 | ac_prev=sharedstatedir ;; |
---|
363 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
364 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
365 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
366 | | --sha=* | --sh=*) |
---|
367 | sharedstatedir="$ac_optarg" ;; |
---|
368 | |
---|
369 | -site | --site | --sit) |
---|
370 | ac_prev=site ;; |
---|
371 | -site=* | --site=* | --sit=*) |
---|
372 | site="$ac_optarg" ;; |
---|
373 | |
---|
374 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
375 | ac_prev=srcdir ;; |
---|
376 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
377 | srcdir="$ac_optarg" ;; |
---|
378 | |
---|
379 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
380 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
381 | ac_prev=sysconfdir ;; |
---|
382 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
383 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
384 | sysconfdir="$ac_optarg" ;; |
---|
385 | |
---|
386 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
387 | ac_prev=target ;; |
---|
388 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
389 | target="$ac_optarg" ;; |
---|
390 | |
---|
391 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
392 | verbose=yes ;; |
---|
393 | |
---|
394 | -version | --version | --versio | --versi | --vers) |
---|
395 | echo "configure generated by autoconf version 2.13" |
---|
396 | exit 0 ;; |
---|
397 | |
---|
398 | -with-* | --with-*) |
---|
399 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
400 | # Reject names that are not valid shell variable names. |
---|
401 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
402 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
403 | fi |
---|
404 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
405 | case "$ac_option" in |
---|
406 | *=*) ;; |
---|
407 | *) ac_optarg=yes ;; |
---|
408 | esac |
---|
409 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
410 | |
---|
411 | -without-* | --without-*) |
---|
412 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
413 | # Reject names that are not valid shell variable names. |
---|
414 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
415 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
416 | fi |
---|
417 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
418 | eval "with_${ac_package}=no" ;; |
---|
419 | |
---|
420 | --x) |
---|
421 | # Obsolete; use --with-x. |
---|
422 | with_x=yes ;; |
---|
423 | |
---|
424 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
425 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
426 | ac_prev=x_includes ;; |
---|
427 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
428 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
429 | x_includes="$ac_optarg" ;; |
---|
430 | |
---|
431 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
432 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
433 | ac_prev=x_libraries ;; |
---|
434 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
435 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
436 | x_libraries="$ac_optarg" ;; |
---|
437 | |
---|
438 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
439 | ;; |
---|
440 | |
---|
441 | *) |
---|
442 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
443 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
444 | fi |
---|
445 | if test "x$nonopt" != xNONE; then |
---|
446 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
447 | fi |
---|
448 | nonopt="$ac_option" |
---|
449 | ;; |
---|
450 | |
---|
451 | esac |
---|
452 | done |
---|
453 | |
---|
454 | if test -n "$ac_prev"; then |
---|
455 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
456 | fi |
---|
457 | |
---|
458 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
459 | |
---|
460 | # File descriptor usage: |
---|
461 | # 0 standard input |
---|
462 | # 1 file creation |
---|
463 | # 2 errors and warnings |
---|
464 | # 3 some systems may open it to /dev/tty |
---|
465 | # 4 used on the Kubota Titan |
---|
466 | # 6 checking for... messages and results |
---|
467 | # 5 compiler messages saved in config.log |
---|
468 | if test "$silent" = yes; then |
---|
469 | exec 6>/dev/null |
---|
470 | else |
---|
471 | exec 6>&1 |
---|
472 | fi |
---|
473 | exec 5>./config.log |
---|
474 | |
---|
475 | echo "\ |
---|
476 | This file contains any messages produced by compilers while |
---|
477 | running configure, to aid debugging if configure makes a mistake. |
---|
478 | " 1>&5 |
---|
479 | |
---|
480 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
481 | # Also quote any args containing shell metacharacters. |
---|
482 | ac_configure_args= |
---|
483 | for ac_arg |
---|
484 | do |
---|
485 | case "$ac_arg" in |
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
487 | | --no-cr | --no-c) ;; |
---|
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
490 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
491 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
492 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
493 | esac |
---|
494 | done |
---|
495 | |
---|
496 | # NLS nuisances. |
---|
497 | # Only set these to C if already set. These must not be set unconditionally |
---|
498 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
499 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
500 | # Non-C LC_CTYPE values break the ctype check. |
---|
501 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
502 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
503 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
504 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
505 | |
---|
506 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
507 | rm -rf conftest* confdefs.h |
---|
508 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
509 | echo > confdefs.h |
---|
510 | |
---|
511 | # A filename unique to this package, relative to the directory that |
---|
512 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
513 | ac_unique_file=README |
---|
514 | |
---|
515 | # Find the source files, if location was not specified. |
---|
516 | if test -z "$srcdir"; then |
---|
517 | ac_srcdir_defaulted=yes |
---|
518 | # Try the directory containing this script, then its parent. |
---|
519 | ac_prog=$0 |
---|
520 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
521 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
522 | srcdir=$ac_confdir |
---|
523 | if test ! -r $srcdir/$ac_unique_file; then |
---|
524 | srcdir=.. |
---|
525 | fi |
---|
526 | else |
---|
527 | ac_srcdir_defaulted=no |
---|
528 | fi |
---|
529 | if test ! -r $srcdir/$ac_unique_file; then |
---|
530 | if test "$ac_srcdir_defaulted" = yes; then |
---|
531 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
532 | else |
---|
533 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
534 | fi |
---|
535 | fi |
---|
536 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
537 | |
---|
538 | # Prefer explicitly selected file to automatically selected ones. |
---|
539 | if test -z "$CONFIG_SITE"; then |
---|
540 | if test "x$prefix" != xNONE; then |
---|
541 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
542 | else |
---|
543 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
544 | fi |
---|
545 | fi |
---|
546 | for ac_site_file in $CONFIG_SITE; do |
---|
547 | if test -r "$ac_site_file"; then |
---|
548 | echo "loading site script $ac_site_file" |
---|
549 | . "$ac_site_file" |
---|
550 | fi |
---|
551 | done |
---|
552 | |
---|
553 | if test -r "$cache_file"; then |
---|
554 | echo "loading cache $cache_file" |
---|
555 | . $cache_file |
---|
556 | else |
---|
557 | echo "creating cache $cache_file" |
---|
558 | > $cache_file |
---|
559 | fi |
---|
560 | |
---|
561 | ac_ext=c |
---|
562 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
563 | ac_cpp='$CPP $CPPFLAGS' |
---|
564 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
565 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
566 | cross_compiling=$ac_cv_prog_cc_cross |
---|
567 | |
---|
568 | ac_exeext= |
---|
569 | ac_objext=o |
---|
570 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
571 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
572 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
573 | ac_n= ac_c=' |
---|
574 | ' ac_t=' ' |
---|
575 | else |
---|
576 | ac_n=-n ac_c= ac_t= |
---|
577 | fi |
---|
578 | else |
---|
579 | ac_n= ac_c='\c' ac_t= |
---|
580 | fi |
---|
581 | |
---|
582 | |
---|
583 | RTEMS_TOPdir="."; |
---|
584 | |
---|
585 | |
---|
586 | PROJECT_ROOT=`pwd`/$RTEMS_TOPdir; |
---|
587 | |
---|
588 | |
---|
589 | RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir; |
---|
590 | |
---|
591 | |
---|
592 | |
---|
593 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
594 | echo "configure:595: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
595 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
596 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
597 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
598 | else |
---|
599 | cat > conftestmake <<\EOF |
---|
600 | all: |
---|
601 | @echo 'ac_maketemp="${MAKE}"' |
---|
602 | EOF |
---|
603 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
604 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
605 | if test -n "$ac_maketemp"; then |
---|
606 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
607 | else |
---|
608 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
609 | fi |
---|
610 | rm -f conftestmake |
---|
611 | fi |
---|
612 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
613 | echo "$ac_t""yes" 1>&6 |
---|
614 | SET_MAKE= |
---|
615 | else |
---|
616 | echo "$ac_t""no" 1>&6 |
---|
617 | SET_MAKE="MAKE=${MAKE-make}" |
---|
618 | fi |
---|
619 | |
---|
620 | ac_aux_dir= |
---|
621 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
622 | if test -f $ac_dir/install-sh; then |
---|
623 | ac_aux_dir=$ac_dir |
---|
624 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
625 | break |
---|
626 | elif test -f $ac_dir/install.sh; then |
---|
627 | ac_aux_dir=$ac_dir |
---|
628 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
629 | break |
---|
630 | fi |
---|
631 | done |
---|
632 | if test -z "$ac_aux_dir"; then |
---|
633 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
634 | fi |
---|
635 | ac_config_guess=$ac_aux_dir/config.guess |
---|
636 | ac_config_sub=$ac_aux_dir/config.sub |
---|
637 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
638 | |
---|
639 | |
---|
640 | # Do some error checking and defaulting for the host and target type. |
---|
641 | # The inputs are: |
---|
642 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
643 | # |
---|
644 | # The rules are: |
---|
645 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
646 | # same time. |
---|
647 | # 2. Host defaults to nonopt. |
---|
648 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
649 | # as determined by config.guess. |
---|
650 | # 4. Target and build default to nonopt. |
---|
651 | # 5. If nonopt is not specified, then target and build default to host. |
---|
652 | |
---|
653 | # The aliases save the names the user supplied, while $host etc. |
---|
654 | # will get canonicalized. |
---|
655 | case $host---$target---$nonopt in |
---|
656 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
657 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
658 | esac |
---|
659 | |
---|
660 | |
---|
661 | # Make sure we can run config.sub. |
---|
662 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
663 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
664 | fi |
---|
665 | |
---|
666 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
667 | echo "configure:668: checking host system type" >&5 |
---|
668 | |
---|
669 | host_alias=$host |
---|
670 | case "$host_alias" in |
---|
671 | NONE) |
---|
672 | case $nonopt in |
---|
673 | NONE) |
---|
674 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
675 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
676 | fi ;; |
---|
677 | *) host_alias=$nonopt ;; |
---|
678 | esac ;; |
---|
679 | esac |
---|
680 | |
---|
681 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
682 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
683 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
684 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
685 | echo "$ac_t""$host" 1>&6 |
---|
686 | |
---|
687 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
688 | echo "configure:689: checking target system type" >&5 |
---|
689 | |
---|
690 | target_alias=$target |
---|
691 | case "$target_alias" in |
---|
692 | NONE) |
---|
693 | case $nonopt in |
---|
694 | NONE) target_alias=$host_alias ;; |
---|
695 | *) target_alias=$nonopt ;; |
---|
696 | esac ;; |
---|
697 | esac |
---|
698 | |
---|
699 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
700 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
701 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
702 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
703 | echo "$ac_t""$target" 1>&6 |
---|
704 | |
---|
705 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
706 | echo "configure:707: checking build system type" >&5 |
---|
707 | |
---|
708 | build_alias=$build |
---|
709 | case "$build_alias" in |
---|
710 | NONE) |
---|
711 | case $nonopt in |
---|
712 | NONE) build_alias=$host_alias ;; |
---|
713 | *) build_alias=$nonopt ;; |
---|
714 | esac ;; |
---|
715 | esac |
---|
716 | |
---|
717 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
718 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
719 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
720 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
721 | echo "$ac_t""$build" 1>&6 |
---|
722 | |
---|
723 | test "$host_alias" != "$target_alias" && |
---|
724 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
725 | NONENONEs,x,x, && |
---|
726 | program_prefix=${target_alias}- |
---|
727 | |
---|
728 | |
---|
729 | # Check whether --with-cross-host or --without-cross-host was given. |
---|
730 | if test "${with_cross_host+set}" = set; then |
---|
731 | withval="$with_cross_host" |
---|
732 | \ |
---|
733 | host=$withval |
---|
734 | fi |
---|
735 | |
---|
736 | |
---|
737 | |
---|
738 | # Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given. |
---|
739 | if test "${enable_gmake_print_directory+set}" = set; then |
---|
740 | enableval="$enable_gmake_print_directory" |
---|
741 | case "${enableval}" in |
---|
742 | yes) RTEMS_USE_OWN_PDIR=no ;; |
---|
743 | no) RTEMS_USE_OWN_PDIR=yes ;; |
---|
744 | *) { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } |
---|
745 | ;; |
---|
746 | esac |
---|
747 | else |
---|
748 | RTEMS_USE_OWN_PDIR=yes |
---|
749 | fi |
---|
750 | |
---|
751 | |
---|
752 | |
---|
753 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
754 | if test "${enable_multiprocessing+set}" = set; then |
---|
755 | enableval="$enable_multiprocessing" |
---|
756 | case "${enableval}" in |
---|
757 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
758 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
759 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
760 | esac |
---|
761 | else |
---|
762 | RTEMS_HAS_MULTIPROCESSING=no |
---|
763 | fi |
---|
764 | |
---|
765 | |
---|
766 | |
---|
767 | # Check whether --enable-posix or --disable-posix was given. |
---|
768 | if test "${enable_posix+set}" = set; then |
---|
769 | enableval="$enable_posix" |
---|
770 | case "${enableval}" in |
---|
771 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
772 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
773 | *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; |
---|
774 | esac |
---|
775 | else |
---|
776 | RTEMS_HAS_POSIX_API=yes |
---|
777 | fi |
---|
778 | |
---|
779 | |
---|
780 | case "${target}" in |
---|
781 | # hpux unix port should go here |
---|
782 | i[3456]86-go32-rtems*) |
---|
783 | RTEMS_HAS_POSIX_API=no |
---|
784 | ;; |
---|
785 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
786 | RTEMS_HAS_POSIX_API=no |
---|
787 | ;; |
---|
788 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
789 | RTEMS_HAS_POSIX_API=no |
---|
790 | ;; |
---|
791 | no_cpu-*rtems*) |
---|
792 | RTEMS_HAS_POSIX_API=no |
---|
793 | ;; |
---|
794 | sparc-sun-solaris*) # unix "simulator" port |
---|
795 | RTEMS_HAS_POSIX_API=no |
---|
796 | ;; |
---|
797 | *) |
---|
798 | ;; |
---|
799 | esac |
---|
800 | |
---|
801 | |
---|
802 | |
---|
803 | # Check whether --enable-networking or --disable-networking was given. |
---|
804 | if test "${enable_networking+set}" = set; then |
---|
805 | enableval="$enable_networking" |
---|
806 | case "${enableval}" in |
---|
807 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
808 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
809 | *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; |
---|
810 | esac |
---|
811 | else |
---|
812 | RTEMS_HAS_NETWORKING=yes |
---|
813 | fi |
---|
814 | |
---|
815 | |
---|
816 | |
---|
817 | # Check whether --enable-rdbg or --disable-rdbg was given. |
---|
818 | if test "${enable_rdbg+set}" = set; then |
---|
819 | enableval="$enable_rdbg" |
---|
820 | case "${enableval}" in |
---|
821 | yes) RTEMS_HAS_RDBG=yes ;; |
---|
822 | no) RTEMS_HAS_RDBG=no ;; |
---|
823 | *) { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;; |
---|
824 | esac |
---|
825 | else |
---|
826 | RTEMS_HAS_RDBG=no |
---|
827 | fi |
---|
828 | |
---|
829 | |
---|
830 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
831 | if test "${enable_rtems_inlines+set}" = set; then |
---|
832 | enableval="$enable_rtems_inlines" |
---|
833 | case "${enableval}" in |
---|
834 | yes) RTEMS_USE_MACROS=no ;; |
---|
835 | no) RTEMS_USE_MACROS=yes ;; |
---|
836 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
837 | esac |
---|
838 | else |
---|
839 | RTEMS_USE_MACROS=no |
---|
840 | fi |
---|
841 | |
---|
842 | |
---|
843 | |
---|
844 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
845 | if test "${enable_cxx+set}" = set; then |
---|
846 | enableval="$enable_cxx" |
---|
847 | case "${enableval}" in |
---|
848 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
849 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
850 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
851 | esac |
---|
852 | else |
---|
853 | RTEMS_HAS_CPLUSPLUS=no |
---|
854 | fi |
---|
855 | |
---|
856 | |
---|
857 | |
---|
858 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
859 | if test "${enable_gcc28+set}" = set; then |
---|
860 | enableval="$enable_gcc28" |
---|
861 | case "${enableval}" in |
---|
862 | yes) RTEMS_USE_GCC272=no ;; |
---|
863 | no) RTEMS_USE_GCC272=yes ;; |
---|
864 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
865 | esac |
---|
866 | else |
---|
867 | RTEMS_USE_GCC272=no |
---|
868 | fi |
---|
869 | |
---|
870 | |
---|
871 | |
---|
872 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
873 | if test "${enable_libcdir+set}" = set; then |
---|
874 | enableval="$enable_libcdir" |
---|
875 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
876 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
877 | fi |
---|
878 | |
---|
879 | |
---|
880 | |
---|
881 | # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given. |
---|
882 | if test "${enable_bare_cpu_cflags+set}" = set; then |
---|
883 | enableval="$enable_bare_cpu_cflags" |
---|
884 | case "${enableval}" in |
---|
885 | no) BARE_CPU_CFLAGS="" ;; |
---|
886 | *) BARE_CPU_CFLAGS="${enableval}" ;; |
---|
887 | esac |
---|
888 | else |
---|
889 | BARE_CPU_CFLAGS="" |
---|
890 | fi |
---|
891 | |
---|
892 | |
---|
893 | # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given. |
---|
894 | if test "${enable_bare_cpu_model+set}" = set; then |
---|
895 | enableval="$enable_bare_cpu_model" |
---|
896 | case "${enableval}" in |
---|
897 | no) BARE_CPU_MODEL="" ;; |
---|
898 | *) BARE_CPU_MODEL="${enableval}" ;; |
---|
899 | esac |
---|
900 | else |
---|
901 | BARE_CPU_MODEL="" |
---|
902 | fi |
---|
903 | |
---|
904 | |
---|
905 | |
---|
906 | RTEMS_PREFIX=${target_cpu}-${target_vendor} |
---|
907 | |
---|
908 | |
---|
909 | # Extract the first word of "cat", so it can be a program name with args. |
---|
910 | set dummy cat; ac_word=$2 |
---|
911 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
912 | echo "configure:913: checking for $ac_word" >&5 |
---|
913 | if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then |
---|
914 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
915 | else |
---|
916 | case "$CAT" in |
---|
917 | /*) |
---|
918 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
---|
919 | ;; |
---|
920 | ?:/*) |
---|
921 | ac_cv_path_CAT="$CAT" # Let the user override the test with a dos path. |
---|
922 | ;; |
---|
923 | *) |
---|
924 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
925 | ac_dummy="$PATH" |
---|
926 | for ac_dir in $ac_dummy; do |
---|
927 | test -z "$ac_dir" && ac_dir=. |
---|
928 | if test -f $ac_dir/$ac_word; then |
---|
929 | ac_cv_path_CAT="$ac_dir/$ac_word" |
---|
930 | break |
---|
931 | fi |
---|
932 | done |
---|
933 | IFS="$ac_save_ifs" |
---|
934 | ;; |
---|
935 | esac |
---|
936 | fi |
---|
937 | CAT="$ac_cv_path_CAT" |
---|
938 | if test -n "$CAT"; then |
---|
939 | echo "$ac_t""$CAT" 1>&6 |
---|
940 | else |
---|
941 | echo "$ac_t""no" 1>&6 |
---|
942 | fi |
---|
943 | |
---|
944 | # Extract the first word of "rm", so it can be a program name with args. |
---|
945 | set dummy rm; ac_word=$2 |
---|
946 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
947 | echo "configure:948: checking for $ac_word" >&5 |
---|
948 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
---|
949 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
950 | else |
---|
951 | case "$RM" in |
---|
952 | /*) |
---|
953 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
---|
954 | ;; |
---|
955 | ?:/*) |
---|
956 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
---|
957 | ;; |
---|
958 | *) |
---|
959 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
960 | ac_dummy="$PATH" |
---|
961 | for ac_dir in $ac_dummy; do |
---|
962 | test -z "$ac_dir" && ac_dir=. |
---|
963 | if test -f $ac_dir/$ac_word; then |
---|
964 | ac_cv_path_RM="$ac_dir/$ac_word" |
---|
965 | break |
---|
966 | fi |
---|
967 | done |
---|
968 | IFS="$ac_save_ifs" |
---|
969 | ;; |
---|
970 | esac |
---|
971 | fi |
---|
972 | RM="$ac_cv_path_RM" |
---|
973 | if test -n "$RM"; then |
---|
974 | echo "$ac_t""$RM" 1>&6 |
---|
975 | else |
---|
976 | echo "$ac_t""no" 1>&6 |
---|
977 | fi |
---|
978 | |
---|
979 | # Extract the first word of "cp", so it can be a program name with args. |
---|
980 | set dummy cp; ac_word=$2 |
---|
981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
982 | echo "configure:983: checking for $ac_word" >&5 |
---|
983 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
---|
984 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
985 | else |
---|
986 | case "$CP" in |
---|
987 | /*) |
---|
988 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
---|
989 | ;; |
---|
990 | ?:/*) |
---|
991 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
---|
992 | ;; |
---|
993 | *) |
---|
994 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
995 | ac_dummy="$PATH" |
---|
996 | for ac_dir in $ac_dummy; do |
---|
997 | test -z "$ac_dir" && ac_dir=. |
---|
998 | if test -f $ac_dir/$ac_word; then |
---|
999 | ac_cv_path_CP="$ac_dir/$ac_word" |
---|
1000 | break |
---|
1001 | fi |
---|
1002 | done |
---|
1003 | IFS="$ac_save_ifs" |
---|
1004 | ;; |
---|
1005 | esac |
---|
1006 | fi |
---|
1007 | CP="$ac_cv_path_CP" |
---|
1008 | if test -n "$CP"; then |
---|
1009 | echo "$ac_t""$CP" 1>&6 |
---|
1010 | else |
---|
1011 | echo "$ac_t""no" 1>&6 |
---|
1012 | fi |
---|
1013 | |
---|
1014 | # Extract the first word of "mv", so it can be a program name with args. |
---|
1015 | set dummy mv; ac_word=$2 |
---|
1016 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1017 | echo "configure:1018: checking for $ac_word" >&5 |
---|
1018 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
---|
1019 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1020 | else |
---|
1021 | case "$MV" in |
---|
1022 | /*) |
---|
1023 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
---|
1024 | ;; |
---|
1025 | ?:/*) |
---|
1026 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
---|
1027 | ;; |
---|
1028 | *) |
---|
1029 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1030 | ac_dummy="$PATH" |
---|
1031 | for ac_dir in $ac_dummy; do |
---|
1032 | test -z "$ac_dir" && ac_dir=. |
---|
1033 | if test -f $ac_dir/$ac_word; then |
---|
1034 | ac_cv_path_MV="$ac_dir/$ac_word" |
---|
1035 | break |
---|
1036 | fi |
---|
1037 | done |
---|
1038 | IFS="$ac_save_ifs" |
---|
1039 | ;; |
---|
1040 | esac |
---|
1041 | fi |
---|
1042 | MV="$ac_cv_path_MV" |
---|
1043 | if test -n "$MV"; then |
---|
1044 | echo "$ac_t""$MV" 1>&6 |
---|
1045 | else |
---|
1046 | echo "$ac_t""no" 1>&6 |
---|
1047 | fi |
---|
1048 | |
---|
1049 | # Extract the first word of "ln", so it can be a program name with args. |
---|
1050 | set dummy ln; ac_word=$2 |
---|
1051 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1052 | echo "configure:1053: checking for $ac_word" >&5 |
---|
1053 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
---|
1054 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1055 | else |
---|
1056 | case "$LN" in |
---|
1057 | /*) |
---|
1058 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
---|
1059 | ;; |
---|
1060 | ?:/*) |
---|
1061 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
---|
1062 | ;; |
---|
1063 | *) |
---|
1064 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1065 | ac_dummy="$PATH" |
---|
1066 | for ac_dir in $ac_dummy; do |
---|
1067 | test -z "$ac_dir" && ac_dir=. |
---|
1068 | if test -f $ac_dir/$ac_word; then |
---|
1069 | ac_cv_path_LN="$ac_dir/$ac_word" |
---|
1070 | break |
---|
1071 | fi |
---|
1072 | done |
---|
1073 | IFS="$ac_save_ifs" |
---|
1074 | ;; |
---|
1075 | esac |
---|
1076 | fi |
---|
1077 | LN="$ac_cv_path_LN" |
---|
1078 | if test -n "$LN"; then |
---|
1079 | echo "$ac_t""$LN" 1>&6 |
---|
1080 | else |
---|
1081 | echo "$ac_t""no" 1>&6 |
---|
1082 | fi |
---|
1083 | |
---|
1084 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
1085 | echo "configure:1086: checking whether ln -s works" >&5 |
---|
1086 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1087 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1088 | else |
---|
1089 | rm -f conftestdata |
---|
1090 | if ln -s X conftestdata 2>/dev/null |
---|
1091 | then |
---|
1092 | rm -f conftestdata |
---|
1093 | ac_cv_prog_LN_S="ln -s" |
---|
1094 | else |
---|
1095 | ac_cv_prog_LN_S=ln |
---|
1096 | fi |
---|
1097 | fi |
---|
1098 | LN_S="$ac_cv_prog_LN_S" |
---|
1099 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1100 | echo "$ac_t""yes" 1>&6 |
---|
1101 | else |
---|
1102 | echo "$ac_t""no" 1>&6 |
---|
1103 | fi |
---|
1104 | |
---|
1105 | # Extract the first word of "chmod", so it can be a program name with args. |
---|
1106 | set dummy chmod; ac_word=$2 |
---|
1107 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1108 | echo "configure:1109: checking for $ac_word" >&5 |
---|
1109 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
---|
1110 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1111 | else |
---|
1112 | case "$CHMOD" in |
---|
1113 | /*) |
---|
1114 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
---|
1115 | ;; |
---|
1116 | ?:/*) |
---|
1117 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
---|
1118 | ;; |
---|
1119 | *) |
---|
1120 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1121 | ac_dummy="$PATH" |
---|
1122 | for ac_dir in $ac_dummy; do |
---|
1123 | test -z "$ac_dir" && ac_dir=. |
---|
1124 | if test -f $ac_dir/$ac_word; then |
---|
1125 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
---|
1126 | break |
---|
1127 | fi |
---|
1128 | done |
---|
1129 | IFS="$ac_save_ifs" |
---|
1130 | ;; |
---|
1131 | esac |
---|
1132 | fi |
---|
1133 | CHMOD="$ac_cv_path_CHMOD" |
---|
1134 | if test -n "$CHMOD"; then |
---|
1135 | echo "$ac_t""$CHMOD" 1>&6 |
---|
1136 | else |
---|
1137 | echo "$ac_t""no" 1>&6 |
---|
1138 | fi |
---|
1139 | |
---|
1140 | # Extract the first word of "sort", so it can be a program name with args. |
---|
1141 | set dummy sort; ac_word=$2 |
---|
1142 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1143 | echo "configure:1144: checking for $ac_word" >&5 |
---|
1144 | if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then |
---|
1145 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1146 | else |
---|
1147 | case "$SORT" in |
---|
1148 | /*) |
---|
1149 | ac_cv_path_SORT="$SORT" # Let the user override the test with a path. |
---|
1150 | ;; |
---|
1151 | ?:/*) |
---|
1152 | ac_cv_path_SORT="$SORT" # Let the user override the test with a dos path. |
---|
1153 | ;; |
---|
1154 | *) |
---|
1155 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1156 | ac_dummy="$PATH" |
---|
1157 | for ac_dir in $ac_dummy; do |
---|
1158 | test -z "$ac_dir" && ac_dir=. |
---|
1159 | if test -f $ac_dir/$ac_word; then |
---|
1160 | ac_cv_path_SORT="$ac_dir/$ac_word" |
---|
1161 | break |
---|
1162 | fi |
---|
1163 | done |
---|
1164 | IFS="$ac_save_ifs" |
---|
1165 | ;; |
---|
1166 | esac |
---|
1167 | fi |
---|
1168 | SORT="$ac_cv_path_SORT" |
---|
1169 | if test -n "$SORT"; then |
---|
1170 | echo "$ac_t""$SORT" 1>&6 |
---|
1171 | else |
---|
1172 | echo "$ac_t""no" 1>&6 |
---|
1173 | fi |
---|
1174 | |
---|
1175 | # Find a good install program. We prefer a C program (faster), |
---|
1176 | # so one script is as good as another. But avoid the broken or |
---|
1177 | # incompatible versions: |
---|
1178 | # SysV /etc/install, /usr/sbin/install |
---|
1179 | # SunOS /usr/etc/install |
---|
1180 | # IRIX /sbin/install |
---|
1181 | # AIX /bin/install |
---|
1182 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1183 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1184 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1185 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1186 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1187 | echo "configure:1188: checking for a BSD compatible install" >&5 |
---|
1188 | if test -z "$INSTALL"; then |
---|
1189 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1190 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1191 | else |
---|
1192 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
1193 | for ac_dir in $PATH; do |
---|
1194 | # Account for people who put trailing slashes in PATH elements. |
---|
1195 | case "$ac_dir/" in |
---|
1196 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1197 | *) |
---|
1198 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1199 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1200 | # by default. |
---|
1201 | for ac_prog in ginstall scoinst install; do |
---|
1202 | if test -f $ac_dir/$ac_prog; then |
---|
1203 | if test $ac_prog = install && |
---|
1204 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1205 | # AIX install. It has an incompatible calling convention. |
---|
1206 | : |
---|
1207 | else |
---|
1208 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1209 | break 2 |
---|
1210 | fi |
---|
1211 | fi |
---|
1212 | done |
---|
1213 | ;; |
---|
1214 | esac |
---|
1215 | done |
---|
1216 | IFS="$ac_save_IFS" |
---|
1217 | |
---|
1218 | fi |
---|
1219 | if test "${ac_cv_path_install+set}" = set; then |
---|
1220 | INSTALL="$ac_cv_path_install" |
---|
1221 | else |
---|
1222 | # As a last resort, use the slow shell script. We don't cache a |
---|
1223 | # path for INSTALL within a source directory, because that will |
---|
1224 | # break other packages using the cache if that directory is |
---|
1225 | # removed, or if the path is relative. |
---|
1226 | INSTALL="$ac_install_sh" |
---|
1227 | fi |
---|
1228 | fi |
---|
1229 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1230 | |
---|
1231 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1232 | # It thinks the first close brace ends the variable substitution. |
---|
1233 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1234 | |
---|
1235 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
1236 | |
---|
1237 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1238 | |
---|
1239 | |
---|
1240 | # Extract the first word of "perl", so it can be a program name with args. |
---|
1241 | set dummy perl; ac_word=$2 |
---|
1242 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1243 | echo "configure:1244: checking for $ac_word" >&5 |
---|
1244 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
---|
1245 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1246 | else |
---|
1247 | case "$PERL" in |
---|
1248 | /*) |
---|
1249 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
---|
1250 | ;; |
---|
1251 | ?:/*) |
---|
1252 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
---|
1253 | ;; |
---|
1254 | *) |
---|
1255 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1256 | ac_dummy="$PATH" |
---|
1257 | for ac_dir in $ac_dummy; do |
---|
1258 | test -z "$ac_dir" && ac_dir=. |
---|
1259 | if test -f $ac_dir/$ac_word; then |
---|
1260 | ac_cv_path_PERL="$ac_dir/$ac_word" |
---|
1261 | break |
---|
1262 | fi |
---|
1263 | done |
---|
1264 | IFS="$ac_save_ifs" |
---|
1265 | ;; |
---|
1266 | esac |
---|
1267 | fi |
---|
1268 | PERL="$ac_cv_path_PERL" |
---|
1269 | if test -n "$PERL"; then |
---|
1270 | echo "$ac_t""$PERL" 1>&6 |
---|
1271 | else |
---|
1272 | echo "$ac_t""no" 1>&6 |
---|
1273 | fi |
---|
1274 | |
---|
1275 | if test -z "$PERL" ; then |
---|
1276 | echo "configure: warning: *** |
---|
1277 | perl was not found |
---|
1278 | Note: Some tools will not be built." 1>&2 |
---|
1279 | fi |
---|
1280 | |
---|
1281 | |
---|
1282 | # Extract the first word of "mkdir", so it can be a program name with args. |
---|
1283 | set dummy mkdir; ac_word=$2 |
---|
1284 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1285 | echo "configure:1286: checking for $ac_word" >&5 |
---|
1286 | if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then |
---|
1287 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1288 | else |
---|
1289 | case "$MKDIR" in |
---|
1290 | /*) |
---|
1291 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
---|
1292 | ;; |
---|
1293 | ?:/*) |
---|
1294 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a dos path. |
---|
1295 | ;; |
---|
1296 | *) |
---|
1297 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1298 | ac_dummy="$PATH" |
---|
1299 | for ac_dir in $ac_dummy; do |
---|
1300 | test -z "$ac_dir" && ac_dir=. |
---|
1301 | if test -f $ac_dir/$ac_word; then |
---|
1302 | ac_cv_path_MKDIR="$ac_dir/$ac_word" |
---|
1303 | break |
---|
1304 | fi |
---|
1305 | done |
---|
1306 | IFS="$ac_save_ifs" |
---|
1307 | ;; |
---|
1308 | esac |
---|
1309 | fi |
---|
1310 | MKDIR="$ac_cv_path_MKDIR" |
---|
1311 | if test -n "$MKDIR"; then |
---|
1312 | echo "$ac_t""$MKDIR" 1>&6 |
---|
1313 | else |
---|
1314 | echo "$ac_t""no" 1>&6 |
---|
1315 | fi |
---|
1316 | |
---|
1317 | |
---|
1318 | |
---|
1319 | |
---|
1320 | echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6 |
---|
1321 | echo "configure:1322: checking for working $MKDIR -m 0755" >&5 |
---|
1322 | if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then |
---|
1323 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1324 | else |
---|
1325 | rm -rf conftestdata |
---|
1326 | if $MKDIR -m 0775 conftestdata 2>/dev/null; then |
---|
1327 | rtems_cv_prog_MKDIR_M="yes" |
---|
1328 | else |
---|
1329 | rtems_cv_prog_MKDIR_M="no" |
---|
1330 | fi |
---|
1331 | fi |
---|
1332 | rm -rf conftestdata |
---|
1333 | echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6 |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6 |
---|
1338 | echo "configure:1339: checking for working $MKDIR -p" >&5 |
---|
1339 | if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then |
---|
1340 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1341 | else |
---|
1342 | rm -rf conftestdata |
---|
1343 | if $MKDIR -p conftestdata 2>/dev/null ;then |
---|
1344 | rtems_cv_prog_MKDIR_P="yes" |
---|
1345 | else |
---|
1346 | rtems_cv_prog_MKDIR_P="no" |
---|
1347 | fi |
---|
1348 | fi |
---|
1349 | rm -rf conftestdata |
---|
1350 | echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6 |
---|
1351 | |
---|
1352 | test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p" |
---|
1353 | #test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755" |
---|
1354 | |
---|
1355 | # Extract the first word of "touch", so it can be a program name with args. |
---|
1356 | set dummy touch; ac_word=$2 |
---|
1357 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1358 | echo "configure:1359: checking for $ac_word" >&5 |
---|
1359 | if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then |
---|
1360 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1361 | else |
---|
1362 | case "$TOUCH" in |
---|
1363 | /*) |
---|
1364 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. |
---|
1365 | ;; |
---|
1366 | ?:/*) |
---|
1367 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a dos path. |
---|
1368 | ;; |
---|
1369 | *) |
---|
1370 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1371 | ac_dummy="$PATH" |
---|
1372 | for ac_dir in $ac_dummy; do |
---|
1373 | test -z "$ac_dir" && ac_dir=. |
---|
1374 | if test -f $ac_dir/$ac_word; then |
---|
1375 | ac_cv_path_TOUCH="$ac_dir/$ac_word" |
---|
1376 | break |
---|
1377 | fi |
---|
1378 | done |
---|
1379 | IFS="$ac_save_ifs" |
---|
1380 | ;; |
---|
1381 | esac |
---|
1382 | fi |
---|
1383 | TOUCH="$ac_cv_path_TOUCH" |
---|
1384 | if test -n "$TOUCH"; then |
---|
1385 | echo "$ac_t""$TOUCH" 1>&6 |
---|
1386 | else |
---|
1387 | echo "$ac_t""no" 1>&6 |
---|
1388 | fi |
---|
1389 | |
---|
1390 | # Extract the first word of "cmp", so it can be a program name with args. |
---|
1391 | set dummy cmp; ac_word=$2 |
---|
1392 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1393 | echo "configure:1394: checking for $ac_word" >&5 |
---|
1394 | if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then |
---|
1395 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1396 | else |
---|
1397 | case "$CMP" in |
---|
1398 | /*) |
---|
1399 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
---|
1400 | ;; |
---|
1401 | ?:/*) |
---|
1402 | ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path. |
---|
1403 | ;; |
---|
1404 | *) |
---|
1405 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1406 | ac_dummy="$PATH" |
---|
1407 | for ac_dir in $ac_dummy; do |
---|
1408 | test -z "$ac_dir" && ac_dir=. |
---|
1409 | if test -f $ac_dir/$ac_word; then |
---|
1410 | ac_cv_path_CMP="$ac_dir/$ac_word" |
---|
1411 | break |
---|
1412 | fi |
---|
1413 | done |
---|
1414 | IFS="$ac_save_ifs" |
---|
1415 | ;; |
---|
1416 | esac |
---|
1417 | fi |
---|
1418 | CMP="$ac_cv_path_CMP" |
---|
1419 | if test -n "$CMP"; then |
---|
1420 | echo "$ac_t""$CMP" 1>&6 |
---|
1421 | else |
---|
1422 | echo "$ac_t""no" 1>&6 |
---|
1423 | fi |
---|
1424 | |
---|
1425 | |
---|
1426 | # Extract the first word of "sed", so it can be a program name with args. |
---|
1427 | set dummy sed; ac_word=$2 |
---|
1428 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1429 | echo "configure:1430: checking for $ac_word" >&5 |
---|
1430 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
---|
1431 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1432 | else |
---|
1433 | case "$SED" in |
---|
1434 | /*) |
---|
1435 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
---|
1436 | ;; |
---|
1437 | ?:/*) |
---|
1438 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
---|
1439 | ;; |
---|
1440 | *) |
---|
1441 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1442 | ac_dummy="$PATH" |
---|
1443 | for ac_dir in $ac_dummy; do |
---|
1444 | test -z "$ac_dir" && ac_dir=. |
---|
1445 | if test -f $ac_dir/$ac_word; then |
---|
1446 | ac_cv_path_SED="$ac_dir/$ac_word" |
---|
1447 | break |
---|
1448 | fi |
---|
1449 | done |
---|
1450 | IFS="$ac_save_ifs" |
---|
1451 | ;; |
---|
1452 | esac |
---|
1453 | fi |
---|
1454 | SED="$ac_cv_path_SED" |
---|
1455 | if test -n "$SED"; then |
---|
1456 | echo "$ac_t""$SED" 1>&6 |
---|
1457 | else |
---|
1458 | echo "$ac_t""no" 1>&6 |
---|
1459 | fi |
---|
1460 | |
---|
1461 | for ac_prog in gm4 m4 |
---|
1462 | do |
---|
1463 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1464 | set dummy $ac_prog; ac_word=$2 |
---|
1465 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1466 | echo "configure:1467: checking for $ac_word" >&5 |
---|
1467 | if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then |
---|
1468 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1469 | else |
---|
1470 | case "$M4" in |
---|
1471 | /*) |
---|
1472 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
---|
1473 | ;; |
---|
1474 | ?:/*) |
---|
1475 | ac_cv_path_M4="$M4" # Let the user override the test with a dos path. |
---|
1476 | ;; |
---|
1477 | *) |
---|
1478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1479 | ac_dummy="$PATH" |
---|
1480 | for ac_dir in $ac_dummy; do |
---|
1481 | test -z "$ac_dir" && ac_dir=. |
---|
1482 | if test -f $ac_dir/$ac_word; then |
---|
1483 | ac_cv_path_M4="$ac_dir/$ac_word" |
---|
1484 | break |
---|
1485 | fi |
---|
1486 | done |
---|
1487 | IFS="$ac_save_ifs" |
---|
1488 | ;; |
---|
1489 | esac |
---|
1490 | fi |
---|
1491 | M4="$ac_cv_path_M4" |
---|
1492 | if test -n "$M4"; then |
---|
1493 | echo "$ac_t""$M4" 1>&6 |
---|
1494 | else |
---|
1495 | echo "$ac_t""no" 1>&6 |
---|
1496 | fi |
---|
1497 | |
---|
1498 | test -n "$M4" && break |
---|
1499 | done |
---|
1500 | |
---|
1501 | |
---|
1502 | |
---|
1503 | for ac_prog in bash ksh sh |
---|
1504 | do |
---|
1505 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1506 | set dummy $ac_prog; ac_word=$2 |
---|
1507 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1508 | echo "configure:1509: checking for $ac_word" >&5 |
---|
1509 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
---|
1510 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1511 | else |
---|
1512 | case "$KSH" in |
---|
1513 | /*) |
---|
1514 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
---|
1515 | ;; |
---|
1516 | ?:/*) |
---|
1517 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. |
---|
1518 | ;; |
---|
1519 | *) |
---|
1520 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1521 | ac_dummy="$PATH" |
---|
1522 | for ac_dir in $ac_dummy; do |
---|
1523 | test -z "$ac_dir" && ac_dir=. |
---|
1524 | if test -f $ac_dir/$ac_word; then |
---|
1525 | ac_cv_path_KSH="$ac_dir/$ac_word" |
---|
1526 | break |
---|
1527 | fi |
---|
1528 | done |
---|
1529 | IFS="$ac_save_ifs" |
---|
1530 | ;; |
---|
1531 | esac |
---|
1532 | fi |
---|
1533 | KSH="$ac_cv_path_KSH" |
---|
1534 | if test -n "$KSH"; then |
---|
1535 | echo "$ac_t""$KSH" 1>&6 |
---|
1536 | else |
---|
1537 | echo "$ac_t""no" 1>&6 |
---|
1538 | fi |
---|
1539 | |
---|
1540 | test -n "$KSH" && break |
---|
1541 | done |
---|
1542 | |
---|
1543 | if test -z "$KSH"; then |
---|
1544 | { echo "configure: error: *** |
---|
1545 | Cannot determine a usable shell bash/ksh/sh |
---|
1546 | Please contact your system administrator " 1>&2; exit 1; }; |
---|
1547 | fi |
---|
1548 | |
---|
1549 | |
---|
1550 | |
---|
1551 | |
---|
1552 | |
---|
1553 | RTEMS_HOST=$host_os |
---|
1554 | |
---|
1555 | |
---|
1556 | |
---|
1557 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
1558 | echo "configure:1559: checking rtems target cpu" >&5 |
---|
1559 | case "${target}" in |
---|
1560 | # hpux unix port should go here |
---|
1561 | i[3456]86-go32-rtems*) |
---|
1562 | target_cpu=i386 |
---|
1563 | ;; |
---|
1564 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
1565 | target_cpu=unix |
---|
1566 | ;; |
---|
1567 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
1568 | target_cpu=unix |
---|
1569 | ;; |
---|
1570 | no_cpu-*rtems*) |
---|
1571 | target_cpu=no_cpu |
---|
1572 | ;; |
---|
1573 | ppc*-*rtems*) |
---|
1574 | target_cpu=powerpc |
---|
1575 | ;; |
---|
1576 | sparc-sun-solaris*) # unix "simulator" port |
---|
1577 | target_cpu=unix |
---|
1578 | ;; |
---|
1579 | *) |
---|
1580 | target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
1581 | ;; |
---|
1582 | esac |
---|
1583 | echo "$ac_t""$target_cpu" 1>&6 |
---|
1584 | |
---|
1585 | |
---|
1586 | |
---|
1587 | # Is this a supported CPU? |
---|
1588 | echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6 |
---|
1589 | echo "configure:1590: checking if cpu $target_cpu is supported" >&5 |
---|
1590 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then |
---|
1591 | echo "$ac_t""yes" 1>&6 |
---|
1592 | else |
---|
1593 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
1594 | fi |
---|
1595 | |
---|
1596 | |
---|
1597 | RTEMS_HOST=$host_os |
---|
1598 | case "${target}" in |
---|
1599 | # hpux unix port should go here |
---|
1600 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
1601 | RTEMS_HOST=Linux |
---|
1602 | ;; |
---|
1603 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
1604 | RTEMS_HOST=FreeBSD |
---|
1605 | ;; |
---|
1606 | sparc-sun-solaris*) # unix "simulator" port |
---|
1607 | RTEMS_HOST=Solaris |
---|
1608 | ;; |
---|
1609 | *) |
---|
1610 | ;; |
---|
1611 | esac |
---|
1612 | |
---|
1613 | |
---|
1614 | |
---|
1615 | case "${target}" in |
---|
1616 | i[3456]86-go32-rtems*) |
---|
1617 | rtems_bsp="go32 go32_p5" |
---|
1618 | skip_startfiles="yes" |
---|
1619 | ;; |
---|
1620 | *) |
---|
1621 | ;; |
---|
1622 | esac |
---|
1623 | |
---|
1624 | # Override the set of BSPs to be built. |
---|
1625 | # Check whether --enable-rtemsbsp or --disable-rtemsbsp was given. |
---|
1626 | if test "${enable_rtemsbsp+set}" = set; then |
---|
1627 | enableval="$enable_rtemsbsp" |
---|
1628 | \ |
---|
1629 | rtems_bsp=$enableval \ |
---|
1630 | |
---|
1631 | fi |
---|
1632 | |
---|
1633 | |
---|
1634 | |
---|
1635 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
1636 | if [ "${target}" = "${host}" ] ; then |
---|
1637 | program_prefix= |
---|
1638 | else |
---|
1639 | program_prefix=${target}- |
---|
1640 | fi |
---|
1641 | fi |
---|
1642 | |
---|
1643 | |
---|
1644 | |
---|
1645 | |
---|
1646 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
1647 | do |
---|
1648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1649 | set dummy $ac_prog; ac_word=$2 |
---|
1650 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1651 | echo "configure:1652: checking for $ac_word" >&5 |
---|
1652 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
1653 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1654 | else |
---|
1655 | case "$CC_FOR_TARGET" in |
---|
1656 | /*) |
---|
1657 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
1658 | ;; |
---|
1659 | ?:/*) |
---|
1660 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1661 | ;; |
---|
1662 | *) |
---|
1663 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1664 | ac_dummy="$PATH" |
---|
1665 | for ac_dir in $ac_dummy; do |
---|
1666 | test -z "$ac_dir" && ac_dir=. |
---|
1667 | if test -f $ac_dir/$ac_word; then |
---|
1668 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
1669 | break |
---|
1670 | fi |
---|
1671 | done |
---|
1672 | IFS="$ac_save_ifs" |
---|
1673 | ;; |
---|
1674 | esac |
---|
1675 | fi |
---|
1676 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
1677 | if test -n "$CC_FOR_TARGET"; then |
---|
1678 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
1679 | else |
---|
1680 | echo "$ac_t""no" 1>&6 |
---|
1681 | fi |
---|
1682 | |
---|
1683 | test -n "$CC_FOR_TARGET" && break |
---|
1684 | done |
---|
1685 | |
---|
1686 | test -z "$CC_FOR_TARGET" \ |
---|
1687 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1688 | |
---|
1689 | rtems_save_CC=$CC |
---|
1690 | rtems_save_CFLAGS=$CFLAGS |
---|
1691 | |
---|
1692 | CC=$CC_FOR_TARGET |
---|
1693 | |
---|
1694 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1695 | echo "configure:1696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1696 | |
---|
1697 | ac_ext=c |
---|
1698 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1699 | ac_cpp='$CPP $CPPFLAGS' |
---|
1700 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1701 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1702 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1703 | |
---|
1704 | cat > conftest.$ac_ext << EOF |
---|
1705 | |
---|
1706 | #line 1707 "configure" |
---|
1707 | #include "confdefs.h" |
---|
1708 | |
---|
1709 | main(){return(0);} |
---|
1710 | EOF |
---|
1711 | if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1712 | ac_cv_prog_cc_works=yes |
---|
1713 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1714 | if (./conftest; exit) 2>/dev/null; then |
---|
1715 | ac_cv_prog_cc_cross=no |
---|
1716 | else |
---|
1717 | ac_cv_prog_cc_cross=yes |
---|
1718 | fi |
---|
1719 | else |
---|
1720 | echo "configure: failed program was:" >&5 |
---|
1721 | cat conftest.$ac_ext >&5 |
---|
1722 | ac_cv_prog_cc_works=no |
---|
1723 | fi |
---|
1724 | rm -fr conftest* |
---|
1725 | ac_ext=c |
---|
1726 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1727 | ac_cpp='$CPP $CPPFLAGS' |
---|
1728 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1729 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1730 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1731 | |
---|
1732 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1733 | if test $ac_cv_prog_cc_works = no; then |
---|
1734 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1735 | fi |
---|
1736 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1737 | echo "configure:1738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1738 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1739 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1740 | |
---|
1741 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1742 | echo "configure:1743: checking whether we are using GNU C" >&5 |
---|
1743 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1744 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1745 | else |
---|
1746 | cat > conftest.c <<EOF |
---|
1747 | #ifdef __GNUC__ |
---|
1748 | yes; |
---|
1749 | #endif |
---|
1750 | EOF |
---|
1751 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1752 | ac_cv_prog_gcc=yes |
---|
1753 | else |
---|
1754 | ac_cv_prog_gcc=no |
---|
1755 | fi |
---|
1756 | fi |
---|
1757 | |
---|
1758 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1759 | |
---|
1760 | if test $ac_cv_prog_gcc = yes; then |
---|
1761 | GCC=yes |
---|
1762 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1763 | ac_save_CFLAGS="$CFLAGS" |
---|
1764 | CFLAGS= |
---|
1765 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1766 | echo "configure:1767: checking whether ${CC-cc} accepts -g" >&5 |
---|
1767 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1768 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1769 | else |
---|
1770 | echo 'void f(){}' > conftest.c |
---|
1771 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1772 | ac_cv_prog_cc_g=yes |
---|
1773 | else |
---|
1774 | ac_cv_prog_cc_g=no |
---|
1775 | fi |
---|
1776 | rm -f conftest* |
---|
1777 | |
---|
1778 | fi |
---|
1779 | |
---|
1780 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1781 | if test "$ac_test_CFLAGS" = set; then |
---|
1782 | CFLAGS="$ac_save_CFLAGS" |
---|
1783 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1784 | CFLAGS="-g -O2" |
---|
1785 | else |
---|
1786 | CFLAGS="-O2" |
---|
1787 | fi |
---|
1788 | else |
---|
1789 | GCC= |
---|
1790 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
1791 | fi |
---|
1792 | |
---|
1793 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
1794 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
1795 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
1796 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
1797 | |
---|
1798 | CC=$rtems_save_CC |
---|
1799 | CFLAGS=$rtems_save_CFLAGS |
---|
1800 | |
---|
1801 | unset ac_cv_prog_gcc |
---|
1802 | unset ac_cv_prog_cc_g |
---|
1803 | unset ac_cv_prog_cc_works |
---|
1804 | unset ac_cv_prog_cc_cross |
---|
1805 | |
---|
1806 | |
---|
1807 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
1808 | echo "configure:1809: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
1809 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1811 | else |
---|
1812 | |
---|
1813 | rtems_cv_gcc_specs=no |
---|
1814 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1815 | touch confspec |
---|
1816 | echo 'void f(){}' >conftest.c |
---|
1817 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
1818 | rtems_cv_gcc_specs=yes |
---|
1819 | fi |
---|
1820 | fi |
---|
1821 | rm -f confspec conftest* |
---|
1822 | |
---|
1823 | fi |
---|
1824 | |
---|
1825 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
1826 | |
---|
1827 | |
---|
1828 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
1829 | echo "configure:1830: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
1830 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
1831 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1832 | else |
---|
1833 | |
---|
1834 | rtems_cv_gcc_pipe=no |
---|
1835 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1836 | case "$host_os" in |
---|
1837 | cygwin32*) |
---|
1838 | ;; |
---|
1839 | *) |
---|
1840 | echo 'void f(){}' >conftest.c |
---|
1841 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
1842 | rtems_cv_gcc_pipe=yes |
---|
1843 | fi |
---|
1844 | rm -f conftest* |
---|
1845 | ;; |
---|
1846 | esac |
---|
1847 | fi |
---|
1848 | |
---|
1849 | fi |
---|
1850 | |
---|
1851 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
1852 | |
---|
1853 | |
---|
1854 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
1855 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
1856 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
1857 | RTEMS_USE_GCC272=yes |
---|
1858 | fi |
---|
1859 | fi |
---|
1860 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
1861 | |
---|
1862 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
1863 | |
---|
1864 | |
---|
1865 | for ac_prog in "$program_prefix"g++ "$program_prefix"c++ |
---|
1866 | do |
---|
1867 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1868 | set dummy $ac_prog; ac_word=$2 |
---|
1869 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1870 | echo "configure:1871: checking for $ac_word" >&5 |
---|
1871 | if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then |
---|
1872 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1873 | else |
---|
1874 | case "$CXX_FOR_TARGET" in |
---|
1875 | /*) |
---|
1876 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path. |
---|
1877 | ;; |
---|
1878 | ?:/*) |
---|
1879 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1880 | ;; |
---|
1881 | *) |
---|
1882 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1883 | ac_dummy="$PATH" |
---|
1884 | for ac_dir in $ac_dummy; do |
---|
1885 | test -z "$ac_dir" && ac_dir=. |
---|
1886 | if test -f $ac_dir/$ac_word; then |
---|
1887 | ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word" |
---|
1888 | break |
---|
1889 | fi |
---|
1890 | done |
---|
1891 | IFS="$ac_save_ifs" |
---|
1892 | ;; |
---|
1893 | esac |
---|
1894 | fi |
---|
1895 | CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET" |
---|
1896 | if test -n "$CXX_FOR_TARGET"; then |
---|
1897 | echo "$ac_t""$CXX_FOR_TARGET" 1>&6 |
---|
1898 | else |
---|
1899 | echo "$ac_t""no" 1>&6 |
---|
1900 | fi |
---|
1901 | |
---|
1902 | test -n "$CXX_FOR_TARGET" && break |
---|
1903 | done |
---|
1904 | |
---|
1905 | test -z "$CXX_FOR_TARGET" \ |
---|
1906 | && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } |
---|
1907 | |
---|
1908 | rtems_save_CXX=$CXX |
---|
1909 | rtems_save_CXXFLAGS=$CXXFLAGS |
---|
1910 | |
---|
1911 | CXX=$CXX_FOR_TARGET |
---|
1912 | |
---|
1913 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1914 | echo "configure:1915: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
1915 | |
---|
1916 | ac_ext=C |
---|
1917 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1918 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1919 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1920 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1921 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1922 | |
---|
1923 | cat > conftest.$ac_ext << EOF |
---|
1924 | |
---|
1925 | #line 1926 "configure" |
---|
1926 | #include "confdefs.h" |
---|
1927 | |
---|
1928 | int main(){return(0);} |
---|
1929 | EOF |
---|
1930 | if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1931 | ac_cv_prog_cxx_works=yes |
---|
1932 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1933 | if (./conftest; exit) 2>/dev/null; then |
---|
1934 | ac_cv_prog_cxx_cross=no |
---|
1935 | else |
---|
1936 | ac_cv_prog_cxx_cross=yes |
---|
1937 | fi |
---|
1938 | else |
---|
1939 | echo "configure: failed program was:" >&5 |
---|
1940 | cat conftest.$ac_ext >&5 |
---|
1941 | ac_cv_prog_cxx_works=no |
---|
1942 | fi |
---|
1943 | rm -fr conftest* |
---|
1944 | ac_ext=c |
---|
1945 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1946 | ac_cpp='$CPP $CPPFLAGS' |
---|
1947 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1948 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1949 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1950 | |
---|
1951 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
1952 | if test $ac_cv_prog_cxx_works = no; then |
---|
1953 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
1954 | fi |
---|
1955 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1956 | echo "configure:1957: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1957 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
1958 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1959 | |
---|
1960 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
1961 | echo "configure:1962: checking whether we are using GNU C++" >&5 |
---|
1962 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
1963 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1964 | else |
---|
1965 | cat > conftest.C <<EOF |
---|
1966 | #ifdef __GNUC__ |
---|
1967 | yes; |
---|
1968 | #endif |
---|
1969 | EOF |
---|
1970 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1971 | ac_cv_prog_gxx=yes |
---|
1972 | else |
---|
1973 | ac_cv_prog_gxx=no |
---|
1974 | fi |
---|
1975 | fi |
---|
1976 | |
---|
1977 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
1978 | |
---|
1979 | if test $ac_cv_prog_gxx = yes; then |
---|
1980 | GXX=yes |
---|
1981 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
1982 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
1983 | CXXFLAGS= |
---|
1984 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
1985 | echo "configure:1986: checking whether ${CXX-g++} accepts -g" >&5 |
---|
1986 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
1987 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1988 | else |
---|
1989 | echo 'void f(){}' > conftest.cc |
---|
1990 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
1991 | ac_cv_prog_cxx_g=yes |
---|
1992 | else |
---|
1993 | ac_cv_prog_cxx_g=no |
---|
1994 | fi |
---|
1995 | rm -f conftest* |
---|
1996 | |
---|
1997 | fi |
---|
1998 | |
---|
1999 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
2000 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2001 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
2002 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2003 | CXXFLAGS="-g -O2" |
---|
2004 | else |
---|
2005 | CXXFLAGS="-O2" |
---|
2006 | fi |
---|
2007 | else |
---|
2008 | GXX= |
---|
2009 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
2010 | fi |
---|
2011 | |
---|
2012 | rtems_cv_prog_gxx=$ac_cv_prog_gxx |
---|
2013 | rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g |
---|
2014 | rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works |
---|
2015 | rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross |
---|
2016 | |
---|
2017 | CXX=$rtems_save_CXX |
---|
2018 | CXXFLAGS=$rtems_save_CXXFLAGS |
---|
2019 | |
---|
2020 | unset ac_cv_prog_gxx |
---|
2021 | unset ac_cv_prog_cc_g |
---|
2022 | unset ac_cv_prog_cxx_works |
---|
2023 | unset ac_cv_prog_cxx_cross |
---|
2024 | |
---|
2025 | if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then |
---|
2026 | { echo "configure: error: *** |
---|
2027 | Inconsistency in compiler configuration: |
---|
2028 | Target C compiler and Target C++ compiler |
---|
2029 | must both either be cross compilers or native compilers |
---|
2030 | Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; } |
---|
2031 | fi |
---|
2032 | else |
---|
2033 | CXX_FOR_TARGET="no" |
---|
2034 | fi |
---|
2035 | |
---|
2036 | |
---|
2037 | |
---|
2038 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
2039 | echo "configure:2040: checking target's ar" >&5 |
---|
2040 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
2041 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2042 | else |
---|
2043 | : |
---|
2044 | fi |
---|
2045 | |
---|
2046 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
2047 | |
---|
2048 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
2049 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
2050 | else |
---|
2051 | if test -z "$AR_FOR_TARGET" ; then |
---|
2052 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2053 | # We are using gcc, ask it about its tool |
---|
2054 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2055 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2056 | case $host_os in |
---|
2057 | *cygwin32*) |
---|
2058 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
2059 | ;; |
---|
2060 | *) |
---|
2061 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
2062 | ;; |
---|
2063 | esac |
---|
2064 | |
---|
2065 | fi |
---|
2066 | else |
---|
2067 | # The user set an environment variable. |
---|
2068 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2069 | # will override the environment variable, which isn't what the user |
---|
2070 | # intends |
---|
2071 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2072 | echo "configure:2073: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
2073 | case "$AR_FOR_TARGET" in |
---|
2074 | /*) # valid |
---|
2075 | echo "$ac_t"""yes"" 1>&6 |
---|
2076 | ;; |
---|
2077 | *) # invalid for AC_PATH_PROG |
---|
2078 | echo "$ac_t"""no"" 1>&6 |
---|
2079 | { echo "configure: error: *** |
---|
2080 | Environment variable AR_FOR_TARGET should either |
---|
2081 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2082 | ;; |
---|
2083 | esac |
---|
2084 | fi |
---|
2085 | |
---|
2086 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
2087 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
2088 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2089 | echo "configure:2090: checking for $ac_word" >&5 |
---|
2090 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
2091 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2092 | else |
---|
2093 | case "$AR_FOR_TARGET" in |
---|
2094 | /*) |
---|
2095 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
2096 | ;; |
---|
2097 | ?:/*) |
---|
2098 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2099 | ;; |
---|
2100 | *) |
---|
2101 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2102 | ac_dummy="$PATH" |
---|
2103 | for ac_dir in $ac_dummy; do |
---|
2104 | test -z "$ac_dir" && ac_dir=. |
---|
2105 | if test -f $ac_dir/$ac_word; then |
---|
2106 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
2107 | break |
---|
2108 | fi |
---|
2109 | done |
---|
2110 | IFS="$ac_save_ifs" |
---|
2111 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
2112 | ;; |
---|
2113 | esac |
---|
2114 | fi |
---|
2115 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
2116 | if test -n "$AR_FOR_TARGET"; then |
---|
2117 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
2118 | else |
---|
2119 | echo "$ac_t""no" 1>&6 |
---|
2120 | fi |
---|
2121 | |
---|
2122 | fi |
---|
2123 | |
---|
2124 | |
---|
2125 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
2126 | echo "configure:2127: checking target's as" >&5 |
---|
2127 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
2128 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2129 | else |
---|
2130 | : |
---|
2131 | fi |
---|
2132 | |
---|
2133 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
2134 | |
---|
2135 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
2136 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
2137 | else |
---|
2138 | if test -z "$AS_FOR_TARGET" ; then |
---|
2139 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2140 | # We are using gcc, ask it about its tool |
---|
2141 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2142 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2143 | case $host_os in |
---|
2144 | *cygwin32*) |
---|
2145 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
2146 | ;; |
---|
2147 | *) |
---|
2148 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
2149 | ;; |
---|
2150 | esac |
---|
2151 | |
---|
2152 | fi |
---|
2153 | else |
---|
2154 | # The user set an environment variable. |
---|
2155 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2156 | # will override the environment variable, which isn't what the user |
---|
2157 | # intends |
---|
2158 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2159 | echo "configure:2160: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
2160 | case "$AS_FOR_TARGET" in |
---|
2161 | /*) # valid |
---|
2162 | echo "$ac_t"""yes"" 1>&6 |
---|
2163 | ;; |
---|
2164 | *) # invalid for AC_PATH_PROG |
---|
2165 | echo "$ac_t"""no"" 1>&6 |
---|
2166 | { echo "configure: error: *** |
---|
2167 | Environment variable AS_FOR_TARGET should either |
---|
2168 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2169 | ;; |
---|
2170 | esac |
---|
2171 | fi |
---|
2172 | |
---|
2173 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
2174 | set dummy "$program_prefix"as; ac_word=$2 |
---|
2175 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2176 | echo "configure:2177: checking for $ac_word" >&5 |
---|
2177 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
2178 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2179 | else |
---|
2180 | case "$AS_FOR_TARGET" in |
---|
2181 | /*) |
---|
2182 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
2183 | ;; |
---|
2184 | ?:/*) |
---|
2185 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2186 | ;; |
---|
2187 | *) |
---|
2188 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2189 | ac_dummy="$PATH" |
---|
2190 | for ac_dir in $ac_dummy; do |
---|
2191 | test -z "$ac_dir" && ac_dir=. |
---|
2192 | if test -f $ac_dir/$ac_word; then |
---|
2193 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
2194 | break |
---|
2195 | fi |
---|
2196 | done |
---|
2197 | IFS="$ac_save_ifs" |
---|
2198 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
2199 | ;; |
---|
2200 | esac |
---|
2201 | fi |
---|
2202 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
2203 | if test -n "$AS_FOR_TARGET"; then |
---|
2204 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
2205 | else |
---|
2206 | echo "$ac_t""no" 1>&6 |
---|
2207 | fi |
---|
2208 | |
---|
2209 | fi |
---|
2210 | |
---|
2211 | |
---|
2212 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
2213 | echo "configure:2214: checking target's ld" >&5 |
---|
2214 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
2215 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2216 | else |
---|
2217 | : |
---|
2218 | fi |
---|
2219 | |
---|
2220 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
2221 | |
---|
2222 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
2223 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
2224 | else |
---|
2225 | if test -z "$LD_FOR_TARGET" ; then |
---|
2226 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2227 | # We are using gcc, ask it about its tool |
---|
2228 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2229 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2230 | case $host_os in |
---|
2231 | *cygwin32*) |
---|
2232 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
2233 | ;; |
---|
2234 | *) |
---|
2235 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
2236 | ;; |
---|
2237 | esac |
---|
2238 | |
---|
2239 | fi |
---|
2240 | else |
---|
2241 | # The user set an environment variable. |
---|
2242 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2243 | # will override the environment variable, which isn't what the user |
---|
2244 | # intends |
---|
2245 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2246 | echo "configure:2247: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
2247 | case "$LD_FOR_TARGET" in |
---|
2248 | /*) # valid |
---|
2249 | echo "$ac_t"""yes"" 1>&6 |
---|
2250 | ;; |
---|
2251 | *) # invalid for AC_PATH_PROG |
---|
2252 | echo "$ac_t"""no"" 1>&6 |
---|
2253 | { echo "configure: error: *** |
---|
2254 | Environment variable LD_FOR_TARGET should either |
---|
2255 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2256 | ;; |
---|
2257 | esac |
---|
2258 | fi |
---|
2259 | |
---|
2260 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
2261 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
2262 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2263 | echo "configure:2264: checking for $ac_word" >&5 |
---|
2264 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
2265 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2266 | else |
---|
2267 | case "$LD_FOR_TARGET" in |
---|
2268 | /*) |
---|
2269 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
2270 | ;; |
---|
2271 | ?:/*) |
---|
2272 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2273 | ;; |
---|
2274 | *) |
---|
2275 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2276 | ac_dummy="$PATH" |
---|
2277 | for ac_dir in $ac_dummy; do |
---|
2278 | test -z "$ac_dir" && ac_dir=. |
---|
2279 | if test -f $ac_dir/$ac_word; then |
---|
2280 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
2281 | break |
---|
2282 | fi |
---|
2283 | done |
---|
2284 | IFS="$ac_save_ifs" |
---|
2285 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
2286 | ;; |
---|
2287 | esac |
---|
2288 | fi |
---|
2289 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
2290 | if test -n "$LD_FOR_TARGET"; then |
---|
2291 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
2292 | else |
---|
2293 | echo "$ac_t""no" 1>&6 |
---|
2294 | fi |
---|
2295 | |
---|
2296 | fi |
---|
2297 | |
---|
2298 | |
---|
2299 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
2300 | echo "configure:2301: checking target's nm" >&5 |
---|
2301 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
2302 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2303 | else |
---|
2304 | : |
---|
2305 | fi |
---|
2306 | |
---|
2307 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
2308 | |
---|
2309 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
2310 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
2311 | else |
---|
2312 | if test -z "$NM_FOR_TARGET" ; then |
---|
2313 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2314 | # We are using gcc, ask it about its tool |
---|
2315 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2316 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2317 | case $host_os in |
---|
2318 | *cygwin32*) |
---|
2319 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
2320 | ;; |
---|
2321 | *) |
---|
2322 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
2323 | ;; |
---|
2324 | esac |
---|
2325 | |
---|
2326 | fi |
---|
2327 | else |
---|
2328 | # The user set an environment variable. |
---|
2329 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2330 | # will override the environment variable, which isn't what the user |
---|
2331 | # intends |
---|
2332 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2333 | echo "configure:2334: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
2334 | case "$NM_FOR_TARGET" in |
---|
2335 | /*) # valid |
---|
2336 | echo "$ac_t"""yes"" 1>&6 |
---|
2337 | ;; |
---|
2338 | *) # invalid for AC_PATH_PROG |
---|
2339 | echo "$ac_t"""no"" 1>&6 |
---|
2340 | { echo "configure: error: *** |
---|
2341 | Environment variable NM_FOR_TARGET should either |
---|
2342 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2343 | ;; |
---|
2344 | esac |
---|
2345 | fi |
---|
2346 | |
---|
2347 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
2348 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
2349 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2350 | echo "configure:2351: checking for $ac_word" >&5 |
---|
2351 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
2352 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2353 | else |
---|
2354 | case "$NM_FOR_TARGET" in |
---|
2355 | /*) |
---|
2356 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
2357 | ;; |
---|
2358 | ?:/*) |
---|
2359 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2360 | ;; |
---|
2361 | *) |
---|
2362 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2363 | ac_dummy="$PATH" |
---|
2364 | for ac_dir in $ac_dummy; do |
---|
2365 | test -z "$ac_dir" && ac_dir=. |
---|
2366 | if test -f $ac_dir/$ac_word; then |
---|
2367 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
2368 | break |
---|
2369 | fi |
---|
2370 | done |
---|
2371 | IFS="$ac_save_ifs" |
---|
2372 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
2373 | ;; |
---|
2374 | esac |
---|
2375 | fi |
---|
2376 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
2377 | if test -n "$NM_FOR_TARGET"; then |
---|
2378 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
2379 | else |
---|
2380 | echo "$ac_t""no" 1>&6 |
---|
2381 | fi |
---|
2382 | |
---|
2383 | fi |
---|
2384 | |
---|
2385 | |
---|
2386 | |
---|
2387 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
2388 | echo "configure:2389: checking target's ranlib" >&5 |
---|
2389 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
2390 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2391 | else |
---|
2392 | : |
---|
2393 | fi |
---|
2394 | |
---|
2395 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
2396 | |
---|
2397 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
2398 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
2399 | else |
---|
2400 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
2401 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2402 | # We are using gcc, ask it about its tool |
---|
2403 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2404 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2405 | case $host_os in |
---|
2406 | *cygwin32*) |
---|
2407 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
2408 | ;; |
---|
2409 | *) |
---|
2410 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
2411 | ;; |
---|
2412 | esac |
---|
2413 | |
---|
2414 | fi |
---|
2415 | else |
---|
2416 | # The user set an environment variable. |
---|
2417 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2418 | # will override the environment variable, which isn't what the user |
---|
2419 | # intends |
---|
2420 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2421 | echo "configure:2422: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
2422 | case "$RANLIB_FOR_TARGET" in |
---|
2423 | /*) # valid |
---|
2424 | echo "$ac_t"""yes"" 1>&6 |
---|
2425 | ;; |
---|
2426 | *) # invalid for AC_PATH_PROG |
---|
2427 | echo "$ac_t"""no"" 1>&6 |
---|
2428 | { echo "configure: error: *** |
---|
2429 | Environment variable RANLIB_FOR_TARGET should either |
---|
2430 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2431 | ;; |
---|
2432 | esac |
---|
2433 | fi |
---|
2434 | |
---|
2435 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
2436 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
2437 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2438 | echo "configure:2439: checking for $ac_word" >&5 |
---|
2439 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
2440 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2441 | else |
---|
2442 | case "$RANLIB_FOR_TARGET" in |
---|
2443 | /*) |
---|
2444 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
2445 | ;; |
---|
2446 | ?:/*) |
---|
2447 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2448 | ;; |
---|
2449 | *) |
---|
2450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2451 | ac_dummy="$PATH" |
---|
2452 | for ac_dir in $ac_dummy; do |
---|
2453 | test -z "$ac_dir" && ac_dir=. |
---|
2454 | if test -f $ac_dir/$ac_word; then |
---|
2455 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
2456 | break |
---|
2457 | fi |
---|
2458 | done |
---|
2459 | IFS="$ac_save_ifs" |
---|
2460 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
2461 | ;; |
---|
2462 | esac |
---|
2463 | fi |
---|
2464 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
2465 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
2466 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
2467 | else |
---|
2468 | echo "$ac_t""no" 1>&6 |
---|
2469 | fi |
---|
2470 | |
---|
2471 | fi |
---|
2472 | |
---|
2473 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
2474 | # ranlib wasn't found; check if ar -s is available |
---|
2475 | |
---|
2476 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
2477 | echo "configure:2478: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
2478 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
2479 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2480 | else |
---|
2481 | |
---|
2482 | cat > conftest.$ac_ext <<EOF |
---|
2483 | int foo( int b ) |
---|
2484 | { return b; } |
---|
2485 | EOF |
---|
2486 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
2487 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
2488 | && test -s conftest.a ; \ |
---|
2489 | then |
---|
2490 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
2491 | else |
---|
2492 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
2493 | fi |
---|
2494 | rm -f conftest* |
---|
2495 | |
---|
2496 | fi |
---|
2497 | |
---|
2498 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
2499 | |
---|
2500 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
2501 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
2502 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
2503 | else |
---|
2504 | { echo "configure: error: *** |
---|
2505 | Can't figure out how to build a library index |
---|
2506 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
2507 | fi |
---|
2508 | fi |
---|
2509 | |
---|
2510 | |
---|
2511 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
2512 | echo "configure:2513: checking target's objcopy" >&5 |
---|
2513 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
2514 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2515 | else |
---|
2516 | : |
---|
2517 | fi |
---|
2518 | |
---|
2519 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
2520 | |
---|
2521 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
2522 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
2523 | else |
---|
2524 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
2525 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2526 | # We are using gcc, ask it about its tool |
---|
2527 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2528 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2529 | case $host_os in |
---|
2530 | *cygwin32*) |
---|
2531 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
2532 | ;; |
---|
2533 | *) |
---|
2534 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
2535 | ;; |
---|
2536 | esac |
---|
2537 | |
---|
2538 | fi |
---|
2539 | else |
---|
2540 | # The user set an environment variable. |
---|
2541 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2542 | # will override the environment variable, which isn't what the user |
---|
2543 | # intends |
---|
2544 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2545 | echo "configure:2546: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
2546 | case "$OBJCOPY_FOR_TARGET" in |
---|
2547 | /*) # valid |
---|
2548 | echo "$ac_t"""yes"" 1>&6 |
---|
2549 | ;; |
---|
2550 | *) # invalid for AC_PATH_PROG |
---|
2551 | echo "$ac_t"""no"" 1>&6 |
---|
2552 | { echo "configure: error: *** |
---|
2553 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
2554 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2555 | ;; |
---|
2556 | esac |
---|
2557 | fi |
---|
2558 | |
---|
2559 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
2560 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
2561 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2562 | echo "configure:2563: checking for $ac_word" >&5 |
---|
2563 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
2564 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2565 | else |
---|
2566 | case "$OBJCOPY_FOR_TARGET" in |
---|
2567 | /*) |
---|
2568 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
2569 | ;; |
---|
2570 | ?:/*) |
---|
2571 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2572 | ;; |
---|
2573 | *) |
---|
2574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2575 | ac_dummy="$PATH" |
---|
2576 | for ac_dir in $ac_dummy; do |
---|
2577 | test -z "$ac_dir" && ac_dir=. |
---|
2578 | if test -f $ac_dir/$ac_word; then |
---|
2579 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
2580 | break |
---|
2581 | fi |
---|
2582 | done |
---|
2583 | IFS="$ac_save_ifs" |
---|
2584 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
2585 | ;; |
---|
2586 | esac |
---|
2587 | fi |
---|
2588 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
2589 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
2590 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
2591 | else |
---|
2592 | echo "$ac_t""no" 1>&6 |
---|
2593 | fi |
---|
2594 | |
---|
2595 | fi |
---|
2596 | |
---|
2597 | |
---|
2598 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
2599 | echo "configure:2600: checking target's size" >&5 |
---|
2600 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
2601 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2602 | else |
---|
2603 | : |
---|
2604 | fi |
---|
2605 | |
---|
2606 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
2607 | |
---|
2608 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
2609 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
2610 | else |
---|
2611 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
2612 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2613 | # We are using gcc, ask it about its tool |
---|
2614 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2615 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2616 | case $host_os in |
---|
2617 | *cygwin32*) |
---|
2618 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
2619 | ;; |
---|
2620 | *) |
---|
2621 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
2622 | ;; |
---|
2623 | esac |
---|
2624 | |
---|
2625 | fi |
---|
2626 | else |
---|
2627 | # The user set an environment variable. |
---|
2628 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2629 | # will override the environment variable, which isn't what the user |
---|
2630 | # intends |
---|
2631 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2632 | echo "configure:2633: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
2633 | case "$SIZE_FOR_TARGET" in |
---|
2634 | /*) # valid |
---|
2635 | echo "$ac_t"""yes"" 1>&6 |
---|
2636 | ;; |
---|
2637 | *) # invalid for AC_PATH_PROG |
---|
2638 | echo "$ac_t"""no"" 1>&6 |
---|
2639 | { echo "configure: error: *** |
---|
2640 | Environment variable SIZE_FOR_TARGET should either |
---|
2641 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2642 | ;; |
---|
2643 | esac |
---|
2644 | fi |
---|
2645 | |
---|
2646 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
2647 | set dummy "$program_prefix"size; ac_word=$2 |
---|
2648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2649 | echo "configure:2650: checking for $ac_word" >&5 |
---|
2650 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
2651 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2652 | else |
---|
2653 | case "$SIZE_FOR_TARGET" in |
---|
2654 | /*) |
---|
2655 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
2656 | ;; |
---|
2657 | ?:/*) |
---|
2658 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2659 | ;; |
---|
2660 | *) |
---|
2661 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2662 | ac_dummy="$PATH" |
---|
2663 | for ac_dir in $ac_dummy; do |
---|
2664 | test -z "$ac_dir" && ac_dir=. |
---|
2665 | if test -f $ac_dir/$ac_word; then |
---|
2666 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
2667 | break |
---|
2668 | fi |
---|
2669 | done |
---|
2670 | IFS="$ac_save_ifs" |
---|
2671 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
2672 | ;; |
---|
2673 | esac |
---|
2674 | fi |
---|
2675 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
2676 | if test -n "$SIZE_FOR_TARGET"; then |
---|
2677 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
2678 | else |
---|
2679 | echo "$ac_t""no" 1>&6 |
---|
2680 | fi |
---|
2681 | |
---|
2682 | fi |
---|
2683 | |
---|
2684 | |
---|
2685 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
2686 | echo "configure:2687: checking target's strip" >&5 |
---|
2687 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
2688 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2689 | else |
---|
2690 | : |
---|
2691 | fi |
---|
2692 | |
---|
2693 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
2694 | |
---|
2695 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
2696 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
2697 | else |
---|
2698 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
2699 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2700 | # We are using gcc, ask it about its tool |
---|
2701 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2702 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2703 | case $host_os in |
---|
2704 | *cygwin32*) |
---|
2705 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
2706 | ;; |
---|
2707 | *) |
---|
2708 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
2709 | ;; |
---|
2710 | esac |
---|
2711 | |
---|
2712 | fi |
---|
2713 | else |
---|
2714 | # The user set an environment variable. |
---|
2715 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2716 | # will override the environment variable, which isn't what the user |
---|
2717 | # intends |
---|
2718 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2719 | echo "configure:2720: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
2720 | case "$STRIP_FOR_TARGET" in |
---|
2721 | /*) # valid |
---|
2722 | echo "$ac_t"""yes"" 1>&6 |
---|
2723 | ;; |
---|
2724 | *) # invalid for AC_PATH_PROG |
---|
2725 | echo "$ac_t"""no"" 1>&6 |
---|
2726 | { echo "configure: error: *** |
---|
2727 | Environment variable STRIP_FOR_TARGET should either |
---|
2728 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2729 | ;; |
---|
2730 | esac |
---|
2731 | fi |
---|
2732 | |
---|
2733 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
2734 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
2735 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2736 | echo "configure:2737: checking for $ac_word" >&5 |
---|
2737 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
2738 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2739 | else |
---|
2740 | case "$STRIP_FOR_TARGET" in |
---|
2741 | /*) |
---|
2742 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
2743 | ;; |
---|
2744 | ?:/*) |
---|
2745 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2746 | ;; |
---|
2747 | *) |
---|
2748 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2749 | ac_dummy="$PATH" |
---|
2750 | for ac_dir in $ac_dummy; do |
---|
2751 | test -z "$ac_dir" && ac_dir=. |
---|
2752 | if test -f $ac_dir/$ac_word; then |
---|
2753 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
2754 | break |
---|
2755 | fi |
---|
2756 | done |
---|
2757 | IFS="$ac_save_ifs" |
---|
2758 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
2759 | ;; |
---|
2760 | esac |
---|
2761 | fi |
---|
2762 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
2763 | if test -n "$STRIP_FOR_TARGET"; then |
---|
2764 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
2765 | else |
---|
2766 | echo "$ac_t""no" 1>&6 |
---|
2767 | fi |
---|
2768 | |
---|
2769 | fi |
---|
2770 | |
---|
2771 | |
---|
2772 | |
---|
2773 | if test "${target_cpu}" = "i386"; then |
---|
2774 | echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 |
---|
2775 | echo "configure:2776: checking for 16 bit mode assembler support" >&5 |
---|
2776 | if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then |
---|
2777 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2778 | else |
---|
2779 | cat > conftest.s << EOF |
---|
2780 | .code16 |
---|
2781 | data32 |
---|
2782 | addr32 |
---|
2783 | lgdt 0 |
---|
2784 | EOF |
---|
2785 | if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
---|
2786 | rtems_cv_prog_gas_code16=yes |
---|
2787 | else |
---|
2788 | rtems_cv_prog_gas_code16=no |
---|
2789 | fi |
---|
2790 | fi |
---|
2791 | |
---|
2792 | echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6 |
---|
2793 | RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" |
---|
2794 | fi |
---|
2795 | |
---|
2796 | |
---|
2797 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2798 | set dummy gcc; ac_word=$2 |
---|
2799 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2800 | echo "configure:2801: checking for $ac_word" >&5 |
---|
2801 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2802 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2803 | else |
---|
2804 | if test -n "$CC"; then |
---|
2805 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2806 | else |
---|
2807 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2808 | ac_dummy="$PATH" |
---|
2809 | for ac_dir in $ac_dummy; do |
---|
2810 | test -z "$ac_dir" && ac_dir=. |
---|
2811 | if test -f $ac_dir/$ac_word; then |
---|
2812 | ac_cv_prog_CC="gcc" |
---|
2813 | break |
---|
2814 | fi |
---|
2815 | done |
---|
2816 | IFS="$ac_save_ifs" |
---|
2817 | fi |
---|
2818 | fi |
---|
2819 | CC="$ac_cv_prog_CC" |
---|
2820 | if test -n "$CC"; then |
---|
2821 | echo "$ac_t""$CC" 1>&6 |
---|
2822 | else |
---|
2823 | echo "$ac_t""no" 1>&6 |
---|
2824 | fi |
---|
2825 | |
---|
2826 | if test -z "$CC"; then |
---|
2827 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2828 | set dummy cc; ac_word=$2 |
---|
2829 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2830 | echo "configure:2831: checking for $ac_word" >&5 |
---|
2831 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2832 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2833 | else |
---|
2834 | if test -n "$CC"; then |
---|
2835 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2836 | else |
---|
2837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2838 | ac_prog_rejected=no |
---|
2839 | ac_dummy="$PATH" |
---|
2840 | for ac_dir in $ac_dummy; do |
---|
2841 | test -z "$ac_dir" && ac_dir=. |
---|
2842 | if test -f $ac_dir/$ac_word; then |
---|
2843 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
2844 | ac_prog_rejected=yes |
---|
2845 | continue |
---|
2846 | fi |
---|
2847 | ac_cv_prog_CC="cc" |
---|
2848 | break |
---|
2849 | fi |
---|
2850 | done |
---|
2851 | IFS="$ac_save_ifs" |
---|
2852 | if test $ac_prog_rejected = yes; then |
---|
2853 | # We found a bogon in the path, so make sure we never use it. |
---|
2854 | set dummy $ac_cv_prog_CC |
---|
2855 | shift |
---|
2856 | if test $# -gt 0; then |
---|
2857 | # We chose a different compiler from the bogus one. |
---|
2858 | # However, it has the same basename, so the bogon will be chosen |
---|
2859 | # first if we set CC to just the basename; use the full file name. |
---|
2860 | shift |
---|
2861 | set dummy "$ac_dir/$ac_word" "$@" |
---|
2862 | shift |
---|
2863 | ac_cv_prog_CC="$@" |
---|
2864 | fi |
---|
2865 | fi |
---|
2866 | fi |
---|
2867 | fi |
---|
2868 | CC="$ac_cv_prog_CC" |
---|
2869 | if test -n "$CC"; then |
---|
2870 | echo "$ac_t""$CC" 1>&6 |
---|
2871 | else |
---|
2872 | echo "$ac_t""no" 1>&6 |
---|
2873 | fi |
---|
2874 | |
---|
2875 | if test -z "$CC"; then |
---|
2876 | case "`uname -s`" in |
---|
2877 | *win32* | *WIN32*) |
---|
2878 | # Extract the first word of "cl", so it can be a program name with args. |
---|
2879 | set dummy cl; ac_word=$2 |
---|
2880 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2881 | echo "configure:2882: checking for $ac_word" >&5 |
---|
2882 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2883 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2884 | else |
---|
2885 | if test -n "$CC"; then |
---|
2886 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2887 | else |
---|
2888 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2889 | ac_dummy="$PATH" |
---|
2890 | for ac_dir in $ac_dummy; do |
---|
2891 | test -z "$ac_dir" && ac_dir=. |
---|
2892 | if test -f $ac_dir/$ac_word; then |
---|
2893 | ac_cv_prog_CC="cl" |
---|
2894 | break |
---|
2895 | fi |
---|
2896 | done |
---|
2897 | IFS="$ac_save_ifs" |
---|
2898 | fi |
---|
2899 | fi |
---|
2900 | CC="$ac_cv_prog_CC" |
---|
2901 | if test -n "$CC"; then |
---|
2902 | echo "$ac_t""$CC" 1>&6 |
---|
2903 | else |
---|
2904 | echo "$ac_t""no" 1>&6 |
---|
2905 | fi |
---|
2906 | ;; |
---|
2907 | esac |
---|
2908 | fi |
---|
2909 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
2910 | fi |
---|
2911 | |
---|
2912 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
2913 | echo "configure:2914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
2914 | |
---|
2915 | ac_ext=c |
---|
2916 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2917 | ac_cpp='$CPP $CPPFLAGS' |
---|
2918 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2919 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2920 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2921 | |
---|
2922 | cat > conftest.$ac_ext << EOF |
---|
2923 | |
---|
2924 | #line 2925 "configure" |
---|
2925 | #include "confdefs.h" |
---|
2926 | |
---|
2927 | main(){return(0);} |
---|
2928 | EOF |
---|
2929 | if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2930 | ac_cv_prog_cc_works=yes |
---|
2931 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
2932 | if (./conftest; exit) 2>/dev/null; then |
---|
2933 | ac_cv_prog_cc_cross=no |
---|
2934 | else |
---|
2935 | ac_cv_prog_cc_cross=yes |
---|
2936 | fi |
---|
2937 | else |
---|
2938 | echo "configure: failed program was:" >&5 |
---|
2939 | cat conftest.$ac_ext >&5 |
---|
2940 | ac_cv_prog_cc_works=no |
---|
2941 | fi |
---|
2942 | rm -fr conftest* |
---|
2943 | ac_ext=c |
---|
2944 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2945 | ac_cpp='$CPP $CPPFLAGS' |
---|
2946 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2947 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2948 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2949 | |
---|
2950 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
2951 | if test $ac_cv_prog_cc_works = no; then |
---|
2952 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
2953 | fi |
---|
2954 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
2955 | echo "configure:2956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
2956 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
2957 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2958 | |
---|
2959 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
2960 | echo "configure:2961: checking whether we are using GNU C" >&5 |
---|
2961 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
2962 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2963 | else |
---|
2964 | cat > conftest.c <<EOF |
---|
2965 | #ifdef __GNUC__ |
---|
2966 | yes; |
---|
2967 | #endif |
---|
2968 | EOF |
---|
2969 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
2970 | ac_cv_prog_gcc=yes |
---|
2971 | else |
---|
2972 | ac_cv_prog_gcc=no |
---|
2973 | fi |
---|
2974 | fi |
---|
2975 | |
---|
2976 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
2977 | |
---|
2978 | if test $ac_cv_prog_gcc = yes; then |
---|
2979 | GCC=yes |
---|
2980 | else |
---|
2981 | GCC= |
---|
2982 | fi |
---|
2983 | |
---|
2984 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
2985 | ac_save_CFLAGS="$CFLAGS" |
---|
2986 | CFLAGS= |
---|
2987 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
2988 | echo "configure:2989: checking whether ${CC-cc} accepts -g" >&5 |
---|
2989 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
2990 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2991 | else |
---|
2992 | echo 'void f(){}' > conftest.c |
---|
2993 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
2994 | ac_cv_prog_cc_g=yes |
---|
2995 | else |
---|
2996 | ac_cv_prog_cc_g=no |
---|
2997 | fi |
---|
2998 | rm -f conftest* |
---|
2999 | |
---|
3000 | fi |
---|
3001 | |
---|
3002 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
3003 | if test "$ac_test_CFLAGS" = set; then |
---|
3004 | CFLAGS="$ac_save_CFLAGS" |
---|
3005 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3006 | if test "$GCC" = yes; then |
---|
3007 | CFLAGS="-g -O2" |
---|
3008 | else |
---|
3009 | CFLAGS="-g" |
---|
3010 | fi |
---|
3011 | else |
---|
3012 | if test "$GCC" = yes; then |
---|
3013 | CFLAGS="-O2" |
---|
3014 | else |
---|
3015 | CFLAGS= |
---|
3016 | fi |
---|
3017 | fi |
---|
3018 | |
---|
3019 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
---|
3020 | echo "configure:3021: checking for Cygwin environment" >&5 |
---|
3021 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
---|
3022 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3023 | else |
---|
3024 | cat > conftest.$ac_ext <<EOF |
---|
3025 | #line 3026 "configure" |
---|
3026 | #include "confdefs.h" |
---|
3027 | |
---|
3028 | int main() { |
---|
3029 | |
---|
3030 | #ifndef __CYGWIN__ |
---|
3031 | #define __CYGWIN__ __CYGWIN32__ |
---|
3032 | #endif |
---|
3033 | return __CYGWIN__; |
---|
3034 | ; return 0; } |
---|
3035 | EOF |
---|
3036 | if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3037 | rm -rf conftest* |
---|
3038 | ac_cv_cygwin=yes |
---|
3039 | else |
---|
3040 | echo "configure: failed program was:" >&5 |
---|
3041 | cat conftest.$ac_ext >&5 |
---|
3042 | rm -rf conftest* |
---|
3043 | ac_cv_cygwin=no |
---|
3044 | fi |
---|
3045 | rm -f conftest* |
---|
3046 | rm -f conftest* |
---|
3047 | fi |
---|
3048 | |
---|
3049 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
---|
3050 | CYGWIN= |
---|
3051 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
---|
3052 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
---|
3053 | echo "configure:3054: checking for mingw32 environment" >&5 |
---|
3054 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
---|
3055 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3056 | else |
---|
3057 | cat > conftest.$ac_ext <<EOF |
---|
3058 | #line 3059 "configure" |
---|
3059 | #include "confdefs.h" |
---|
3060 | |
---|
3061 | int main() { |
---|
3062 | return __MINGW32__; |
---|
3063 | ; return 0; } |
---|
3064 | EOF |
---|
3065 | if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3066 | rm -rf conftest* |
---|
3067 | ac_cv_mingw32=yes |
---|
3068 | else |
---|
3069 | echo "configure: failed program was:" >&5 |
---|
3070 | cat conftest.$ac_ext >&5 |
---|
3071 | rm -rf conftest* |
---|
3072 | ac_cv_mingw32=no |
---|
3073 | fi |
---|
3074 | rm -f conftest* |
---|
3075 | rm -f conftest* |
---|
3076 | fi |
---|
3077 | |
---|
3078 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
---|
3079 | MINGW32= |
---|
3080 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
---|
3081 | |
---|
3082 | |
---|
3083 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
---|
3084 | echo "configure:3085: checking for executable suffix" >&5 |
---|
3085 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
---|
3086 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3087 | else |
---|
3088 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
---|
3089 | ac_cv_exeext=.exe |
---|
3090 | else |
---|
3091 | rm -f conftest* |
---|
3092 | echo 'int main () { return 0; }' > conftest.$ac_ext |
---|
3093 | ac_cv_exeext= |
---|
3094 | if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
3095 | for file in conftest.*; do |
---|
3096 | case $file in |
---|
3097 | *.c | *.o | *.obj) ;; |
---|
3098 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
---|
3099 | esac |
---|
3100 | done |
---|
3101 | else |
---|
3102 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
---|
3103 | fi |
---|
3104 | rm -f conftest* |
---|
3105 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
---|
3106 | fi |
---|
3107 | fi |
---|
3108 | |
---|
3109 | EXEEXT="" |
---|
3110 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
---|
3111 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
---|
3112 | ac_exeext=$EXEEXT |
---|
3113 | |
---|
3114 | |
---|
3115 | case $host_os in |
---|
3116 | *cygwin32*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
3117 | *) ;; |
---|
3118 | esac |
---|
3119 | |
---|
3120 | |
---|
3121 | if test "$ac_cv_prog_gcc" = "yes"; then |
---|
3122 | CC_CFLAGS_DEFAULT=-Wall |
---|
3123 | CC_CFLAGS_PROFILE_V=${CC_CFLAGS_PROFILE_V-"-pg"} |
---|
3124 | CC_LDFLAGS_PROFILE_V=${CC_LDFLAGS_PROFILE_V-$CC_CFLAGS_PROFILE_V} |
---|
3125 | fi |
---|
3126 | |
---|
3127 | test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"} |
---|
3128 | |
---|
3129 | if test "$target_cpu" = "unix" ; then |
---|
3130 | |
---|
3131 | |
---|
3132 | echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 |
---|
3133 | echo "configure:3134: checking whether $RTEMS_HOST supports System V semaphores" >&5 |
---|
3134 | if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then |
---|
3135 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3136 | else |
---|
3137 | |
---|
3138 | if test "$cross_compiling" = yes; then |
---|
3139 | : |
---|
3140 | else |
---|
3141 | cat > conftest.$ac_ext <<EOF |
---|
3142 | #line 3143 "configure" |
---|
3143 | #include "confdefs.h" |
---|
3144 | |
---|
3145 | #include <sys/types.h> |
---|
3146 | #include <sys/ipc.h> |
---|
3147 | #include <sys/sem.h> |
---|
3148 | int main () { |
---|
3149 | #if !defined(sun) |
---|
3150 | union semun arg ; |
---|
3151 | #else |
---|
3152 | union semun { |
---|
3153 | int val; |
---|
3154 | struct semid_ds *buf; |
---|
3155 | ushort *array; |
---|
3156 | } arg; |
---|
3157 | #endif |
---|
3158 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
3159 | if (id == -1) |
---|
3160 | exit(1); |
---|
3161 | arg.val = 0; /* avoid implicit type cast to union */ |
---|
3162 | if (semctl(id, 0, IPC_RMID, arg) == -1) |
---|
3163 | exit(1); |
---|
3164 | exit(0); |
---|
3165 | } |
---|
3166 | |
---|
3167 | EOF |
---|
3168 | if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3169 | then |
---|
3170 | rtems_cv_sysv_sem="yes" |
---|
3171 | else |
---|
3172 | echo "configure: failed program was:" >&5 |
---|
3173 | cat conftest.$ac_ext >&5 |
---|
3174 | rm -fr conftest* |
---|
3175 | rtems_cv_sysv_sem="no" |
---|
3176 | fi |
---|
3177 | rm -fr conftest* |
---|
3178 | fi |
---|
3179 | |
---|
3180 | |
---|
3181 | fi |
---|
3182 | |
---|
3183 | echo "$ac_t""$rtems_cv_sysv_sem" 1>&6 |
---|
3184 | |
---|
3185 | if test "$rtems_cv_sysv_sem" != "yes" ; then |
---|
3186 | { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; } |
---|
3187 | fi |
---|
3188 | |
---|
3189 | |
---|
3190 | echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 |
---|
3191 | echo "configure:3192: checking whether $RTEMS_HOST supports System V shared memory" >&5 |
---|
3192 | if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then |
---|
3193 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3194 | else |
---|
3195 | |
---|
3196 | if test "$cross_compiling" = yes; then |
---|
3197 | : |
---|
3198 | else |
---|
3199 | cat > conftest.$ac_ext <<EOF |
---|
3200 | #line 3201 "configure" |
---|
3201 | #include "confdefs.h" |
---|
3202 | |
---|
3203 | #include <sys/types.h> |
---|
3204 | #include <sys/ipc.h> |
---|
3205 | #include <sys/shm.h> |
---|
3206 | int main () { |
---|
3207 | int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
3208 | if (id == -1) |
---|
3209 | exit(1); |
---|
3210 | if (shmctl(id, IPC_RMID, 0) == -1) |
---|
3211 | exit(1); |
---|
3212 | exit(0); |
---|
3213 | } |
---|
3214 | |
---|
3215 | EOF |
---|
3216 | if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3217 | then |
---|
3218 | rtems_cv_sysv_shm="yes" |
---|
3219 | else |
---|
3220 | echo "configure: failed program was:" >&5 |
---|
3221 | cat conftest.$ac_ext >&5 |
---|
3222 | rm -fr conftest* |
---|
3223 | rtems_cv_sysv_shm="no" |
---|
3224 | fi |
---|
3225 | rm -fr conftest* |
---|
3226 | fi |
---|
3227 | |
---|
3228 | |
---|
3229 | fi |
---|
3230 | |
---|
3231 | echo "$ac_t""$rtems_cv_sysv_shm" 1>&6 |
---|
3232 | |
---|
3233 | if test "$rtems_cv_sysv_shm" != "yes" ; then |
---|
3234 | { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; } |
---|
3235 | fi |
---|
3236 | |
---|
3237 | |
---|
3238 | echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 |
---|
3239 | echo "configure:3240: checking whether $RTEMS_HOST supports System V messages" >&5 |
---|
3240 | if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then |
---|
3241 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3242 | else |
---|
3243 | |
---|
3244 | if test "$cross_compiling" = yes; then |
---|
3245 | : |
---|
3246 | else |
---|
3247 | cat > conftest.$ac_ext <<EOF |
---|
3248 | #line 3249 "configure" |
---|
3249 | #include "confdefs.h" |
---|
3250 | |
---|
3251 | #include <sys/types.h> |
---|
3252 | #include <sys/ipc.h> |
---|
3253 | #include <sys/msg.h> |
---|
3254 | int main () { |
---|
3255 | int id=msgget(IPC_PRIVATE,IPC_CREAT|0400); |
---|
3256 | if (id == -1) |
---|
3257 | exit(1); |
---|
3258 | if (msgctl(id, IPC_RMID, 0) == -1) |
---|
3259 | exit(1); |
---|
3260 | exit(0); |
---|
3261 | } |
---|
3262 | |
---|
3263 | EOF |
---|
3264 | if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3265 | then |
---|
3266 | rtems_cv_sysv_msg="yes" |
---|
3267 | else |
---|
3268 | echo "configure: failed program was:" >&5 |
---|
3269 | cat conftest.$ac_ext >&5 |
---|
3270 | rm -fr conftest* |
---|
3271 | rtems_cv_sysv_msg="no" |
---|
3272 | fi |
---|
3273 | rm -fr conftest* |
---|
3274 | fi |
---|
3275 | |
---|
3276 | |
---|
3277 | fi |
---|
3278 | |
---|
3279 | echo "$ac_t""$rtems_cv_sysv_msg" 1>&6 |
---|
3280 | |
---|
3281 | if test "$rtems_cv_sysv_msg" != "yes" ; then |
---|
3282 | { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; } |
---|
3283 | fi |
---|
3284 | fi |
---|
3285 | |
---|
3286 | # find all the Executive Makefiles |
---|
3287 | |
---|
3288 | echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6 |
---|
3289 | echo "configure:3290: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5 |
---|
3290 | if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then |
---|
3291 | rtems_av_save_dir=`pwd`; |
---|
3292 | cd $srcdir; |
---|
3293 | rtems_av_tmp=`find c/src/exec/score/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3294 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3295 | cd $rtems_av_save_dir; |
---|
3296 | echo "$ac_t""done" 1>&6 |
---|
3297 | else |
---|
3298 | echo "$ac_t""no" 1>&6 |
---|
3299 | fi |
---|
3300 | |
---|
3301 | |
---|
3302 | |
---|
3303 | echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6 |
---|
3304 | echo "configure:3305: checking for Makefile.in in c/src/exec/rtems" >&5 |
---|
3305 | if test -d $srcdir/c/src/exec/rtems; then |
---|
3306 | rtems_av_save_dir=`pwd`; |
---|
3307 | cd $srcdir; |
---|
3308 | rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3309 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3310 | cd $rtems_av_save_dir; |
---|
3311 | echo "$ac_t""done" 1>&6 |
---|
3312 | else |
---|
3313 | echo "$ac_t""no" 1>&6 |
---|
3314 | fi |
---|
3315 | |
---|
3316 | |
---|
3317 | |
---|
3318 | echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 |
---|
3319 | echo "configure:3320: checking for Makefile.in in c/src/exec/sapi" >&5 |
---|
3320 | if test -d $srcdir/c/src/exec/sapi; then |
---|
3321 | rtems_av_save_dir=`pwd`; |
---|
3322 | cd $srcdir; |
---|
3323 | rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3324 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3325 | cd $rtems_av_save_dir; |
---|
3326 | echo "$ac_t""done" 1>&6 |
---|
3327 | else |
---|
3328 | echo "$ac_t""no" 1>&6 |
---|
3329 | fi |
---|
3330 | |
---|
3331 | |
---|
3332 | |
---|
3333 | echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$target_cpu""... $ac_c" 1>&6 |
---|
3334 | echo "configure:3335: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5 |
---|
3335 | if test -d $srcdir/c/src/exec/score/cpu/$target_cpu; then |
---|
3336 | rtems_av_save_dir=`pwd`; |
---|
3337 | cd $srcdir; |
---|
3338 | rtems_av_tmp=`find c/src/exec/score/cpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3339 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3340 | cd $rtems_av_save_dir; |
---|
3341 | echo "$ac_t""done" 1>&6 |
---|
3342 | else |
---|
3343 | echo "$ac_t""no" 1>&6 |
---|
3344 | fi |
---|
3345 | |
---|
3346 | |
---|
3347 | |
---|
3348 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
3349 | |
---|
3350 | echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6 |
---|
3351 | echo "configure:3352: checking for Makefile.in in c/src/exec/posix" >&5 |
---|
3352 | if test -d $srcdir/c/src/exec/posix; then |
---|
3353 | rtems_av_save_dir=`pwd`; |
---|
3354 | cd $srcdir; |
---|
3355 | rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3356 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3357 | cd $rtems_av_save_dir; |
---|
3358 | echo "$ac_t""done" 1>&6 |
---|
3359 | else |
---|
3360 | echo "$ac_t""no" 1>&6 |
---|
3361 | fi |
---|
3362 | |
---|
3363 | |
---|
3364 | makefiles="$makefiles c/src/exec/wrapup/posix/Makefile" |
---|
3365 | fi |
---|
3366 | |
---|
3367 | # find all the Makefiles for the BSPs |
---|
3368 | if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then |
---|
3369 | makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile" |
---|
3370 | |
---|
3371 | if test -z "$rtems_bsp"; then |
---|
3372 | echo $ac_n "checking for bsps""... $ac_c" 1>&6 |
---|
3373 | echo "configure:3374: checking for bsps" >&5 |
---|
3374 | files=`ls $srcdir/c/src/lib/libbsp/$target_cpu` |
---|
3375 | for file in $files; do |
---|
3376 | case $file in |
---|
3377 | shared*);; |
---|
3378 | Makefile*);; |
---|
3379 | READ*);; |
---|
3380 | CVS*);; |
---|
3381 | pxfl*);; |
---|
3382 | go32*);; # so the i386 port can pick up the other Makefiles |
---|
3383 | # Now account for BSPs with build variants |
---|
3384 | gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";; |
---|
3385 | p4000) rtems_bsp="$rtems_bsp p4600 p4650";; |
---|
3386 | mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";; |
---|
3387 | *) rtems_bsp="$rtems_bsp $file";; |
---|
3388 | esac; |
---|
3389 | done |
---|
3390 | |
---|
3391 | makefiles="$makefiles c/src/lib/libbsp/bare/Makefile" |
---|
3392 | |
---|
3393 | echo "$ac_t""$rtems_bsp done" 1>&6 |
---|
3394 | fi |
---|
3395 | |
---|
3396 | # collect makefiles for each bsp |
---|
3397 | for i in $rtems_bsp; do |
---|
3398 | # make sure there is a make/custom file for the bsp |
---|
3399 | if test ! -r "$srcdir/make/custom/${i}.cfg"; then |
---|
3400 | { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; } |
---|
3401 | fi |
---|
3402 | |
---|
3403 | # account for "aliased" bsps which share source code |
---|
3404 | case $i in |
---|
3405 | mvme162lx) bspdir=mvme162 ;; # mvme162 board variant |
---|
3406 | gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode |
---|
3407 | go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU |
---|
3408 | p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 |
---|
3409 | p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 |
---|
3410 | *) bspdir=$i;; |
---|
3411 | esac |
---|
3412 | |
---|
3413 | # Is there code where there should be for this BSP? |
---|
3414 | # The bare bsp is a special case as it is not under the target_cpu path |
---|
3415 | case $i in |
---|
3416 | bare) |
---|
3417 | bspcpudir= |
---|
3418 | if test "X${BARE_CPU_CFLAGS}" = "X" ; then |
---|
3419 | { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; } |
---|
3420 | fi |
---|
3421 | if test "X${BARE_CPU_MODEL}" = "X" ; then |
---|
3422 | { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; } |
---|
3423 | fi |
---|
3424 | ;; |
---|
3425 | *) |
---|
3426 | bspcpudir=$target_cpu/ |
---|
3427 | ;; |
---|
3428 | esac |
---|
3429 | |
---|
3430 | if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then |
---|
3431 | RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i" |
---|
3432 | # make sure the Makefiles in a bsp directory are only done once |
---|
3433 | echo $bspdirs | grep $bspdir >/dev/null 2>&1 |
---|
3434 | if test $? -ne 0 ; then |
---|
3435 | bspdirs="$bspdirs $bspdir" |
---|
3436 | |
---|
3437 | echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6 |
---|
3438 | echo "configure:3439: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5 |
---|
3439 | if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then |
---|
3440 | rtems_av_save_dir=`pwd`; |
---|
3441 | cd $srcdir; |
---|
3442 | rtems_av_tmp=`find c/src/lib/libbsp/$bspcpudir$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3443 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3444 | cd $rtems_av_save_dir; |
---|
3445 | echo "$ac_t""done" 1>&6 |
---|
3446 | else |
---|
3447 | echo "$ac_t""no" 1>&6 |
---|
3448 | fi |
---|
3449 | |
---|
3450 | |
---|
3451 | |
---|
3452 | echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6 |
---|
3453 | echo "configure:3454: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5 |
---|
3454 | if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then |
---|
3455 | rtems_av_save_dir=`pwd`; |
---|
3456 | cd $srcdir; |
---|
3457 | rtems_av_tmp=`find c/src/lib/libbsp/${bspcpudir}shared -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3458 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3459 | cd $rtems_av_save_dir; |
---|
3460 | echo "$ac_t""done" 1>&6 |
---|
3461 | else |
---|
3462 | echo "$ac_t""no" 1>&6 |
---|
3463 | fi |
---|
3464 | |
---|
3465 | |
---|
3466 | fi |
---|
3467 | else |
---|
3468 | { echo "configure: error: unable to find libbsp directory ($bspdir) for $i" 1>&2; exit 1; } |
---|
3469 | fi |
---|
3470 | done |
---|
3471 | fi |
---|
3472 | |
---|
3473 | # find all the CPU dependent library Makefiles |
---|
3474 | |
---|
3475 | echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6 |
---|
3476 | echo "configure:3477: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5 |
---|
3477 | if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then |
---|
3478 | rtems_av_save_dir=`pwd`; |
---|
3479 | cd $srcdir; |
---|
3480 | rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3481 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3482 | cd $rtems_av_save_dir; |
---|
3483 | echo "$ac_t""done" 1>&6 |
---|
3484 | else |
---|
3485 | echo "$ac_t""no" 1>&6 |
---|
3486 | fi |
---|
3487 | |
---|
3488 | |
---|
3489 | |
---|
3490 | if test "$skip_startfiles" != "yes"; then |
---|
3491 | |
---|
3492 | echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6 |
---|
3493 | echo "configure:3494: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5 |
---|
3494 | if test -d $srcdir/c/src/lib/start/$target_cpu; then |
---|
3495 | rtems_av_save_dir=`pwd`; |
---|
3496 | cd $srcdir; |
---|
3497 | rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3498 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3499 | cd $rtems_av_save_dir; |
---|
3500 | echo "$ac_t""done" 1>&6 |
---|
3501 | else |
---|
3502 | echo "$ac_t""no" 1>&6 |
---|
3503 | fi |
---|
3504 | |
---|
3505 | |
---|
3506 | fi |
---|
3507 | |
---|
3508 | |
---|
3509 | PROJECT_ROOT=`pwd;` |
---|
3510 | |
---|
3511 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
3512 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
3513 | inline_dir=macros |
---|
3514 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
3515 | # The problem is that there is currently no code in posix/macros :) |
---|
3516 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
3517 | fi |
---|
3518 | else |
---|
3519 | inline_dir=inline |
---|
3520 | fi |
---|
3521 | |
---|
3522 | # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles |
---|
3523 | echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6 |
---|
3524 | echo "configure:3525: checking if networking is enabled? " >&5 |
---|
3525 | echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6 |
---|
3526 | if test "$RTEMS_HAS_NETWORKING" = "yes"; then |
---|
3527 | |
---|
3528 | echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6 |
---|
3529 | echo "configure:3530: checking for Makefile.in in c/src/lib/libnetworking" >&5 |
---|
3530 | if test -d $srcdir/c/src/lib/libnetworking; then |
---|
3531 | rtems_av_save_dir=`pwd`; |
---|
3532 | cd $srcdir; |
---|
3533 | rtems_av_tmp=`find c/src/lib/libnetworking -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3534 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3535 | cd $rtems_av_save_dir; |
---|
3536 | echo "$ac_t""done" 1>&6 |
---|
3537 | else |
---|
3538 | echo "$ac_t""no" 1>&6 |
---|
3539 | fi |
---|
3540 | |
---|
3541 | |
---|
3542 | |
---|
3543 | echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6 |
---|
3544 | echo "configure:3545: checking for Makefile.in in c/src/lib/librpc" >&5 |
---|
3545 | if test -d $srcdir/c/src/lib/librpc; then |
---|
3546 | rtems_av_save_dir=`pwd`; |
---|
3547 | cd $srcdir; |
---|
3548 | rtems_av_tmp=`find c/src/lib/librpc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3549 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3550 | cd $rtems_av_save_dir; |
---|
3551 | echo "$ac_t""done" 1>&6 |
---|
3552 | else |
---|
3553 | echo "$ac_t""no" 1>&6 |
---|
3554 | fi |
---|
3555 | |
---|
3556 | |
---|
3557 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
3558 | |
---|
3559 | echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6 |
---|
3560 | echo "configure:3561: checking for Makefile.in in c/src/lib/librdbg" >&5 |
---|
3561 | if test -d $srcdir/c/src/lib/librdbg; then |
---|
3562 | rtems_av_save_dir=`pwd`; |
---|
3563 | cd $srcdir; |
---|
3564 | rtems_av_tmp=`find c/src/lib/librdbg -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3565 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3566 | cd $rtems_av_save_dir; |
---|
3567 | echo "$ac_t""done" 1>&6 |
---|
3568 | else |
---|
3569 | echo "$ac_t""no" 1>&6 |
---|
3570 | fi |
---|
3571 | |
---|
3572 | |
---|
3573 | fi |
---|
3574 | fi |
---|
3575 | |
---|
3576 | # If the C++ support is enabled, then include the Makefiles |
---|
3577 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
3578 | makefiles="$makefiles c/src/lib/librtems++/Makefile" |
---|
3579 | fi |
---|
3580 | |
---|
3581 | |
---|
3582 | # If the tests are enabled, then find all the test suite Makefiles |
---|
3583 | echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 |
---|
3584 | echo "configure:3585: checking if the test suites are enabled? " >&5 |
---|
3585 | tests_enabled=yes |
---|
3586 | # Check whether --enable-tests or --disable-tests was given. |
---|
3587 | if test "${enable_tests+set}" = set; then |
---|
3588 | enableval="$enable_tests" |
---|
3589 | case "${enableval}" in |
---|
3590 | yes) echo "$ac_t""yes" 1>&6 ;; |
---|
3591 | no) echo "$ac_t""no" 1>&6 ; tests_enabled=no ;; |
---|
3592 | *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; |
---|
3593 | esac |
---|
3594 | else |
---|
3595 | echo "$ac_t""no" 1>&6 |
---|
3596 | fi |
---|
3597 | |
---|
3598 | |
---|
3599 | |
---|
3600 | |
---|
3601 | echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6 |
---|
3602 | echo "configure:3603: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5 |
---|
3603 | if test -d $srcdir/c/src/tests/tools/$target_cpu; then |
---|
3604 | rtems_av_save_dir=`pwd`; |
---|
3605 | cd $srcdir; |
---|
3606 | rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3607 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3608 | cd $rtems_av_save_dir; |
---|
3609 | echo "$ac_t""done" 1>&6 |
---|
3610 | else |
---|
3611 | echo "$ac_t""no" 1>&6 |
---|
3612 | fi |
---|
3613 | |
---|
3614 | |
---|
3615 | |
---|
3616 | if test "$tests_enabled" = "yes"; then |
---|
3617 | |
---|
3618 | echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6 |
---|
3619 | echo "configure:3620: checking for Makefile.in in c/src/tests/libtests" >&5 |
---|
3620 | if test -d $srcdir/c/src/tests/libtests; then |
---|
3621 | rtems_av_save_dir=`pwd`; |
---|
3622 | cd $srcdir; |
---|
3623 | rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3624 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3625 | cd $rtems_av_save_dir; |
---|
3626 | echo "$ac_t""done" 1>&6 |
---|
3627 | else |
---|
3628 | echo "$ac_t""no" 1>&6 |
---|
3629 | fi |
---|
3630 | |
---|
3631 | |
---|
3632 | |
---|
3633 | echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6 |
---|
3634 | echo "configure:3635: checking for Makefile.in in c/src/tests/sptests" >&5 |
---|
3635 | if test -d $srcdir/c/src/tests/sptests; then |
---|
3636 | rtems_av_save_dir=`pwd`; |
---|
3637 | cd $srcdir; |
---|
3638 | rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3639 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3640 | cd $rtems_av_save_dir; |
---|
3641 | echo "$ac_t""done" 1>&6 |
---|
3642 | else |
---|
3643 | echo "$ac_t""no" 1>&6 |
---|
3644 | fi |
---|
3645 | |
---|
3646 | |
---|
3647 | |
---|
3648 | echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6 |
---|
3649 | echo "configure:3650: checking for Makefile.in in c/src/tests/tmtests" >&5 |
---|
3650 | if test -d $srcdir/c/src/tests/tmtests; then |
---|
3651 | rtems_av_save_dir=`pwd`; |
---|
3652 | cd $srcdir; |
---|
3653 | rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3654 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3655 | cd $rtems_av_save_dir; |
---|
3656 | echo "$ac_t""done" 1>&6 |
---|
3657 | else |
---|
3658 | echo "$ac_t""no" 1>&6 |
---|
3659 | fi |
---|
3660 | |
---|
3661 | |
---|
3662 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
3663 | |
---|
3664 | echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6 |
---|
3665 | echo "configure:3666: checking for Makefile.in in c/src/tests/mptests" >&5 |
---|
3666 | if test -d $srcdir/c/src/tests/mptests; then |
---|
3667 | rtems_av_save_dir=`pwd`; |
---|
3668 | cd $srcdir; |
---|
3669 | rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3670 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3671 | cd $rtems_av_save_dir; |
---|
3672 | echo "$ac_t""done" 1>&6 |
---|
3673 | else |
---|
3674 | echo "$ac_t""no" 1>&6 |
---|
3675 | fi |
---|
3676 | |
---|
3677 | |
---|
3678 | fi |
---|
3679 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
3680 | |
---|
3681 | echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6 |
---|
3682 | echo "configure:3683: checking for Makefile.in in c/src/tests/psxtests" >&5 |
---|
3683 | if test -d $srcdir/c/src/tests/psxtests; then |
---|
3684 | rtems_av_save_dir=`pwd`; |
---|
3685 | cd $srcdir; |
---|
3686 | rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3687 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3688 | cd $rtems_av_save_dir; |
---|
3689 | echo "$ac_t""done" 1>&6 |
---|
3690 | else |
---|
3691 | echo "$ac_t""no" 1>&6 |
---|
3692 | fi |
---|
3693 | |
---|
3694 | |
---|
3695 | fi |
---|
3696 | fi |
---|
3697 | |
---|
3698 | # If the HWAPI is enabled, the find the HWAPI Makefiles |
---|
3699 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
3700 | if test "${enable_hwapi+set}" = set; then |
---|
3701 | enableval="$enable_hwapi" |
---|
3702 | case "${enableval}" in |
---|
3703 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
3704 | no) RTEMS_HAS_HWAPI=no ;; |
---|
3705 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
3706 | esac |
---|
3707 | else |
---|
3708 | RTEMS_HAS_HWAPI=no |
---|
3709 | fi |
---|
3710 | |
---|
3711 | |
---|
3712 | if test "$RTEMS_HAS_HWAPI" = "yes"; then |
---|
3713 | echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6 |
---|
3714 | echo "configure:3715: checking whether libwapi is present" >&5 |
---|
3715 | if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then |
---|
3716 | echo "$ac_t""yes" 1>&6 |
---|
3717 | makefiles="$makefiles c/src/lib/libhwapi/Makefile" |
---|
3718 | |
---|
3719 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6 |
---|
3720 | echo "configure:3721: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5 |
---|
3721 | if test -d $srcdir/c/src/lib/libhwapi/analog; then |
---|
3722 | rtems_av_save_dir=`pwd`; |
---|
3723 | cd $srcdir; |
---|
3724 | rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3725 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3726 | cd $rtems_av_save_dir; |
---|
3727 | echo "$ac_t""done" 1>&6 |
---|
3728 | else |
---|
3729 | echo "$ac_t""no" 1>&6 |
---|
3730 | fi |
---|
3731 | |
---|
3732 | |
---|
3733 | |
---|
3734 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6 |
---|
3735 | echo "configure:3736: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5 |
---|
3736 | if test -d $srcdir/c/src/lib/libhwapi/discrete; then |
---|
3737 | rtems_av_save_dir=`pwd`; |
---|
3738 | cd $srcdir; |
---|
3739 | rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3740 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3741 | cd $rtems_av_save_dir; |
---|
3742 | echo "$ac_t""done" 1>&6 |
---|
3743 | else |
---|
3744 | echo "$ac_t""no" 1>&6 |
---|
3745 | fi |
---|
3746 | |
---|
3747 | |
---|
3748 | |
---|
3749 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6 |
---|
3750 | echo "configure:3751: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5 |
---|
3751 | if test -d $srcdir/c/src/lib/libhwapi/drivers; then |
---|
3752 | rtems_av_save_dir=`pwd`; |
---|
3753 | cd $srcdir; |
---|
3754 | rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3755 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3756 | cd $rtems_av_save_dir; |
---|
3757 | echo "$ac_t""done" 1>&6 |
---|
3758 | else |
---|
3759 | echo "$ac_t""no" 1>&6 |
---|
3760 | fi |
---|
3761 | |
---|
3762 | |
---|
3763 | |
---|
3764 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6 |
---|
3765 | echo "configure:3766: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5 |
---|
3766 | if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then |
---|
3767 | rtems_av_save_dir=`pwd`; |
---|
3768 | cd $srcdir; |
---|
3769 | rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3770 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3771 | cd $rtems_av_save_dir; |
---|
3772 | echo "$ac_t""done" 1>&6 |
---|
3773 | else |
---|
3774 | echo "$ac_t""no" 1>&6 |
---|
3775 | fi |
---|
3776 | |
---|
3777 | |
---|
3778 | |
---|
3779 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6 |
---|
3780 | echo "configure:3781: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5 |
---|
3781 | if test -d $srcdir/c/src/lib/libhwapi/serial; then |
---|
3782 | rtems_av_save_dir=`pwd`; |
---|
3783 | cd $srcdir; |
---|
3784 | rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3785 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3786 | cd $rtems_av_save_dir; |
---|
3787 | echo "$ac_t""done" 1>&6 |
---|
3788 | else |
---|
3789 | echo "$ac_t""no" 1>&6 |
---|
3790 | fi |
---|
3791 | |
---|
3792 | |
---|
3793 | |
---|
3794 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6 |
---|
3795 | echo "configure:3796: checking for Makefile.in in c/src/lib/libhwapi/support" >&5 |
---|
3796 | if test -d $srcdir/c/src/lib/libhwapi/support; then |
---|
3797 | rtems_av_save_dir=`pwd`; |
---|
3798 | cd $srcdir; |
---|
3799 | rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3800 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3801 | cd $rtems_av_save_dir; |
---|
3802 | echo "$ac_t""done" 1>&6 |
---|
3803 | else |
---|
3804 | echo "$ac_t""no" 1>&6 |
---|
3805 | fi |
---|
3806 | |
---|
3807 | |
---|
3808 | |
---|
3809 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6 |
---|
3810 | echo "configure:3811: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5 |
---|
3811 | if test -d $srcdir/c/src/lib/libhwapi/wrapup; then |
---|
3812 | rtems_av_save_dir=`pwd`; |
---|
3813 | cd $srcdir; |
---|
3814 | rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3815 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3816 | cd $rtems_av_save_dir; |
---|
3817 | echo "$ac_t""done" 1>&6 |
---|
3818 | else |
---|
3819 | echo "$ac_t""no" 1>&6 |
---|
3820 | fi |
---|
3821 | |
---|
3822 | |
---|
3823 | else |
---|
3824 | { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; } |
---|
3825 | fi |
---|
3826 | fi |
---|
3827 | |
---|
3828 | |
---|
3829 | |
---|
3830 | |
---|
3831 | |
---|
3832 | |
---|
3833 | |
---|
3834 | |
---|
3835 | |
---|
3836 | |
---|
3837 | |
---|
3838 | |
---|
3839 | |
---|
3840 | |
---|
3841 | |
---|
3842 | |
---|
3843 | |
---|
3844 | |
---|
3845 | |
---|
3846 | |
---|
3847 | |
---|
3848 | |
---|
3849 | |
---|
3850 | # pick up all the Makefiles in required parts of the tree |
---|
3851 | |
---|
3852 | echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6 |
---|
3853 | echo "configure:3854: checking for Makefile.in in make" >&5 |
---|
3854 | if test -d $srcdir/make; then |
---|
3855 | rtems_av_save_dir=`pwd`; |
---|
3856 | cd $srcdir; |
---|
3857 | rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3858 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3859 | cd $rtems_av_save_dir; |
---|
3860 | echo "$ac_t""done" 1>&6 |
---|
3861 | else |
---|
3862 | echo "$ac_t""no" 1>&6 |
---|
3863 | fi |
---|
3864 | |
---|
3865 | |
---|
3866 | |
---|
3867 | echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6 |
---|
3868 | echo "configure:3869: checking for Makefile.in in c/src/lib/libchip" >&5 |
---|
3869 | if test -d $srcdir/c/src/lib/libchip; then |
---|
3870 | rtems_av_save_dir=`pwd`; |
---|
3871 | cd $srcdir; |
---|
3872 | rtems_av_tmp=`find c/src/lib/libchip -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3873 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3874 | cd $rtems_av_save_dir; |
---|
3875 | echo "$ac_t""done" 1>&6 |
---|
3876 | else |
---|
3877 | echo "$ac_t""no" 1>&6 |
---|
3878 | fi |
---|
3879 | |
---|
3880 | |
---|
3881 | |
---|
3882 | echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6 |
---|
3883 | echo "configure:3884: checking for Makefile.in in c/src/lib/libmisc" >&5 |
---|
3884 | if test -d $srcdir/c/src/lib/libmisc; then |
---|
3885 | rtems_av_save_dir=`pwd`; |
---|
3886 | cd $srcdir; |
---|
3887 | rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3888 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3889 | cd $rtems_av_save_dir; |
---|
3890 | echo "$ac_t""done" 1>&6 |
---|
3891 | else |
---|
3892 | echo "$ac_t""no" 1>&6 |
---|
3893 | fi |
---|
3894 | |
---|
3895 | |
---|
3896 | |
---|
3897 | echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6 |
---|
3898 | echo "configure:3899: checking for Makefile.in in c/src/tests/samples" >&5 |
---|
3899 | if test -d $srcdir/c/src/tests/samples; then |
---|
3900 | rtems_av_save_dir=`pwd`; |
---|
3901 | cd $srcdir; |
---|
3902 | rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3903 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3904 | cd $rtems_av_save_dir; |
---|
3905 | echo "$ac_t""done" 1>&6 |
---|
3906 | else |
---|
3907 | echo "$ac_t""no" 1>&6 |
---|
3908 | fi |
---|
3909 | |
---|
3910 | |
---|
3911 | |
---|
3912 | subdirs="c/build-tools" |
---|
3913 | |
---|
3914 | # FIXME: libwapi needs a separate configure.in in future ;- |
---|
3915 | # AC_CONFIG_SUBDIRS(c/src/lib/libwapi) |
---|
3916 | |
---|
3917 | # try not to explicitly list a Makefile here |
---|
3918 | trap '' 1 2 15 |
---|
3919 | cat > confcache <<\EOF |
---|
3920 | # This file is a shell script that caches the results of configure |
---|
3921 | # tests run on this system so they can be shared between configure |
---|
3922 | # scripts and configure runs. It is not useful on other systems. |
---|
3923 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
3924 | # |
---|
3925 | # By default, configure uses ./config.cache as the cache file, |
---|
3926 | # creating it if it does not exist already. You can give configure |
---|
3927 | # the --cache-file=FILE option to use a different cache file; that is |
---|
3928 | # what configure does when it calls configure scripts in |
---|
3929 | # subdirectories, so they share the cache. |
---|
3930 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
3931 | # config.status only pays attention to the cache file if you give it the |
---|
3932 | # --recheck option to rerun configure. |
---|
3933 | # |
---|
3934 | EOF |
---|
3935 | # The following way of writing the cache mishandles newlines in values, |
---|
3936 | # but we know of no workaround that is simple, portable, and efficient. |
---|
3937 | # So, don't put newlines in cache variables' values. |
---|
3938 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
3939 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
3940 | (set) 2>&1 | |
---|
3941 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
3942 | *ac_space=\ *) |
---|
3943 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
3944 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
3945 | sed -n \ |
---|
3946 | -e "s/'/'\\\\''/g" \ |
---|
3947 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
3948 | ;; |
---|
3949 | *) |
---|
3950 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
3951 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
3952 | ;; |
---|
3953 | esac >> confcache |
---|
3954 | if cmp -s $cache_file confcache; then |
---|
3955 | : |
---|
3956 | else |
---|
3957 | if test -w $cache_file; then |
---|
3958 | echo "updating cache $cache_file" |
---|
3959 | cat confcache > $cache_file |
---|
3960 | else |
---|
3961 | echo "not updating unwritable cache $cache_file" |
---|
3962 | fi |
---|
3963 | fi |
---|
3964 | rm -f confcache |
---|
3965 | |
---|
3966 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
3967 | |
---|
3968 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
3969 | # Let make expand exec_prefix. |
---|
3970 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
3971 | |
---|
3972 | # Any assignment to VPATH causes Sun make to only execute |
---|
3973 | # the first set of double-colon rules, so remove it if not needed. |
---|
3974 | # If there is a colon in the path, we need to keep it. |
---|
3975 | if test "x$srcdir" = x.; then |
---|
3976 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
3977 | fi |
---|
3978 | |
---|
3979 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
3980 | |
---|
3981 | # Transform confdefs.h into DEFS. |
---|
3982 | # Protect against shell expansion while executing Makefile rules. |
---|
3983 | # Protect against Makefile macro expansion. |
---|
3984 | cat > conftest.defs <<\EOF |
---|
3985 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
3986 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
3987 | s%\[%\\&%g |
---|
3988 | s%\]%\\&%g |
---|
3989 | s%\$%$$%g |
---|
3990 | EOF |
---|
3991 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
3992 | rm -f conftest.defs |
---|
3993 | |
---|
3994 | |
---|
3995 | # Without the "./", some shells look in PATH for config.status. |
---|
3996 | : ${CONFIG_STATUS=./config.status} |
---|
3997 | |
---|
3998 | echo creating $CONFIG_STATUS |
---|
3999 | rm -f $CONFIG_STATUS |
---|
4000 | cat > $CONFIG_STATUS <<EOF |
---|
4001 | #! /bin/sh |
---|
4002 | # Generated automatically by configure. |
---|
4003 | # Run this file to recreate the current configuration. |
---|
4004 | # This directory was configured as follows, |
---|
4005 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
4006 | # |
---|
4007 | # $0 $ac_configure_args |
---|
4008 | # |
---|
4009 | # Compiler output produced by configure, useful for debugging |
---|
4010 | # configure, is in ./config.log if it exists. |
---|
4011 | |
---|
4012 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
4013 | for ac_option |
---|
4014 | do |
---|
4015 | case "\$ac_option" in |
---|
4016 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4017 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
4018 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
4019 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
4020 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
4021 | exit 0 ;; |
---|
4022 | -help | --help | --hel | --he | --h) |
---|
4023 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
4024 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
4025 | esac |
---|
4026 | done |
---|
4027 | |
---|
4028 | ac_given_srcdir=$srcdir |
---|
4029 | ac_given_INSTALL="$INSTALL" |
---|
4030 | |
---|
4031 | trap 'rm -fr `echo "Makefile |
---|
4032 | make/host.cfg |
---|
4033 | make/target.cfg |
---|
4034 | make/Templates/Makefile.inc |
---|
4035 | make/compilers/gcc.cfg |
---|
4036 | c/Makefile |
---|
4037 | c/src/Makefile |
---|
4038 | c/src/exec/Makefile |
---|
4039 | c/src/exec/score/Makefile |
---|
4040 | c/src/exec/score/cpu/Makefile |
---|
4041 | c/src/exec/score/include/Makefile |
---|
4042 | c/src/exec/score/include/rtems/Makefile |
---|
4043 | c/src/exec/score/include/rtems/wrap/Makefile |
---|
4044 | c/src/exec/score/include/rtems/score/Makefile |
---|
4045 | c/src/exec/score/${inline_dir}/Makefile |
---|
4046 | c/src/exec/score/${inline_dir}/rtems/Makefile |
---|
4047 | c/src/exec/score/${inline_dir}/rtems/score/Makefile |
---|
4048 | c/src/exec/score/src/Makefile |
---|
4049 | c/src/exec/score/tools/Makefile |
---|
4050 | c/src/exec/score/tools/generic/Makefile |
---|
4051 | c/src/exec/wrapup/Makefile |
---|
4052 | c/src/exec/wrapup/rtems/Makefile |
---|
4053 | c/src/lib/Makefile |
---|
4054 | c/src/lib/include/Makefile |
---|
4055 | c/src/lib/libbsp/Makefile |
---|
4056 | c/src/lib/libbsp/shmdr/Makefile |
---|
4057 | c/src/lib/libc/Makefile |
---|
4058 | c/src/lib/libcpu/Makefile |
---|
4059 | c/src/lib/start/Makefile |
---|
4060 | c/src/lib/wrapup/Makefile |
---|
4061 | c/src/tests/Makefile |
---|
4062 | c/src/tests/support/Makefile |
---|
4063 | c/src/tests/support/include/Makefile |
---|
4064 | c/src/tests/support/stubdr/Makefile |
---|
4065 | c/src/tests/support/wrapup/Makefile |
---|
4066 | c/src/tests/tools/Makefile |
---|
4067 | c/src/tests/tools/generic/Makefile |
---|
4068 | $makefiles |
---|
4069 | c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
4070 | EOF |
---|
4071 | cat >> $CONFIG_STATUS <<EOF |
---|
4072 | |
---|
4073 | # Protect against being on the right side of a sed subst in config.status. |
---|
4074 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
4075 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
4076 | $ac_vpsub |
---|
4077 | $extrasub |
---|
4078 | s%@SHELL@%$SHELL%g |
---|
4079 | s%@CFLAGS@%$CFLAGS%g |
---|
4080 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
4081 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
4082 | s%@FFLAGS@%$FFLAGS%g |
---|
4083 | s%@DEFS@%$DEFS%g |
---|
4084 | s%@LDFLAGS@%$LDFLAGS%g |
---|
4085 | s%@LIBS@%$LIBS%g |
---|
4086 | s%@exec_prefix@%$exec_prefix%g |
---|
4087 | s%@prefix@%$prefix%g |
---|
4088 | s%@program_transform_name@%$program_transform_name%g |
---|
4089 | s%@bindir@%$bindir%g |
---|
4090 | s%@sbindir@%$sbindir%g |
---|
4091 | s%@libexecdir@%$libexecdir%g |
---|
4092 | s%@datadir@%$datadir%g |
---|
4093 | s%@sysconfdir@%$sysconfdir%g |
---|
4094 | s%@sharedstatedir@%$sharedstatedir%g |
---|
4095 | s%@localstatedir@%$localstatedir%g |
---|
4096 | s%@libdir@%$libdir%g |
---|
4097 | s%@includedir@%$includedir%g |
---|
4098 | s%@oldincludedir@%$oldincludedir%g |
---|
4099 | s%@infodir@%$infodir%g |
---|
4100 | s%@mandir@%$mandir%g |
---|
4101 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
4102 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
4103 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
4104 | s%@SET_MAKE@%$SET_MAKE%g |
---|
4105 | s%@host@%$host%g |
---|
4106 | s%@host_alias@%$host_alias%g |
---|
4107 | s%@host_cpu@%$host_cpu%g |
---|
4108 | s%@host_vendor@%$host_vendor%g |
---|
4109 | s%@host_os@%$host_os%g |
---|
4110 | s%@target@%$target%g |
---|
4111 | s%@target_alias@%$target_alias%g |
---|
4112 | s%@target_cpu@%$target_cpu%g |
---|
4113 | s%@target_vendor@%$target_vendor%g |
---|
4114 | s%@target_os@%$target_os%g |
---|
4115 | s%@build@%$build%g |
---|
4116 | s%@build_alias@%$build_alias%g |
---|
4117 | s%@build_cpu@%$build_cpu%g |
---|
4118 | s%@build_vendor@%$build_vendor%g |
---|
4119 | s%@build_os@%$build_os%g |
---|
4120 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
4121 | s%@CAT@%$CAT%g |
---|
4122 | s%@RM@%$RM%g |
---|
4123 | s%@CP@%$CP%g |
---|
4124 | s%@MV@%$MV%g |
---|
4125 | s%@LN@%$LN%g |
---|
4126 | s%@LN_S@%$LN_S%g |
---|
4127 | s%@CHMOD@%$CHMOD%g |
---|
4128 | s%@SORT@%$SORT%g |
---|
4129 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
4130 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
4131 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
4132 | s%@PERL@%$PERL%g |
---|
4133 | s%@MKDIR@%$MKDIR%g |
---|
4134 | s%@TOUCH@%$TOUCH%g |
---|
4135 | s%@CMP@%$CMP%g |
---|
4136 | s%@SED@%$SED%g |
---|
4137 | s%@M4@%$M4%g |
---|
4138 | s%@KSH@%$KSH%g |
---|
4139 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
4140 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
4141 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
---|
4142 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
4143 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
4144 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
4145 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
4146 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
4147 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
4148 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
4149 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
4150 | s%@CC@%$CC%g |
---|
4151 | s%@EXEEXT@%$EXEEXT%g |
---|
4152 | s%@GCCSED@%$GCCSED%g |
---|
4153 | s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g |
---|
4154 | s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g |
---|
4155 | s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g |
---|
4156 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
4157 | s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g |
---|
4158 | s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g |
---|
4159 | s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g |
---|
4160 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
4161 | s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g |
---|
4162 | s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g |
---|
4163 | s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g |
---|
4164 | s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g |
---|
4165 | s%@program_prefix@%$program_prefix%g |
---|
4166 | s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g |
---|
4167 | s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g |
---|
4168 | s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g |
---|
4169 | s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g |
---|
4170 | s%@subdirs@%$subdirs%g |
---|
4171 | |
---|
4172 | CEOF |
---|
4173 | EOF |
---|
4174 | |
---|
4175 | cat >> $CONFIG_STATUS <<\EOF |
---|
4176 | |
---|
4177 | # Split the substitutions into bite-sized pieces for seds with |
---|
4178 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
4179 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
4180 | ac_file=1 # Number of current file. |
---|
4181 | ac_beg=1 # First line for current file. |
---|
4182 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
4183 | ac_more_lines=: |
---|
4184 | ac_sed_cmds="" |
---|
4185 | while $ac_more_lines; do |
---|
4186 | if test $ac_beg -gt 1; then |
---|
4187 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4188 | else |
---|
4189 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4190 | fi |
---|
4191 | if test ! -s conftest.s$ac_file; then |
---|
4192 | ac_more_lines=false |
---|
4193 | rm -f conftest.s$ac_file |
---|
4194 | else |
---|
4195 | if test -z "$ac_sed_cmds"; then |
---|
4196 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
4197 | else |
---|
4198 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
4199 | fi |
---|
4200 | ac_file=`expr $ac_file + 1` |
---|
4201 | ac_beg=$ac_end |
---|
4202 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
4203 | fi |
---|
4204 | done |
---|
4205 | if test -z "$ac_sed_cmds"; then |
---|
4206 | ac_sed_cmds=cat |
---|
4207 | fi |
---|
4208 | EOF |
---|
4209 | |
---|
4210 | cat >> $CONFIG_STATUS <<EOF |
---|
4211 | |
---|
4212 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
4213 | make/host.cfg |
---|
4214 | make/target.cfg |
---|
4215 | make/Templates/Makefile.inc |
---|
4216 | make/compilers/gcc.cfg |
---|
4217 | c/Makefile |
---|
4218 | c/src/Makefile |
---|
4219 | c/src/exec/Makefile |
---|
4220 | c/src/exec/score/Makefile |
---|
4221 | c/src/exec/score/cpu/Makefile |
---|
4222 | c/src/exec/score/include/Makefile |
---|
4223 | c/src/exec/score/include/rtems/Makefile |
---|
4224 | c/src/exec/score/include/rtems/wrap/Makefile |
---|
4225 | c/src/exec/score/include/rtems/score/Makefile |
---|
4226 | c/src/exec/score/${inline_dir}/Makefile |
---|
4227 | c/src/exec/score/${inline_dir}/rtems/Makefile |
---|
4228 | c/src/exec/score/${inline_dir}/rtems/score/Makefile |
---|
4229 | c/src/exec/score/src/Makefile |
---|
4230 | c/src/exec/score/tools/Makefile |
---|
4231 | c/src/exec/score/tools/generic/Makefile |
---|
4232 | c/src/exec/wrapup/Makefile |
---|
4233 | c/src/exec/wrapup/rtems/Makefile |
---|
4234 | c/src/lib/Makefile |
---|
4235 | c/src/lib/include/Makefile |
---|
4236 | c/src/lib/libbsp/Makefile |
---|
4237 | c/src/lib/libbsp/shmdr/Makefile |
---|
4238 | c/src/lib/libc/Makefile |
---|
4239 | c/src/lib/libcpu/Makefile |
---|
4240 | c/src/lib/start/Makefile |
---|
4241 | c/src/lib/wrapup/Makefile |
---|
4242 | c/src/tests/Makefile |
---|
4243 | c/src/tests/support/Makefile |
---|
4244 | c/src/tests/support/include/Makefile |
---|
4245 | c/src/tests/support/stubdr/Makefile |
---|
4246 | c/src/tests/support/wrapup/Makefile |
---|
4247 | c/src/tests/tools/Makefile |
---|
4248 | c/src/tests/tools/generic/Makefile |
---|
4249 | $makefiles |
---|
4250 | c/update-tools/Makefile"} |
---|
4251 | EOF |
---|
4252 | cat >> $CONFIG_STATUS <<\EOF |
---|
4253 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
4254 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4255 | case "$ac_file" in |
---|
4256 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4257 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4258 | *) ac_file_in="${ac_file}.in" ;; |
---|
4259 | esac |
---|
4260 | |
---|
4261 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
4262 | |
---|
4263 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4264 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4265 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4266 | # The file is in a subdirectory. |
---|
4267 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4268 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
4269 | # A "../" for each directory in $ac_dir_suffix. |
---|
4270 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
4271 | else |
---|
4272 | ac_dir_suffix= ac_dots= |
---|
4273 | fi |
---|
4274 | |
---|
4275 | case "$ac_given_srcdir" in |
---|
4276 | .) srcdir=. |
---|
4277 | if test -z "$ac_dots"; then top_srcdir=. |
---|
4278 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
4279 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
4280 | *) # Relative path. |
---|
4281 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
4282 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
4283 | esac |
---|
4284 | |
---|
4285 | case "$ac_given_INSTALL" in |
---|
4286 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
4287 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
4288 | esac |
---|
4289 | |
---|
4290 | echo creating "$ac_file" |
---|
4291 | rm -f "$ac_file" |
---|
4292 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
4293 | case "$ac_file" in |
---|
4294 | *Makefile*) ac_comsub="1i\\ |
---|
4295 | # $configure_input" ;; |
---|
4296 | *) ac_comsub= ;; |
---|
4297 | esac |
---|
4298 | |
---|
4299 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4300 | sed -e "$ac_comsub |
---|
4301 | s%@configure_input@%$configure_input%g |
---|
4302 | s%@srcdir@%$srcdir%g |
---|
4303 | s%@top_srcdir@%$top_srcdir%g |
---|
4304 | s%@INSTALL@%$INSTALL%g |
---|
4305 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
4306 | fi; done |
---|
4307 | rm -f conftest.s* |
---|
4308 | |
---|
4309 | EOF |
---|
4310 | cat >> $CONFIG_STATUS <<EOF |
---|
4311 | |
---|
4312 | EOF |
---|
4313 | cat >> $CONFIG_STATUS <<\EOF |
---|
4314 | |
---|
4315 | exit 0 |
---|
4316 | EOF |
---|
4317 | chmod +x $CONFIG_STATUS |
---|
4318 | rm -fr confdefs* $ac_clean_files |
---|
4319 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
4320 | |
---|
4321 | if test "$no_recursion" != yes; then |
---|
4322 | |
---|
4323 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
4324 | ac_sub_configure_args= |
---|
4325 | ac_prev= |
---|
4326 | for ac_arg in $ac_configure_args; do |
---|
4327 | if test -n "$ac_prev"; then |
---|
4328 | ac_prev= |
---|
4329 | continue |
---|
4330 | fi |
---|
4331 | case "$ac_arg" in |
---|
4332 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
4333 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
4334 | ac_prev=cache_file ;; |
---|
4335 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
4336 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
4337 | ;; |
---|
4338 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
4339 | ac_prev=srcdir ;; |
---|
4340 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
4341 | ;; |
---|
4342 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
4343 | esac |
---|
4344 | done |
---|
4345 | |
---|
4346 | for ac_config_dir in c/build-tools; do |
---|
4347 | |
---|
4348 | # Do not complain, so a configure script can configure whichever |
---|
4349 | # parts of a large source tree are present. |
---|
4350 | if test ! -d $srcdir/$ac_config_dir; then |
---|
4351 | continue |
---|
4352 | fi |
---|
4353 | |
---|
4354 | echo configuring in $ac_config_dir |
---|
4355 | |
---|
4356 | case "$srcdir" in |
---|
4357 | .) ;; |
---|
4358 | *) |
---|
4359 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
4360 | else |
---|
4361 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
4362 | fi |
---|
4363 | ;; |
---|
4364 | esac |
---|
4365 | |
---|
4366 | ac_popdir=`pwd` |
---|
4367 | cd $ac_config_dir |
---|
4368 | |
---|
4369 | # A "../" for each directory in /$ac_config_dir. |
---|
4370 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
4371 | |
---|
4372 | case "$srcdir" in |
---|
4373 | .) # No --srcdir option. We are building in place. |
---|
4374 | ac_sub_srcdir=$srcdir ;; |
---|
4375 | /*) # Absolute path. |
---|
4376 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
4377 | *) # Relative path. |
---|
4378 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
4379 | esac |
---|
4380 | |
---|
4381 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
4382 | if test -f $ac_sub_srcdir/configure; then |
---|
4383 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
4384 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
4385 | ac_sub_configure=$ac_configure |
---|
4386 | else |
---|
4387 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
4388 | ac_sub_configure= |
---|
4389 | fi |
---|
4390 | |
---|
4391 | # The recursion is here. |
---|
4392 | if test -n "$ac_sub_configure"; then |
---|
4393 | |
---|
4394 | # Make the cache file name correct relative to the subdirectory. |
---|
4395 | case "$cache_file" in |
---|
4396 | /*) ac_sub_cache_file=$cache_file ;; |
---|
4397 | *) # Relative path. |
---|
4398 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
4399 | esac |
---|
4400 | case "$ac_given_INSTALL" in |
---|
4401 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
4402 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
4403 | esac |
---|
4404 | |
---|
4405 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
4406 | # The eval makes quoting arguments work. |
---|
4407 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
4408 | then : |
---|
4409 | else |
---|
4410 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
4411 | fi |
---|
4412 | fi |
---|
4413 | |
---|
4414 | cd $ac_popdir |
---|
4415 | done |
---|
4416 | fi |
---|
4417 | |
---|
4418 | |
---|
4419 | echo |
---|
4420 | echo target architecture: $target_cpu. |
---|
4421 | echo available BSPs: $rtems_bsp. |
---|
4422 | echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST. |
---|
4423 | echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\' |
---|
4424 | echo |
---|