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