Mercurial > mplayer.hg
changeset 33802:94292629886d
configure: select default CD-ROM device on Solaris according to OS version
This addresses Bugzilla bug #1499, patch by Pawel Tecza, ptecza uw.edu pl.
author | diego |
---|---|
date | Thu, 21 Jul 2011 22:25:17 +0000 |
parents | 5ebf5dc12543 |
children | 2a4a9659d154 |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Jul 21 22:25:08 2011 +0000 +++ b/configure Thu Jul 21 22:25:17 2011 +0000 @@ -5733,9 +5733,8 @@ default_cdrom_device="/dev/rcd0c" elif sunos ; then default_cdrom_device="/vol/dev/aliases/cdrom0" - # Modern Solaris versions use HAL instead of the vold daemon, the volfs - # file system and the volfs service. - test -r "/cdrom/cdrom0" && default_cdrom_device="/cdrom/cdrom0" + # Solaris 10 and newer use HAL instead of the vold daemon. + test $(uname -r | sed 's/^5\.//') -gt 10 && default_cdrom_device="/cdrom/cdrom0" elif amigaos ; then default_cdrom_device="a1ide.device:2" else