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