[PATCH 1/3] add --enable-paravirt to the configure options
Philipp Eppelt
philipp.eppelt at mailbox.tu-dresden.de
Wed Nov 27 18:00:19 UTC 2013
---
aclocal/enable-paravirt.m4 | 17 +++++++++++++++++
configure.ac | 1 +
2 files changed, 18 insertions(+)
create mode 100644 aclocal/enable-paravirt.m4
diff --git a/aclocal/enable-paravirt.m4 b/aclocal/enable-paravirt.m4
new file mode 100644
index 0000000..ff768f4
--- /dev/null
+++ b/aclocal/enable-paravirt.m4
@@ -0,0 +1,17 @@
+AC_DEFUN([RTEMS_ENABLE_PARAVIRT],
+[
+
+AC_ARG_ENABLE(paravirt,
+[AS_HELP_STRING([--enable-paravirt],[enable support for paravirtualization
+(i386 only) (default=no) ])],
+
+[case "${enableval}" in
+ yes) case "${RTEMS_CPU}" in
+ i386) RTEMS_HAS_PARAVIRT=yes ;;
+ *) RTEMS_HAS_PARAVIRT=no ;;
+ esac
+ ;;
+ no) RTEMS_HAS_PARAVIRT=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for enable-paravirt option) ;;
+esac],[RTEMS_HAS_PARAVIRT=no])
+])
diff --git a/configure.ac b/configure.ac
index e4ff0a6..b6798f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,7 @@ RTEMS_ENABLE_TESTS
RTEMS_ENABLE_RTEMS_DEBUG
RTEMS_ENABLE_RTEMSBSP
RTEMS_ENABLE_MULTILIB
+RTEMS_ENABLE_PARAVIRT
AC_ARG_ENABLE([docs],
[AS_HELP_STRING([--enable-docs],[enable building documentation
--
1.8.1.4
More information about the devel
mailing list