Imported Upstream version 3.1.0
[debian/amanda] / config / amanda / dvdrw-device.m4
1 # SYNOPSIS
2 #
3 #   AMANDA_DVDRW_DEVICE
4 #
5 # OVERVIEW
6 #
7 #   Perform the necessary checks for the DVDRW Device.  If the DVDRW device should be built,
8 #   WANT_DVDRW_DEVICE is DEFINEd and set up as an AM_CONDITIONAL.
9 #
10 AC_DEFUN([AMANDA_DVDRW_DEVICE], [
11         AC_ARG_ENABLE([dvdrw-device],
12         AS_HELP_STRING([--disable-dvdrw-device],
13                 [disable the DVD-RW device]),
14         [ WANT_DVDRW_DEVICE=$enableval ], [ WANT_DVDRW_DEVICE=yes ])
15
16         AC_MSG_CHECKING([whether to include the DVD-RW device])
17         AC_MSG_RESULT($WANT_DVDRW_DEVICE)
18
19         AM_CONDITIONAL([WANT_DVDRW_DEVICE], [test x"$WANT_DVDRW_DEVICE" = x"yes"])
20
21         # Now handle any setup for DVDRW, if we want it.
22         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
23         AC_DEFINE(WANT_DVDRW_DEVICE, [], [Compile DVD-RW driver])
24         fi
25 ])