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