summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/check-newlib.m45
-rw-r--r--aclocal/enable-itron.m48
-rw-r--r--aclocal/enable-posix.m48
-rw-r--r--aclocal/sysv-ipc.m44
4 files changed, 9 insertions, 16 deletions
diff --git a/aclocal/check-newlib.m4 b/aclocal/check-newlib.m4
index 1984001dc8..326c58c1aa 100644
--- a/aclocal/check-newlib.m4
+++ b/aclocal/check-newlib.m4
@@ -7,8 +7,6 @@ AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl
AC_CACHE_CHECK([for newlib],
rtems_cv_use_newlib,
[
- rtems_save_CC=$CC
-
dnl some versions of newlib provide not_required_by_rtems
AC_TRY_LINK(
[extern void not_required_by_rtems() ;],
@@ -23,7 +21,7 @@ dnl some versions of newlib provide rtems_provides_crt0()
rtems_cv_use_newlib="yes",
rtems_cv_use_newlib="no")
fi
- CC=$rtems_save_CC])
+ ])
RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
AC_SUBST(RTEMS_USE_NEWLIB)
@@ -33,4 +31,3 @@ then
AC_DEFINE_UNQUOTED(MALLOC_PROVIDED,1,[if malloc is provided])
fi
])
-
diff --git a/aclocal/enable-itron.m4 b/aclocal/enable-itron.m4
index bb622079e9..efe99115f4 100644
--- a/aclocal/enable-itron.m4
+++ b/aclocal/enable-itron.m4
@@ -12,13 +12,12 @@ AC_ARG_ENABLE(itron,
*) AC_MSG_ERROR(bad value ${enableval} for enable-itron option) ;;
esac],[RTEMS_HAS_ITRON_API=yes])
-changequote(,)dnl
-case "${target}" in
+case "${host}" in
# hpux unix port should go here
- i[34567]86-pc-linux*) # unix "simulator" port
+ i[[34567]]86-pc-linux*) # unix "simulator" port
RTEMS_HAS_ITRON_API=no
;;
- i[34567]86-*freebsd*) # unix "simulator" port
+ i[[34567]]86-*freebsd*) # unix "simulator" port
RTEMS_HAS_ITRON_API=no
;;
no_cpu-*rtems*)
@@ -30,6 +29,5 @@ case "${target}" in
*)
;;
esac
-changequote([,])dnl
AC_SUBST(RTEMS_HAS_ITRON_API)
])
diff --git a/aclocal/enable-posix.m4 b/aclocal/enable-posix.m4
index bbf2889b63..1a8197e1cd 100644
--- a/aclocal/enable-posix.m4
+++ b/aclocal/enable-posix.m4
@@ -12,13 +12,12 @@ AC_ARG_ENABLE(posix,
*) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
esac],[RTEMS_HAS_POSIX_API=yes])
-changequote(,)dnl
-case "${target}" in
+case "${host}" in
# hpux unix port should go here
- i[34567]86-pc-linux*) # unix "simulator" port
+ i[[34567]]86-pc-linux*) # unix "simulator" port
RTEMS_HAS_POSIX_API=no
;;
- i[34567]86-*freebsd*) # unix "simulator" port
+ i[[34567]]86-*freebsd*) # unix "simulator" port
RTEMS_HAS_POSIX_API=no
;;
no_cpu-*rtems*)
@@ -30,6 +29,5 @@ case "${target}" in
*)
;;
esac
-changequote([,])dnl
AC_SUBST(RTEMS_HAS_POSIX_API)
])
diff --git a/aclocal/sysv-ipc.m4 b/aclocal/sysv-ipc.m4
index 883921e2c8..00aa1bf32e 100644
--- a/aclocal/sysv-ipc.m4
+++ b/aclocal/sysv-ipc.m4
@@ -27,10 +27,10 @@ AC_CACHE_CHECK([whether $RTEMS_HOST defines union semun],
[union semun arg ;],
[rtems_cv_HAS_UNION_SEMUN="yes"],
[rtems_cv_HAS_UNION_SEMUN="no"])
-
+])
if test "$rtems_cv_HAS_UNION_SEMUN" = "yes"; then
AC_DEFINE(HAS_UNION_SEMUN)
-fi])
+fi
])
AC_DEFUN(RTEMS_SYSV_SEM,