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