1 | dnl aclocal.m4 generated automatically by aclocal 1.4a |
---|
2 | |
---|
3 | dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
---|
4 | dnl This file is free software; the Free Software Foundation |
---|
5 | dnl gives unlimited permission to copy and/or distribute it, |
---|
6 | dnl with or without modifications, as long as this notice is preserved. |
---|
7 | |
---|
8 | dnl This program is distributed in the hope that it will be useful, |
---|
9 | dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
---|
10 | dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
---|
11 | dnl PARTICULAR PURPOSE. |
---|
12 | |
---|
13 | dnl $Id$ |
---|
14 | |
---|
15 | dnl |
---|
16 | dnl RTEMS_TOP($1) |
---|
17 | dnl |
---|
18 | dnl $1 .. relative path from this configure.in to the toplevel configure.in |
---|
19 | dnl |
---|
20 | AC_DEFUN(RTEMS_TOP, |
---|
21 | [dnl |
---|
22 | AC_ARG_WITH(target-subdir, |
---|
23 | [ --with-target-subdir=DIR], |
---|
24 | TARGET_SUBDIR="$withval", |
---|
25 | TARGET_SUBDIR=".") |
---|
26 | |
---|
27 | RTEMS_TOPdir="$1"; |
---|
28 | AC_SUBST(RTEMS_TOPdir) |
---|
29 | |
---|
30 | dnl Determine RTEMS Version string from the VERSION file |
---|
31 | dnl Hopefully, Joel never changes its format ;- |
---|
32 | AC_MSG_CHECKING([for RTEMS Version]) |
---|
33 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
34 | changequote(,)dnl |
---|
35 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
36 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
37 | changequote([,])dnl |
---|
38 | else |
---|
39 | AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION) |
---|
40 | fi |
---|
41 | if test -z "$RTEMS_VERSION"; then |
---|
42 | AC_MSG_ERROR(Unable to determine version) |
---|
43 | fi |
---|
44 | AC_MSG_RESULT($RTEMS_VERSION) |
---|
45 | ])dnl |
---|
46 | |
---|
47 | dnl |
---|
48 | dnl $Id$ |
---|
49 | dnl |
---|
50 | |
---|
51 | dnl canonicalize target cpu |
---|
52 | dnl NOTE: Most rtems targets do not fullfil autoconf's |
---|
53 | dnl target naming conventions "processor-vendor-os" |
---|
54 | dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them |
---|
55 | dnl and we have to fix it for rtems ourselves |
---|
56 | |
---|
57 | AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU, |
---|
58 | [ |
---|
59 | AC_CANONICAL_SYSTEM |
---|
60 | AC_MSG_CHECKING(rtems target cpu) |
---|
61 | changequote(,)dnl |
---|
62 | case "${target}" in |
---|
63 | # hpux unix port should go here |
---|
64 | i[3456]86-go32-rtems*) |
---|
65 | RTEMS_CPU=i386 |
---|
66 | ;; |
---|
67 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
68 | RTEMS_CPU=unix |
---|
69 | ;; |
---|
70 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
71 | RTEMS_CPU=unix |
---|
72 | ;; |
---|
73 | no_cpu-*rtems*) |
---|
74 | RTEMS_CPU=no_cpu |
---|
75 | ;; |
---|
76 | sparc-sun-solaris*) # unix "simulator" port |
---|
77 | RTEMS_CPU=unix |
---|
78 | ;; |
---|
79 | *) |
---|
80 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
81 | ;; |
---|
82 | esac |
---|
83 | changequote([,])dnl |
---|
84 | AC_SUBST(RTEMS_CPU) |
---|
85 | AC_MSG_RESULT($RTEMS_CPU) |
---|
86 | ]) |
---|
87 | |
---|
88 | # Do all the work for Automake. This macro actually does too much -- |
---|
89 | # some checks are only needed if your package does certain things. |
---|
90 | # But this isn't really a big deal. |
---|
91 | |
---|
92 | # serial 1 |
---|
93 | |
---|
94 | dnl Usage: |
---|
95 | dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
---|
96 | |
---|
97 | AC_DEFUN(AM_INIT_AUTOMAKE, |
---|
98 | [AC_REQUIRE([AC_PROG_INSTALL]) |
---|
99 | dnl We require 2.13 because we rely on SHELL being computed by configure. |
---|
100 | AC_PREREQ([2.13]) |
---|
101 | PACKAGE=[$1] |
---|
102 | AC_SUBST(PACKAGE) |
---|
103 | VERSION=[$2] |
---|
104 | AC_SUBST(VERSION) |
---|
105 | dnl test to see if srcdir already configured |
---|
106 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
107 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
---|
108 | fi |
---|
109 | ifelse([$3],, |
---|
110 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
---|
111 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) |
---|
112 | AC_REQUIRE([AM_SANITY_CHECK]) |
---|
113 | AC_REQUIRE([AC_ARG_PROGRAM]) |
---|
114 | dnl FIXME This is truly gross. |
---|
115 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
116 | AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) |
---|
117 | AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
---|
118 | AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) |
---|
119 | AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
---|
120 | AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
---|
121 | AC_REQUIRE([AC_PROG_MAKE_SET])]) |
---|
122 | |
---|
123 | # |
---|
124 | # Check to make sure that the build environment is sane. |
---|
125 | # |
---|
126 | |
---|
127 | AC_DEFUN(AM_SANITY_CHECK, |
---|
128 | [AC_MSG_CHECKING([whether build environment is sane]) |
---|
129 | # Just in case |
---|
130 | sleep 1 |
---|
131 | echo timestamp > conftestfile |
---|
132 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
133 | # arguments. Must try -L first in case configure is actually a |
---|
134 | # symlink; some systems play weird games with the mod time of symlinks |
---|
135 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
136 | # directory). |
---|
137 | if ( |
---|
138 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
139 | if test "[$]*" = "X"; then |
---|
140 | # -L didn't work. |
---|
141 | set X `ls -t $srcdir/configure conftestfile` |
---|
142 | fi |
---|
143 | if test "[$]*" != "X $srcdir/configure conftestfile" \ |
---|
144 | && test "[$]*" != "X conftestfile $srcdir/configure"; then |
---|
145 | |
---|
146 | # If neither matched, then we have a broken ls. This can happen |
---|
147 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
148 | # broken ls alias from the environment. This has actually |
---|
149 | # happened. Such a system could not be considered "sane". |
---|
150 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
---|
151 | alias in your environment]) |
---|
152 | fi |
---|
153 | |
---|
154 | test "[$]2" = conftestfile |
---|
155 | ) |
---|
156 | then |
---|
157 | # Ok. |
---|
158 | : |
---|
159 | else |
---|
160 | AC_MSG_ERROR([newly created file is older than distributed files! |
---|
161 | Check your system clock]) |
---|
162 | fi |
---|
163 | rm -f conftest* |
---|
164 | AC_MSG_RESULT(yes)]) |
---|
165 | |
---|
166 | dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
---|
167 | dnl The program must properly implement --version. |
---|
168 | AC_DEFUN(AM_MISSING_PROG, |
---|
169 | [AC_MSG_CHECKING(for working $2) |
---|
170 | # Run test in a subshell; some versions of sh will print an error if |
---|
171 | # an executable is not found, even if stderr is redirected. |
---|
172 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
173 | if ($2 --version) < /dev/null > /dev/null 2>&1; then |
---|
174 | $1=$2 |
---|
175 | AC_MSG_RESULT(found) |
---|
176 | else |
---|
177 | $1="$3/missing $2" |
---|
178 | AC_MSG_RESULT(missing) |
---|
179 | fi |
---|
180 | AC_SUBST($1)]) |
---|
181 | |
---|
182 | # Add --enable-maintainer-mode option to configure. |
---|
183 | # From Jim Meyering |
---|
184 | |
---|
185 | # serial 1 |
---|
186 | |
---|
187 | AC_DEFUN(AM_MAINTAINER_MODE, |
---|
188 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
---|
189 | dnl maintainer-mode is disabled by default |
---|
190 | AC_ARG_ENABLE(maintainer-mode, |
---|
191 | [ --enable-maintainer-mode enable make rules and dependencies not useful |
---|
192 | (and sometimes confusing) to the casual installer], |
---|
193 | USE_MAINTAINER_MODE=$enableval, |
---|
194 | USE_MAINTAINER_MODE=no) |
---|
195 | AC_MSG_RESULT($USE_MAINTAINER_MODE) |
---|
196 | AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes) |
---|
197 | MAINT=$MAINTAINER_MODE_TRUE |
---|
198 | AC_SUBST(MAINT)dnl |
---|
199 | ] |
---|
200 | ) |
---|
201 | |
---|
202 | # Define a conditional. |
---|
203 | |
---|
204 | AC_DEFUN(AM_CONDITIONAL, |
---|
205 | [AC_SUBST($1_TRUE) |
---|
206 | AC_SUBST($1_FALSE) |
---|
207 | if $2; then |
---|
208 | $1_TRUE= |
---|
209 | $1_FALSE='#' |
---|
210 | else |
---|
211 | $1_TRUE='#' |
---|
212 | $1_FALSE= |
---|
213 | fi]) |
---|
214 | |
---|
215 | dnl $Id$ |
---|
216 | |
---|
217 | AC_DEFUN(RTEMS_ENABLE_MULTIPROCESSING, |
---|
218 | [ |
---|
219 | AC_ARG_ENABLE(multiprocessing, |
---|
220 | [ --enable-multiprocessing enable multiprocessing interface], |
---|
221 | [case "${enableval}" in |
---|
222 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
223 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
224 | *) AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;; |
---|
225 | esac],[RTEMS_HAS_MULTIPROCESSING=no]) |
---|
226 | AC_SUBST(RTEMS_HAS_MULTIPROCESSING)dnl |
---|
227 | ]) |
---|
228 | |
---|
229 | dnl $Id$ |
---|
230 | |
---|
231 | AC_DEFUN(RTEMS_ENABLE_POSIX, |
---|
232 | [ |
---|
233 | AC_ARG_ENABLE(posix, |
---|
234 | [ --enable-posix enable posix interface], |
---|
235 | [case "${enableval}" in |
---|
236 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
237 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
238 | *) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;; |
---|
239 | esac],[RTEMS_HAS_POSIX_API=yes]) |
---|
240 | AC_SUBST(RTEMS_HAS_POSIX_API) |
---|
241 | |
---|
242 | changequote(,)dnl |
---|
243 | case "${target}" in |
---|
244 | # hpux unix port should go here |
---|
245 | i[3456]86-go32-rtems*) |
---|
246 | RTEMS_HAS_POSIX_API=no |
---|
247 | ;; |
---|
248 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
249 | RTEMS_HAS_POSIX_API=no |
---|
250 | ;; |
---|
251 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
252 | RTEMS_HAS_POSIX_API=no |
---|
253 | ;; |
---|
254 | no_cpu-*rtems*) |
---|
255 | RTEMS_HAS_POSIX_API=no |
---|
256 | ;; |
---|
257 | sparc-sun-solaris*) # unix "simulator" port |
---|
258 | RTEMS_HAS_POSIX_API=no |
---|
259 | ;; |
---|
260 | *) |
---|
261 | ;; |
---|
262 | esac |
---|
263 | changequote([,])dnl |
---|
264 | AC_SUBST(RTEMS_HAS_POSIX_API) |
---|
265 | ]) |
---|
266 | |
---|
267 | dnl $Id$ |
---|
268 | |
---|
269 | AC_DEFUN(RTEMS_ENABLE_NETWORKING, |
---|
270 | [ |
---|
271 | AC_ARG_ENABLE(networking, |
---|
272 | [ --enable-networking enable TCP/IP stack], |
---|
273 | [case "${enableval}" in |
---|
274 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
275 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
276 | *) AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;; |
---|
277 | esac],[RTEMS_HAS_NETWORKING=yes]) |
---|
278 | AC_SUBST(RTEMS_HAS_NETWORKING)dnl |
---|
279 | ]) |
---|
280 | |
---|
281 | dnl $Id$ |
---|
282 | |
---|
283 | AC_DEFUN(RTEMS_ENABLE_INLINES, |
---|
284 | [AC_ARG_ENABLE(rtems-inlines, |
---|
285 | [ --enable-rtems-inlines enable RTEMS inline functions] |
---|
286 | [ (default:enabled, disable to use macros)], |
---|
287 | [case "${enableval}" in |
---|
288 | yes) RTEMS_USE_MACROS=no ;; |
---|
289 | no) RTEMS_USE_MACROS=yes ;; |
---|
290 | *) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;; |
---|
291 | esac],[RTEMS_USE_MACROS=no]) |
---|
292 | AC_SUBST(RTEMS_USE_MACROS)dnl |
---|
293 | ]) |
---|
294 | |
---|
295 | dnl $Id$ |
---|
296 | |
---|
297 | AC_DEFUN(RTEMS_ENABLE_CXX, |
---|
298 | [ |
---|
299 | AC_ARG_ENABLE(cxx, |
---|
300 | [ --enable-cxx enable C++ support,] |
---|
301 | [ and build the rtems++ library], |
---|
302 | [case "${enableval}" in |
---|
303 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
304 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
305 | *) AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;; |
---|
306 | esac], [RTEMS_HAS_CPLUSPLUS=no]) |
---|
307 | ]) |
---|
308 | |
---|
309 | dnl $Id$ |
---|
310 | |
---|
311 | AC_DEFUN(RTEMS_ENABLE_GCC28, |
---|
312 | [ |
---|
313 | AC_ARG_ENABLE(gcc28, |
---|
314 | [ --enable-gcc28 enable use of gcc 2.8.x features], |
---|
315 | [case "${enableval}" in |
---|
316 | yes) RTEMS_USE_GCC272=no ;; |
---|
317 | no) RTEMS_USE_GCC272=yes ;; |
---|
318 | *) AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;; |
---|
319 | esac],[RTEMS_USE_GCC272=no]) |
---|
320 | ]) |
---|
321 | |
---|
322 | dnl $Id$ |
---|
323 | |
---|
324 | AC_DEFUN(RTEMS_ENABLE_LIBCDIR, |
---|
325 | [ |
---|
326 | AC_ARG_ENABLE(libcdir, |
---|
327 | [ --enable-libcdir=directory set the directory for the C library], |
---|
328 | [ RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
329 | test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] ) |
---|
330 | AC_SUBST(RTEMS_LIBC_DIR)dnl |
---|
331 | ]) |
---|
332 | |
---|
333 | AC_DEFUN(RTEMS_ENABLE_BARE, |
---|
334 | [ |
---|
335 | AC_ARG_ENABLE(bare-cpu-cflags, |
---|
336 | [ --enable-bare-cpu-cflags specify a particular cpu cflag] |
---|
337 | [ (bare bsp specific)], |
---|
338 | [case "${enableval}" in |
---|
339 | no) BARE_CPU_CFLAGS="" ;; |
---|
340 | *) BARE_CPU_CFLAGS="${enableval}" ;; |
---|
341 | esac], |
---|
342 | [BARE_CPU_CFLAGS=""]) |
---|
343 | |
---|
344 | AC_ARG_ENABLE(bare-cpu-model, |
---|
345 | [ --enable-bare-cpu-model specify a particular cpu model] |
---|
346 | [ (bare bsp specific)], |
---|
347 | [case "${enableval}" in |
---|
348 | no) BARE_CPU_MODEL="" ;; |
---|
349 | *) BARE_CPU_MODEL="${enableval}" ;; |
---|
350 | esac], |
---|
351 | [BARE_CPU_MODEL=""]) |
---|
352 | ]) |
---|
353 | |
---|
354 | |
---|
355 | dnl $Id$ |
---|
356 | |
---|
357 | AC_DEFUN(RTEMS_ENABLE_TESTS, |
---|
358 | [ |
---|
359 | # If the tests are enabled, then find all the test suite Makefiles |
---|
360 | AC_MSG_CHECKING([if the test suites are enabled? ]) |
---|
361 | AC_ARG_ENABLE(tests, |
---|
362 | [ --enable-tests enable tests (default:disabled)], |
---|
363 | [case "${enableval}" in |
---|
364 | yes) tests_enabled=yes ;; |
---|
365 | no) tests_enabled=no ;; |
---|
366 | *) AC_MSG_ERROR(bad value ${enableval} for tests option) ;; |
---|
367 | esac], [tests_enabled=no]) |
---|
368 | AC_MSG_RESULT([$tests_enabled]) |
---|
369 | ]) |
---|
370 | |
---|
371 | dnl $Id$ |
---|
372 | |
---|
373 | dnl Override the set of BSPs to be built. |
---|
374 | dnl used by the toplevel configure script |
---|
375 | dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list) |
---|
376 | AC_DEFUN(RTEMS_ENABLE_RTEMSBSP, |
---|
377 | [ |
---|
378 | AC_ARG_ENABLE(rtemsbsp, |
---|
379 | [ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build], |
---|
380 | [case "${enableval}" in |
---|
381 | yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);; |
---|
382 | *) $1=$enableval;; |
---|
383 | esac],[$1=""]) |
---|
384 | ]) |
---|
385 | |
---|
386 | dnl Pass a single BSP via an environment variable |
---|
387 | dnl used by per BSP configure scripts |
---|
388 | AC_DEFUN(RTEMS_ENV_RTEMSBSP, |
---|
389 | [dnl |
---|
390 | AC_MSG_CHECKING([for RTEMS_BSP]) |
---|
391 | AC_CACHE_VAL(rtems_cv_RTEMS_BSP, |
---|
392 | [dnl |
---|
393 | test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; |
---|
394 | ])dnl |
---|
395 | if test -z "$rtems_cv_RTEMS_BSP"; then |
---|
396 | AC_MSG_ERROR([Missing RTEMS_BSP]) |
---|
397 | fi |
---|
398 | RTEMS_BSP="$rtems_cv_RTEMS_BSP" |
---|
399 | AC_MSG_RESULT(${RTEMS_BSP}) |
---|
400 | AC_SUBST(RTEMS_BSP) |
---|
401 | ]) |
---|
402 | |
---|
403 | dnl $Id$ |
---|
404 | |
---|
405 | dnl check if RTEMS support a cpu |
---|
406 | AC_DEFUN(RTEMS_CHECK_CPU, |
---|
407 | [dnl |
---|
408 | AC_REQUIRE([RTEMS_TOP]) |
---|
409 | AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU]) |
---|
410 | # Is this a supported CPU? |
---|
411 | AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported]) |
---|
412 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then |
---|
413 | AC_MSG_RESULT(yes) |
---|
414 | else |
---|
415 | AC_MSG_ERROR(no) |
---|
416 | fi |
---|
417 | ])dnl |
---|
418 | |
---|
419 | |
---|
420 | dnl $Id$ |
---|
421 | |
---|
422 | AC_DEFUN(RTEMS_CANONICAL_HOST, |
---|
423 | [dnl |
---|
424 | AC_REQUIRE([AC_CANONICAL_HOST]) |
---|
425 | RTEMS_HOST=$host_os |
---|
426 | changequote(,)dnl |
---|
427 | case "${target}" in |
---|
428 | # hpux unix port should go here |
---|
429 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
430 | RTEMS_HOST=Linux |
---|
431 | ;; |
---|
432 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
433 | RTEMS_HOST=FreeBSD |
---|
434 | ;; |
---|
435 | sparc-sun-solaris*) # unix "simulator" port |
---|
436 | RTEMS_HOST=Solaris |
---|
437 | ;; |
---|
438 | *) |
---|
439 | ;; |
---|
440 | esac |
---|
441 | changequote([,])dnl |
---|
442 | AC_SUBST(RTEMS_HOST) |
---|
443 | ])dnl |
---|
444 | |
---|
445 | dnl |
---|
446 | dnl $Id$ |
---|
447 | dnl |
---|
448 | |
---|
449 | AC_DEFUN(RTEMS_PROJECT_ROOT, |
---|
450 | [dnl |
---|
451 | AC_REQUIRE([RTEMS_TOP]) |
---|
452 | if test "$TARGET_SUBDIR" = "." ; then |
---|
453 | PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)'; |
---|
454 | else |
---|
455 | PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)' |
---|
456 | fi |
---|
457 | AC_SUBST(PROJECT_ROOT) |
---|
458 | |
---|
459 | RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP |
---|
460 | AC_SUBST(RTEMS_ROOT) |
---|
461 | |
---|
462 | INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change" |
---|
463 | AC_SUBST(INSTALL_CHANGE) |
---|
464 | |
---|
465 | PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex" |
---|
466 | AC_SUBST(PACKHEX) |
---|
467 | ]) |
---|
468 | |
---|
469 | |
---|
470 | dnl |
---|
471 | dnl $Id$ |
---|
472 | dnl |
---|
473 | dnl Check for target gcc |
---|
474 | dnl |
---|
475 | dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
476 | dnl Completely reworked |
---|
477 | |
---|
478 | AC_DEFUN(RTEMS_PROG_CC, |
---|
479 | [ |
---|
480 | AC_BEFORE([$0], [AC_PROG_CPP])dnl |
---|
481 | AC_BEFORE([$0], [AC_PROG_CC])dnl |
---|
482 | AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl |
---|
483 | |
---|
484 | dnl Only accept gcc and cc |
---|
485 | dnl NOTE: This might be too restrictive for native compilation |
---|
486 | AC_PATH_PROGS(CC_FOR_TARGET, "$program_prefix"gcc "$program_prefix"cc ) |
---|
487 | test -z "$CC_FOR_TARGET" \ |
---|
488 | && AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
489 | |
---|
490 | dnl backup |
---|
491 | rtems_save_CC=$CC |
---|
492 | rtems_save_CFLAGS=$CFLAGS |
---|
493 | |
---|
494 | dnl temporarily set CC |
---|
495 | CC=$CC_FOR_TARGET |
---|
496 | |
---|
497 | AC_PROG_CC_WORKS |
---|
498 | AC_PROG_CC_GNU |
---|
499 | |
---|
500 | if test $ac_cv_prog_gcc = yes; then |
---|
501 | GCC=yes |
---|
502 | dnl Check whether -g works, even if CFLAGS is set, in case the package |
---|
503 | dnl plays around with CFLAGS (such as to build both debugging and |
---|
504 | dnl normal versions of a library), tasteless as that idea is. |
---|
505 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
506 | ac_save_CFLAGS="$CFLAGS" |
---|
507 | CFLAGS= |
---|
508 | AC_PROG_CC_G |
---|
509 | if test "$ac_test_CFLAGS" = set; then |
---|
510 | CFLAGS="$ac_save_CFLAGS" |
---|
511 | elif test $ac_cv_prog_cc_g = yes; then |
---|
512 | CFLAGS="-g -O2" |
---|
513 | else |
---|
514 | CFLAGS="-O2" |
---|
515 | fi |
---|
516 | else |
---|
517 | GCC= |
---|
518 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
519 | fi |
---|
520 | |
---|
521 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
522 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
523 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
524 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
525 | |
---|
526 | dnl restore initial values |
---|
527 | CC=$rtems_save_CC |
---|
528 | CFLAGS=$rtems_save_CFLAGS |
---|
529 | |
---|
530 | unset ac_cv_prog_gcc |
---|
531 | unset ac_cv_prog_cc_g |
---|
532 | unset ac_cv_prog_cc_works |
---|
533 | unset ac_cv_prog_cc_cross |
---|
534 | ]) |
---|
535 | |
---|
536 | AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET, |
---|
537 | [ |
---|
538 | dnl check target cc |
---|
539 | RTEMS_PROG_CC |
---|
540 | dnl check if the compiler supports --specs |
---|
541 | RTEMS_GCC_SPECS |
---|
542 | dnl check if the target compiler may use --pipe |
---|
543 | RTEMS_GCC_PIPE |
---|
544 | dnl check if the compiler supports --specs if gcc28 is requested |
---|
545 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
546 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
547 | AC_MSG_WARN([*** disabling --enable-gcc28]) |
---|
548 | RTEMS_USE_GCC272=yes |
---|
549 | fi |
---|
550 | fi |
---|
551 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
552 | |
---|
553 | dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-* |
---|
554 | case $host_os in |
---|
555 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
556 | *) ;; |
---|
557 | esac |
---|
558 | AC_SUBST(GCCSED) |
---|
559 | ]) |
---|
560 | |
---|
561 | dnl |
---|
562 | dnl $Id$ |
---|
563 | dnl |
---|
564 | dnl Set program_prefix |
---|
565 | dnl |
---|
566 | dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
567 | dnl Extracted from configure |
---|
568 | |
---|
569 | AC_DEFUN(RTEMS_TOOL_PREFIX, |
---|
570 | [AC_REQUIRE([AC_CANONICAL_TARGET])dnl |
---|
571 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
---|
572 | |
---|
573 | changequote(,)dnl |
---|
574 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
575 | if [ "${target}" = "${host}" ] ; then |
---|
576 | program_prefix= |
---|
577 | else |
---|
578 | program_prefix=${target}- |
---|
579 | fi |
---|
580 | fi |
---|
581 | changequote([,])dnl |
---|
582 | ]) |
---|
583 | |
---|
584 | dnl |
---|
585 | dnl $Id$ |
---|
586 | dnl |
---|
587 | dnl Check whether the target compiler accepts -specs |
---|
588 | dnl |
---|
589 | dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de |
---|
590 | dnl |
---|
591 | |
---|
592 | AC_DEFUN(RTEMS_GCC_SPECS, |
---|
593 | [AC_REQUIRE([RTEMS_PROG_CC]) |
---|
594 | AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs, |
---|
595 | [ |
---|
596 | rtems_cv_gcc_specs=no |
---|
597 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
598 | touch confspec |
---|
599 | echo 'void f(){}' >conftest.c |
---|
600 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
601 | rtems_cv_gcc_specs=yes |
---|
602 | fi |
---|
603 | fi |
---|
604 | rm -f confspec conftest* |
---|
605 | ])]) |
---|
606 | |
---|
607 | dnl |
---|
608 | dnl $Id$ |
---|
609 | dnl |
---|
610 | dnl Check whether the target compiler accepts -pipe |
---|
611 | dnl |
---|
612 | dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de |
---|
613 | dnl |
---|
614 | |
---|
615 | AC_DEFUN(RTEMS_GCC_PIPE, |
---|
616 | [AC_REQUIRE([RTEMS_PROG_CC]) |
---|
617 | AC_REQUIRE([AC_CANONICAL_HOST]) |
---|
618 | AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe, |
---|
619 | [ |
---|
620 | rtems_cv_gcc_pipe=no |
---|
621 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
622 | case "$host_os" in |
---|
623 | cygwin*) |
---|
624 | ;; |
---|
625 | *) |
---|
626 | echo 'void f(){}' >conftest.c |
---|
627 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
628 | rtems_cv_gcc_pipe=yes |
---|
629 | fi |
---|
630 | rm -f conftest* |
---|
631 | ;; |
---|
632 | esac |
---|
633 | fi |
---|
634 | ]) |
---|
635 | ]) |
---|
636 | |
---|
637 | dnl |
---|
638 | dnl $Id$ |
---|
639 | dnl |
---|
640 | dnl Check for target g++ |
---|
641 | dnl |
---|
642 | dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
643 | dnl Completely reworked |
---|
644 | |
---|
645 | AC_DEFUN(RTEMS_PROG_CXX, |
---|
646 | [ |
---|
647 | AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl |
---|
648 | AC_BEFORE([$0], [AC_PROG_CXX])dnl |
---|
649 | AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl |
---|
650 | |
---|
651 | dnl Only accept g++ and c++ |
---|
652 | dnl NOTE: This might be too restrictive for native compilation |
---|
653 | AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++) |
---|
654 | test -z "$CXX_FOR_TARGET" \ |
---|
655 | && AC_MSG_ERROR([no acceptable c++ found in \$PATH]) |
---|
656 | |
---|
657 | dnl backup |
---|
658 | rtems_save_CXX=$CXX |
---|
659 | rtems_save_CXXFLAGS=$CXXFLAGS |
---|
660 | |
---|
661 | dnl temporarily set CXX |
---|
662 | CXX=$CXX_FOR_TARGET |
---|
663 | |
---|
664 | AC_PROG_CXX_WORKS |
---|
665 | AC_PROG_CXX_GNU |
---|
666 | |
---|
667 | if test $ac_cv_prog_gxx = yes; then |
---|
668 | GXX=yes |
---|
669 | dnl Check whether -g works, even if CXXFLAGS is set, in case the package |
---|
670 | dnl plays around with CXXFLAGS (such as to build both debugging and |
---|
671 | dnl normal versions of a library), tasteless as that idea is. |
---|
672 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
673 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
674 | CXXFLAGS= |
---|
675 | AC_PROG_CXX_G |
---|
676 | if test "$ac_test_CXXFLAGS" = set; then |
---|
677 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
678 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
679 | CXXFLAGS="-g -O2" |
---|
680 | else |
---|
681 | CXXFLAGS="-O2" |
---|
682 | fi |
---|
683 | else |
---|
684 | GXX= |
---|
685 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
686 | fi |
---|
687 | |
---|
688 | rtems_cv_prog_gxx=$ac_cv_prog_gxx |
---|
689 | rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g |
---|
690 | rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works |
---|
691 | rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross |
---|
692 | |
---|
693 | CXX=$rtems_save_CXX |
---|
694 | CXXFLAGS=$rtems_save_CXXFLAGS |
---|
695 | |
---|
696 | dnl restore initial values |
---|
697 | unset ac_cv_prog_gxx |
---|
698 | unset ac_cv_prog_cc_g |
---|
699 | unset ac_cv_prog_cxx_works |
---|
700 | unset ac_cv_prog_cxx_cross |
---|
701 | ]) |
---|
702 | |
---|
703 | AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET, |
---|
704 | [ |
---|
705 | RTEMS_PROG_CXX |
---|
706 | if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then |
---|
707 | AC_MSG_ERROR([***] |
---|
708 | [Inconsistency in compiler configuration:] |
---|
709 | [Target C compiler and Target C++ compiler] |
---|
710 | [must both either be cross compilers or native compilers] |
---|
711 | [Hint: If building a posix bsp: LD_LIBRARY_PATH?] ) |
---|
712 | fi |
---|
713 | ]) |
---|
714 | |
---|
715 | dnl |
---|
716 | dnl $Id$ |
---|
717 | dnl |
---|
718 | dnl Set target tools |
---|
719 | dnl |
---|
720 | dnl 98/06/23 Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
721 | dnl fixing cache/environment variable handling |
---|
722 | dnl adding checks for cygwin/egcs '\\'-bug |
---|
723 | dnl adding checks for ranlib/ar -s problem |
---|
724 | dnl |
---|
725 | dnl 98/02/12 Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
726 | dnl |
---|
727 | |
---|
728 | AC_DEFUN(RTEMS_GCC_PRINT, |
---|
729 | [ case $host_os in |
---|
730 | *cygwin*) |
---|
731 | dnl FIXME: Hack for cygwin/egcs reporting mixed '\\' and '/' |
---|
732 | dnl Should be removed once cygwin/egcs reports '/' only |
---|
733 | $1=`$CC_FOR_TARGET --print-prog-name=$2 | sed -e 's%\\\\%/%g' ` |
---|
734 | ;; |
---|
735 | *) |
---|
736 | $1=`$CC_FOR_TARGET --print-prog-name=$2` |
---|
737 | ;; |
---|
738 | esac |
---|
739 | ]) |
---|
740 | |
---|
741 | AC_DEFUN(RTEMS_PATH_TOOL, |
---|
742 | [ |
---|
743 | AC_MSG_CHECKING([target's $2]) |
---|
744 | AC_CACHE_VAL(ac_cv_path_$1,:) |
---|
745 | AC_MSG_RESULT([$ac_cv_path_$1]) |
---|
746 | |
---|
747 | if test -n "$ac_cv_path_$1"; then |
---|
748 | dnl retrieve the value from the cache |
---|
749 | $1=$ac_cv_path_$1 |
---|
750 | else |
---|
751 | dnl the cache was not set |
---|
752 | if test -z "[$]$1" ; then |
---|
753 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
754 | # We are using gcc, ask it about its tool |
---|
755 | # NOTE: Necessary if gcc was configured to use the target's |
---|
756 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
757 | RTEMS_GCC_PRINT($1,$2) |
---|
758 | fi |
---|
759 | else |
---|
760 | # The user set an environment variable. |
---|
761 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
762 | # will override the environment variable, which isn't what the user |
---|
763 | # intends |
---|
764 | AC_MSG_CHECKING([whether environment variable $1 is an absolute path]) |
---|
765 | case "[$]$1" in |
---|
766 | /*) # valid |
---|
767 | AC_MSG_RESULT("yes") |
---|
768 | ;; |
---|
769 | *) # invalid for AC_PATH_PROG |
---|
770 | AC_MSG_RESULT("no") |
---|
771 | AC_MSG_ERROR([***] |
---|
772 | [Environment variable $1 should either] |
---|
773 | [be unset (preferred) or contain an absolute path]) |
---|
774 | ;; |
---|
775 | esac |
---|
776 | fi |
---|
777 | |
---|
778 | AC_PATH_PROG($1,"$program_prefix"$2,$3) |
---|
779 | fi |
---|
780 | ]) |
---|
781 | |
---|
782 | AC_DEFUN(RTEMS_CANONICALIZE_TOOLS, |
---|
783 | [AC_REQUIRE([RTEMS_PROG_CC])dnl |
---|
784 | |
---|
785 | dnl FIXME: What shall be done if these tools are not available? |
---|
786 | RTEMS_PATH_TOOL(AR_FOR_TARGET,ar,no) |
---|
787 | RTEMS_PATH_TOOL(AS_FOR_TARGET,as,no) |
---|
788 | RTEMS_PATH_TOOL(LD_FOR_TARGET,ld,no) |
---|
789 | RTEMS_PATH_TOOL(NM_FOR_TARGET,nm,no) |
---|
790 | |
---|
791 | dnl special treatment of ranlib |
---|
792 | RTEMS_PATH_TOOL(RANLIB_FOR_TARGET,ranlib,no) |
---|
793 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
794 | # ranlib wasn't found; check if ar -s is available |
---|
795 | RTEMS_AR_FOR_TARGET_S |
---|
796 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
797 | dnl override RANLIB_FOR_TARGET's cache |
---|
798 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
799 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
800 | else |
---|
801 | AC_MSG_ERROR([***] |
---|
802 | [Can't figure out how to build a library index] |
---|
803 | [Neither ranlib nor ar -s seem to be available] ) |
---|
804 | fi |
---|
805 | fi |
---|
806 | |
---|
807 | dnl NOTE: These may not be available if not using gnutools |
---|
808 | RTEMS_PATH_TOOL(OBJCOPY_FOR_TARGET,objcopy,no) |
---|
809 | RTEMS_PATH_TOOL(SIZE_FOR_TARGET,size,no) |
---|
810 | RTEMS_PATH_TOOL(STRIP_FOR_TARGET,strip,no) |
---|
811 | ]) |
---|
812 | |
---|
813 | dnl |
---|
814 | dnl $Id$ |
---|
815 | dnl |
---|
816 | |
---|
817 | AC_DEFUN(RTEMS_AR_FOR_TARGET_S, |
---|
818 | [ |
---|
819 | AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works, |
---|
820 | rtems_cv_AR_FOR_TARGET_S, |
---|
821 | [ |
---|
822 | cat > conftest.$ac_ext <<EOF |
---|
823 | int foo( int b ) |
---|
824 | { return b; } |
---|
825 | EOF |
---|
826 | if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \ |
---|
827 | && AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \ |
---|
828 | && test -s conftest.a ; \ |
---|
829 | then |
---|
830 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
831 | else |
---|
832 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
833 | fi |
---|
834 | rm -f conftest* |
---|
835 | ]) |
---|
836 | ]) |
---|
837 | |
---|
838 | |
---|
839 | dnl $Id$ |
---|
840 | |
---|
841 | dnl Report all available bsps for a target, |
---|
842 | dnl check if a bsp-subdirectory is present for all bsps found |
---|
843 | dnl |
---|
844 | dnl RTEMS_CHECK_BSPS(bsp_list) |
---|
845 | AC_DEFUN(RTEMS_CHECK_BSPS, |
---|
846 | [ |
---|
847 | AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target |
---|
848 | AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir |
---|
849 | AC_MSG_CHECKING([for bsps]) |
---|
850 | case "${target}" in |
---|
851 | changequote(,)dnl |
---|
852 | i[3456]86-go32-rtems*) |
---|
853 | changequote([,])dnl |
---|
854 | $1="go32 go32_p5" |
---|
855 | ;; |
---|
856 | *) |
---|
857 | files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU` |
---|
858 | for file in $files; do |
---|
859 | case $file in |
---|
860 | shared*);; |
---|
861 | Makefile*);; |
---|
862 | READ*);; |
---|
863 | CVS*);; |
---|
864 | pxfl*);; |
---|
865 | go32*);; # so the i386 port can pick up the other Makefiles |
---|
866 | # Now account for BSPs with build variants |
---|
867 | gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";; |
---|
868 | p4000) rtems_bsp="$rtems_bsp p4600 p4650";; |
---|
869 | mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";; |
---|
870 | *) $1="[$]$1 $file";; |
---|
871 | esac; |
---|
872 | done |
---|
873 | ;; |
---|
874 | esac |
---|
875 | AC_MSG_RESULT([[$]$1 .. done]) |
---|
876 | ])dnl |
---|
877 | |
---|
878 | AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP, |
---|
879 | [dnl |
---|
880 | AC_MSG_CHECKING([for make/custom/[$]$1.cfg]) |
---|
881 | if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then |
---|
882 | AC_MSG_RESULT([yes]) |
---|
883 | else |
---|
884 | AC_MSG_ERROR([no]) |
---|
885 | fi |
---|
886 | ])dnl |
---|
887 | |
---|
888 | dnl |
---|
889 | dnl $Id$ |
---|
890 | dnl |
---|
891 | |
---|
892 | AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING, |
---|
893 | [dnl |
---|
894 | AC_REQUIRE([RTEMS_TOP])dnl |
---|
895 | AC_REQUIRE([RTEMS_CHECK_CPU])dnl |
---|
896 | AC_CACHE_CHECK([whether BSP supports multiprocessing], |
---|
897 | rtems_cv_HAS_MP, |
---|
898 | [dnl |
---|
899 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${$1}/shmsupp"; then |
---|
900 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
901 | rtems_cv_HAS_MP="yes" ; |
---|
902 | else |
---|
903 | rtems_cv_HAS_MP="disabled"; |
---|
904 | fi |
---|
905 | else |
---|
906 | rtems_cv_HAS_MP="no"; |
---|
907 | fi]) |
---|
908 | if test "$rtems_cv_HAS_MP" = "yes"; then |
---|
909 | HAS_MP="yes" |
---|
910 | else |
---|
911 | HAS_MP="no" |
---|
912 | fi |
---|
913 | AC_SUBST(HAS_MP) |
---|
914 | ]) |
---|
915 | |
---|
916 | dnl $Id$ |
---|
917 | dnl |
---|
918 | AC_DEFUN(RTEMS_CHECK_POSIX_API, |
---|
919 | [dnl |
---|
920 | AC_REQUIRE([RTEMS_CHECK_CPU])dnl |
---|
921 | AC_CACHE_CHECK([whether BSP supports libposix], |
---|
922 | rtems_cv_HAS_POSIX_API, |
---|
923 | [dnl |
---|
924 | case "$RTEMS_CPU" in |
---|
925 | unix*) |
---|
926 | rtems_cv_HAS_POSIX_API="no" |
---|
927 | ;; |
---|
928 | *) |
---|
929 | if test "${RTEMS_HAS_POSIX_API}" = "yes"; then |
---|
930 | rtems_cv_HAS_POSIX_API="yes"; |
---|
931 | else |
---|
932 | rtems_cv_HAS_POSIX_API="disabled"; |
---|
933 | fi |
---|
934 | ;; |
---|
935 | esac]) |
---|
936 | if test "$rtems_cv_HAS_POSIX_API" = "yes"; then |
---|
937 | HAS_POSIX_API="yes"; |
---|
938 | else |
---|
939 | HAS_POSIX_API="no"; |
---|
940 | fi |
---|
941 | AC_SUBST(HAS_POSIX_API)dnl |
---|
942 | ]) |
---|
943 | |
---|