mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-29 07:50:18 +00:00
that is a somewhat experimental, multilib-related patch:
Changes:
* Use RTEMS_ENV_RTEMSCPU instead of RTEMS_ENV_RTEMSBSP in
configure.ins below exec/.
At the moment, RTEMS_ENV_RTEMSCPU is more or less an optical change
to emphasize that these subdirectories shall not depend on RTEMS_BSP
than a real behavioral change.
* Add AC_DEFINE_* to several aclocal/*.m4 macros to prepare
autoheader/autoconf generated targopts.h and similiar configuration
headers.
* c/src/configure.in: remove exec from cfg_subdirs if multilibs are
enabled (c/src is build per bsp, exec shall be build per cpu in c/
or from the toplevel in future, when multilibs are enabled.)
Notes:
* This patch should not have any impact on the current building scheme.
* --enable-multilib still does not work.
* running bootstrap from the toplevel directory is required.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: c/src/tests/libtests/termios/init.c
CVS: ----------------------------------------------------------------------
35 lines
707 B
Plaintext
35 lines
707 B
Plaintext
dnl $Id$
|
|
dnl
|
|
AC_DEFUN(RTEMS_CHECK_POSIX_API,
|
|
[dnl
|
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
|
|
AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
|
|
|
|
AC_CACHE_CHECK([whether CPU supports libposix],
|
|
rtems_cv_HAS_POSIX_API,
|
|
[dnl
|
|
case "$RTEMS_CPU" in
|
|
unix*)
|
|
rtems_cv_HAS_POSIX_API="no"
|
|
;;
|
|
*)
|
|
if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
|
|
rtems_cv_HAS_POSIX_API="yes";
|
|
else
|
|
rtems_cv_HAS_POSIX_API="disabled";
|
|
fi
|
|
;;
|
|
esac])
|
|
if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
|
|
HAS_POSIX_API="yes";
|
|
else
|
|
HAS_POSIX_API="no";
|
|
fi
|
|
AC_SUBST(HAS_POSIX_API)dnl
|
|
|
|
if test x"${HAS_POSIX_API}" = x"yes";
|
|
then
|
|
AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])
|
|
fi
|
|
])
|