From 972ce8d587830f9854d545ae58ced8e65e799b03 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 1 May 2013 11:05:32 -0500 Subject: aclocal/*posix*.m4: Change so POSIX can be Enabled The real RTEMS code ensures that POSIX is enabled only for targets matching *-*-rtems*. The Scheduler Simulator runs natively. --- aclocal/check-posix.m4 | 3 ++- aclocal/enable-posix.m4 | 15 ++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/aclocal/check-posix.m4 b/aclocal/check-posix.m4 index 6b7ff61..9198db3 100644 --- a/aclocal/check-posix.m4 +++ b/aclocal/check-posix.m4 @@ -7,7 +7,8 @@ AC_CACHE_CHECK([whether CPU supports libposix], rtems_cv_HAS_POSIX_API, [dnl case "$host" in - *-*-rtems*) + #*-*-rtems*) + *) if test "${RTEMS_HAS_POSIX_API}" = "yes"; then rtems_cv_HAS_POSIX_API="yes"; else diff --git a/aclocal/enable-posix.m4 b/aclocal/enable-posix.m4 index 272704c..a9531f8 100644 --- a/aclocal/enable-posix.m4 +++ b/aclocal/enable-posix.m4 @@ -1,3 +1,4 @@ +# ***** CHANGED FOR SCHEDULER SIMULATOR ***** AC_DEFUN([RTEMS_ENABLE_POSIX], [ ## AC_BEFORE([$0], [RTEMS_CHECK_POSIX_API])dnl @@ -10,12 +11,12 @@ AC_ARG_ENABLE(posix, *) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;; esac],[RTEMS_HAS_POSIX_API=yes]) -case "${host}" in - no_cpu-*rtems*) - RTEMS_HAS_POSIX_API=no - ;; - *) - ;; -esac +#case "${host}" in +# no_cpu-*rtems*) +# RTEMS_HAS_POSIX_API=no +# ;; +# *) +# ;; +#esac AC_SUBST(RTEMS_HAS_POSIX_API) ]) -- cgit v1.2.3