summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-05-01 11:05:32 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-05-01 11:09:15 -0500
commit972ce8d587830f9854d545ae58ced8e65e799b03 (patch)
treee00c228ca00710598875e9ad2567f82f4a4b1c37
parentalocal/*smp*.m4: Change so SMP can be enabled on Scheduler Simulator (diff)
downloadrtems-schedsim-972ce8d587830f9854d545ae58ced8e65e799b03.tar.bz2
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.
-rw-r--r--aclocal/check-posix.m43
-rw-r--r--aclocal/enable-posix.m415
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)
])