summaryrefslogtreecommitdiffstats
path: root/macros/enable-hwapi.m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--macros/enable-hwapi.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/macros/enable-hwapi.m4 b/macros/enable-hwapi.m4
new file mode 100644
index 0000000000..ce6ef3f3a1
--- /dev/null
+++ b/macros/enable-hwapi.m4
@@ -0,0 +1,15 @@
+dnl $Id$
+dnl
+dnl FIXME: this needs to be reworked
+
+AC_DEFUN(RTEMS_ENABLE_HWAPI,
+[dnl
+AC_ARG_ENABLE(hwapi, \
+[ --enable-hwapi enable hardware API library],
+[case "${enableval}" in
+ yes) RTEMS_HAS_HWAPI=yes ;;
+ no) RTEMS_HAS_HWAPI=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;;
+ esac],[RTEMS_HAS_HWAPI=no])
+AC_SUBST(RTEMS_HAS_HWAPI)dnl
+])dnl