summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure30
-rw-r--r--stream/stream.h26
2 files changed, 30 insertions, 26 deletions
diff --git a/configure b/configure
index bbd26dc69d..1674447fb5 100755
--- a/configure
+++ b/configure
@@ -5372,6 +5372,34 @@ echores "$_sgiaudio"
fi #if irix
+# set default CD/DVD devices
+if win32 || os2 ; then
+ default_cdrom_device="D:"
+elif darwin ; then
+ default_cdrom_device="/dev/disk1"
+elif dragonfly ; then
+ default_cdrom_device="/dev/cd0"
+elif freebsd ; then
+ default_cdrom_device="/dev/acd0"
+elif openbsd ; then
+ default_cdrom_device="/dev/rcd0a"
+elif sunos ; then
+ default_cdrom_device="/vol/dev/aliases/cdrom0"
+elif amigaos ; then
+ default_cdrom_device="a1ide.device:2"
+else
+ default_cdrom_device="/dev/cdrom"
+fi
+
+if win32 || os2 || dragonfly || freebsd || openbsd || sunos || amigaos ; then
+ default_dvd_device=$default_cdrom_device
+elif darwin ; then
+ default_dvd_device="/dev/rdiskN"
+else
+ default_dvd_device="/dev/dvd"
+fi
+
+
echocheck "VCD support"
if linux || freebsd || netbsd || dragonfly || bsdos || darwin || sunos || mingw32; then
_inputmodules="vcd $_inputmodules"
@@ -8127,6 +8155,8 @@ $_def_words_endian
/* DVD/VCD/CD */
+#define DEFAULT_CDROM_DEVICE "$default_cdrom_device"
+#define DEFAULT_DVD_DEVICE "$default_dvd_device"
$_def_bsdi_dvd
$_def_cddb
$_def_cdio
diff --git a/stream/stream.h b/stream/stream.h
index 4eab9b5d85..686288071f 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -65,32 +65,6 @@
#define STREAM_CTRL_GET_ANGLE 10
#define STREAM_CTRL_SET_ANGLE 11
-#ifdef __sun
-#define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0"
-#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
-#elif defined(__MINGW32__) || defined(__CYGWIN__) || defined(__OS2__)
-#define DEFAULT_CDROM_DEVICE "D:"
-#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
-#elif defined(__APPLE__) || defined(__DARWIN__)
-#define DEFAULT_CDROM_DEVICE "/dev/disk1"
-#define DEFAULT_DVD_DEVICE "/dev/rdiskN"
-#elif defined(__OpenBSD__)
-#define DEFAULT_CDROM_DEVICE "/dev/rcd0a"
-#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#define DEFAULT_CDROM_DEVICE "/dev/acd0"
-#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
-#elif defined(__DragonFly__)
-#define DEFAULT_CDROM_DEVICE "/dev/cd0"
-#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
-#elif defined(__AMIGAOS4__)
-#define DEFAULT_CDROM_DEVICE "a1ide.device:2"
-#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
-#else
-#define DEFAULT_CDROM_DEVICE "/dev/cdrom"
-#define DEFAULT_DVD_DEVICE "/dev/dvd"
-#endif
-
#ifdef CONFIG_NETWORK
#include "network.h"