1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
From f5ba37fc083be1acd412cf2643dab9aaa81f20d8 Mon Sep 17 00:00:00 2001
From: topfs2 <topfs2@568bbfeb-2a22-0410-94d2-cc84cf5bfa90>
Date: Fri, 25 Jun 2010 08:58:43 +0000
Subject: [PATCH 09/11] Added a configure option --disable-optical-drive
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/gsoc-2010-beagleboard@31373 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
---
configure.in | 17 +++++++++++++++++
guilib/system.h | 2 +-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index b69261f..d861b28 100644
--- a/configure.in
+++ b/configure.in
@@ -228,6 +228,12 @@ AC_ARG_ENABLE([webserver],
[use_webserver=$enableval],
[use_webserver=yes])
+AC_ARG_ENABLE([optical-drive],
+ [AS_HELP_STRING([--disable-optical-drive],
+ [disable optical drive])],
+ [use_optical_drive=$enableval],
+ [use_optical_drive=yes])
+
AC_ARG_ENABLE([libdts],
[AS_HELP_STRING([--enable-libdts],
[enable deprecated libdts support])],
@@ -616,6 +622,11 @@ else
fi
fi
+# Optical
+if test "$use_optical_drive" = "yes"; then
+ AC_DEFINE([HAS_DVD_DRIVE], [1], [Define to 1 to have optical drive support])
+fi
+
# PulseAudio
if test "x$use_pulse" != "xno"; then
if test "$host_vendor" = "apple" ; then
@@ -1258,6 +1269,12 @@ else
final_message="$final_message\n WebM support:\tNo"
fi
+if test "$use_optical_drive" = "yes"; then
+ final_message="$final_message\n Optical drive:\tYes"
+else
+ final_message="$final_message\n Optical drive:\tNo"
+fi
+
if test "$use_librtmp" = "yes"; then
final_message="$final_message\n libRTMP support:\tYes"
else
diff --git a/guilib/system.h b/guilib/system.h
index 560778d..6e21cdb 100644
--- a/guilib/system.h
+++ b/guilib/system.h
@@ -32,7 +32,6 @@
#define HAS_SDL
#endif
-#define HAS_DVD_DRIVE
#define HAS_DVD_SWSCALE
#define HAS_DVDPLAYER
#define HAS_EVENT_SERVER
@@ -87,6 +86,7 @@
*****************/
#ifdef _WIN32
+#define HAS_DVD_DRIVE
#define HAS_SDL_JOYSTICK
#define HAS_WIN32_NETWORK
#define HAS_IRSERVERSUITE
--
1.6.6.1
|