[rtems-schedsim commit] aclocal/*posix*.m4: Change so POSIX can be Enabled

Joel Sherrill joel at rtems.org
Wed May 1 16:05:22 UTC 2013


Module:    rtems-schedsim
Branch:    master
Commit:    972ce8d587830f9854d545ae58ced8e65e799b03
Changeset: http://git.rtems.org/rtems-schedsim/commit/?id=972ce8d587830f9854d545ae58ced8e65e799b03

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed May  1 11:05:32 2013 -0500

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)
 ])




More information about the vc mailing list