summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
authorPhilipp Eppelt <philipp.eppelt@mailbox.tu-dresden.de>2013-11-27 19:00:19 +0100
committerGedare Bloom <gedare@rtems.org>2013-11-27 15:54:04 -0500
commita9051de9e0ac83adc60c91a3b89dc286e17a4b60 (patch)
tree82c0846923c927e3fc818e65db1ffeba518103f4 /aclocal
parent6ffaeb289975544f53f97608c9ef3cc41e7e0897 (diff)
downloadrtems-a9051de9e0ac83adc60c91a3b89dc286e17a4b60.tar.bz2
add --enable-paravirt to the configure options
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/enable-paravirt.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/aclocal/enable-paravirt.m4 b/aclocal/enable-paravirt.m4
new file mode 100644
index 0000000000..ff768f4f77
--- /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])
+])