Mercurial > mplayer.hg
changeset 26248:83e813ecc187
support for DragonFly BSD, patch by Hasso Tepper, hasso estpak ee
author | diego |
---|---|
date | Thu, 27 Mar 2008 02:04:03 +0000 |
parents | 5ae0c6ec14e9 |
children | ce200b2becc6 |
files | configure |
diffstat | 1 files changed, 17 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Mar 27 01:56:37 2008 +0000 +++ b/configure Thu Mar 27 02:04:03 2008 +0000 @@ -107,6 +107,7 @@ netbsd() { issystem "NetBSD" ; return "$?" ; } bsdos() { issystem "BSD/OS" ; return "$?" ; } openbsd() { issystem "OpenBSD" ; return "$?" ; } +dragonfly() { issystem "DragonFly" ; return "$?" ; } qnx() { issystem "QNX" ; return "$?" ; } darwin() { issystem "Darwin" ; return "$?" ; } gnu() { issystem "GNU" ; return "$?" ; } @@ -1211,7 +1212,7 @@ # OS name system_name=`uname -s 2>&1` case "$system_name" in - Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX|AmigaOS) + Linux|FreeBSD|NetBSD|OpenBSD|DragonFly|BSD/OS|Darwin|SunOS|QNX|GNU|BeOS|MorphOS|AIX|AmigaOS) ;; IRIX*) system_name=IRIX @@ -1288,6 +1289,7 @@ netbsd) system_name=NetBSD ;; bsd/os) system_name=BSD/OS ;; openbsd) system_name=OpenBSD ;; + dragonfly) system_name=DragonFly ;; sunos) system_name=SunOS ;; qnx) system_name=QNX ;; morphos) system_name=MorphOS ;; @@ -1314,6 +1316,11 @@ _inc_extra="$_inc_extra -I/usr/local/include" fi +if netbsd || dragonfly ; then + _ld_extra="$_ld_extra -L/usr/pkg/lib" + _inc_extra="$_inc_extra -I/usr/pkg/include" +fi + if darwin; then _ld_extra="$_ld_extra -L/usr/local/lib" _inc_extra="$_inc_extra -I/usr/local/include" @@ -2983,7 +2990,7 @@ _def_malloc='#undef HAVE_MALLOC_H' fi # malloc.h emits a warning in FreeBSD and OpenBSD -freebsd || openbsd && _def_malloc='#undef HAVE_MALLOC_H' +freebsd || openbsd || dragonfly && _def_malloc='#undef HAVE_MALLOC_H' echores "$_malloc" @@ -4270,7 +4277,7 @@ _vidix_drv_unichrome=no if test "$_vidix_internal" = auto ; then _vidix_internal=no - x86 && (linux || freebsd || netbsd || openbsd || sunos || win32) \ + x86 && (linux || freebsd || netbsd || openbsd || dragonfly || sunos || win32) \ && _vidix_internal=yes (ppc || alpha) && linux && _vidix_internal=yes fi @@ -5388,7 +5395,7 @@ echocheck "VCD support" -if linux || bsdos || freebsd || netbsd || sunos || darwin || mingw32; then +if linux || freebsd || netbsd || dragonfly || bsdos || darwin || sunos || mingw32; then _inputmodules="vcd $_inputmodules" _def_vcd='#define HAVE_VCD 1' _vcd="yes" @@ -5405,7 +5412,7 @@ echocheck "dvdread" if test "$_dvdread_internal" = auto ; then _dvdread_internal=no - if (linux || freebsd || netbsd || darwin || openbsd || win32 || sunos || hpux) && \ + if (linux || freebsd || netbsd || openbsd || dragonfly || darwin || win32 || sunos || hpux) && \ (test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || \ test "$_dvdio" = yes || test "$_bsdi_dvd" = yes); then _dvdread_internal=yes @@ -5457,7 +5464,7 @@ if linux || netbsd || openbsd || bsdos ; then _def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1' openbsd && _dev_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' - elif freebsd ; then + elif freebsd || dragonfly ; then _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' elif darwin ; then _def_dvd_darwin='#define DARWIN_DVD_IOCTL' @@ -6266,7 +6273,7 @@ _real=no _res_comment="dynamic loader support needed" if test "$_dl" = yes || test "$_win32dll" = yes && - (linux || freebsd || netbsd || win32 || darwin) ; then + (linux || freebsd || netbsd || dragonfly || darwin || win32) ; then _real=yes fi fi @@ -8393,6 +8400,9 @@ #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