aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-05-01 12:48:16 +0200
committerMartijn Kaijser <martijn@xbmc.org>2016-05-01 12:48:16 +0200
commit0e3665008819a8ec92ffbc31ce86f5fd6d1fbabd (patch)
tree17f7fa93886f80db61b3e5812d15d4cb9b74b7d8 /configure.ac
parent477ded3fe2721c672b7399bf087cd9a6aded1610 (diff)
parent6c3417f9746964a73b8702811ad7a39aa3385c56 (diff)
Merge pull request #9675 from MartijnKaijser/cdrip
Avoid compiling cdrip when build with --disable-optical-drive
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fc25fc8fd5..4ffbaaaea4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1165,6 +1165,9 @@ fi
# Optical
if test "$use_optical_drive" = "yes"; then
AC_DEFINE([HAS_DVD_DRIVE], [1], [Define to 1 to have optical drive support])
+ USE_OPTICAL_DRIVE=1
+else
+ USE_OPTICAL_DRIVE=0
fi
# Alsa
@@ -2293,6 +2296,7 @@ AC_SUBST(UPNP_DEFINES)
AC_SUBST(USE_SSE4)
AC_SUBST(USE_MMAL)
AC_SUBST(USE_X11)
+AC_SUBST(USE_OPTICAL_DRIVE)
AC_SUBST(USE_BREAKPAD)
AC_SUBST(CROSS_COMPILING)