forked from Imagelibrary/rtems
* configure.ac: Reworked for multilibs, reflect changes to aclocal/*.m4. * aclocal/subdirs.m4: New file. * aclocal/multi.m4: New file, adopted from autoconf-2.52 w/ modifications. * aclocal/check-posix.m4: Apply AS_IF. * aclocal/config-subdirs.m4: Reflect changes to other m4-macros. * aclocal/env-rtemsbsp.m4: Add PROJECT_INCLUDE, PROJECT_RELEASE. Add AM_CONDITIONAL(MULTILIB). Adapt GCC_SPECS to multilibs. * aclocal/env-rtemscpu.m4: Remove RTEMS_BSP. Add support for MULTIBUILDTOP, MULTISUBDIR. Adapt GCC_SPECS to multilibs. Add PROJECT_INCLUDE, PROJECT_RELEASE, includedir, libdir. * aclocal/multilib.m4: Fix m4-quoting, adopt automake-1.5's OUTPUT_COMMANDS. * aclocal/project-root.m4: Remove PROJECT_INCLUDE, PROJECT_RELEASE. * aclocal/rtems-debug.m4: Minor cleanups. * aclocal/rtems-top.m4: Minor cleanups. * automake/compile.am: Further steps towards automake's rules.
37 lines
786 B
Plaintext
37 lines
786 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
|
|
])
|
|
|
|
AC_DEFUN(RTEMS_DEFINE_POSIX_API,
|
|
[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
|
|
AS_IF(
|
|
[test x"${HAS_POSIX_API}" = x"yes"],
|
|
[AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
|
|
])
|