Imported Upstream version 3.1.0
[debian/amanda] / config / amanda / dvdrw-device.m4
diff --git a/config/amanda/dvdrw-device.m4 b/config/amanda/dvdrw-device.m4
new file mode 100644 (file)
index 0000000..b47b072
--- /dev/null
@@ -0,0 +1,25 @@
+# SYNOPSIS
+#
+#   AMANDA_DVDRW_DEVICE
+#
+# OVERVIEW
+#
+#   Perform the necessary checks for the DVDRW Device.  If the DVDRW device should be built,
+#   WANT_DVDRW_DEVICE is DEFINEd and set up as an AM_CONDITIONAL.
+#
+AC_DEFUN([AMANDA_DVDRW_DEVICE], [
+       AC_ARG_ENABLE([dvdrw-device],
+       AS_HELP_STRING([--disable-dvdrw-device],
+               [disable the DVD-RW device]),
+       [ WANT_DVDRW_DEVICE=$enableval ], [ WANT_DVDRW_DEVICE=yes ])
+
+       AC_MSG_CHECKING([whether to include the DVD-RW device])
+       AC_MSG_RESULT($WANT_DVDRW_DEVICE)
+
+       AM_CONDITIONAL([WANT_DVDRW_DEVICE], [test x"$WANT_DVDRW_DEVICE" = x"yes"])
+
+       # Now handle any setup for DVDRW, if we want it.
+       if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
+       AC_DEFINE(WANT_DVDRW_DEVICE, [], [Compile DVD-RW driver])
+       fi
+])