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