summaryrefslogtreecommitdiff
path: root/Drivers.macros
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-06-16 18:22:39 +0000
committerThomas Bushnell <thomas@gnu.org>1999-06-16 18:22:39 +0000
commit4191950d20da3be60a7d55e6719acbb1e9050ce7 (patch)
treebc57f037c487039b537e42f42961804b5891c67b /Drivers.macros
parentdf0ca840cea193a8f4d5f219a85b128eb7c9af86 (diff)
1999-06-16 Thomas Bushnell, BSG <tb@mit.edu>
* Drivers.macros (AC_DRIVER): Only turn on driver if $enableval is not `no'. Reported by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.
Diffstat (limited to 'Drivers.macros')
-rw-r--r--Drivers.macros2
1 files changed, 2 insertions, 0 deletions
diff --git a/Drivers.macros b/Drivers.macros
index fe0e216..c215a52 100644
--- a/Drivers.macros
+++ b/Drivers.macros
@@ -43,6 +43,7 @@ dnl `class'; see the comments on AC_DRIVER_CLASS for more information.
AC_DEFUN(AC_DRIVER, [
[#] Checking for device driver option [$1]
AC_ARG_ENABLE([$1],,
+if [ "x$enableval" != xno ]; then
AC_DEFINE([$2])
device_drivers="$device_drivers [$3]"
if test "${driver_class_[$4]_selected+set}" != set; then
@@ -50,6 +51,7 @@ if test "${driver_class_[$4]_selected+set}" != set; then
AC_DEFINE_UNQUOTED($driver_class_[$4]_option)
device_drivers="$device_drivers $driver_class_[$4]_files"
fi
+fi
)])