Add AmigaOS support, patch by Andrea Palmatè, andrea amigasoft net.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22616 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-03-15 17:06:28 +00:00
parent b24be2fd83
commit c50a336acf
1 changed files with 16 additions and 1 deletions

17
configure vendored
View File

@ -115,6 +115,7 @@ darwin() { issystem "Darwin" ; return "$?" ; }
gnu() { issystem "GNU" ; return "$?" ; }
mingw32() { issystem "MINGW32" ; return "$?" ; }
morphos() { issystem "MorphOS" ; return "$?" ; }
amigaos() { issystem "AmigaOS" ; return "$?" ; }
win32() { cygwin || mingw32 ; return "$?" ; }
beos() { issystem "BEOS" ; return "$?" ; }
@ -1147,7 +1148,7 @@ if test -z "$_target" ; then
# 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)
Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX|AmigaOS)
;;
IRIX*)
system_name=IRIX
@ -1222,6 +1223,7 @@ else # if test -z "$_target"
sunos) system_name=SunOS ;;
qnx) system_name=QNX ;;
morphos) system_name=MorphOS ;;
amigaos) system_name=AmigaOS ;;
mingw32msvc) system_name=MINGW32 ;;
esac
# We need to convert underscores so that values like k6-2 and pentium-mmx can be passed
@ -1293,6 +1295,13 @@ if mingw32 ; then
_def_stream_cache="#undef USE_STREAM_CACHE"
fi
if amigaos ; then
_select=no
_sighandler=no
_stream_cache=no
_def_stream_cache="#undef USE_STREAM_CACHE"
fi
# Check how to call 'head' and 'tail'. Newer versions spit out warnings
# if used as 'head -1' instead of 'head -n 1', but older versions don't
# know about '-n'.
@ -7166,6 +7175,9 @@ if darwin ; then
# libavcodec (from ffmpeg) requires CONFIG_DARWIN to enable AltiVec on Darwin/MacOSX
test "$_altivec" = yes && CFLAGS="$CFLAGS -DCONFIG_DARWIN"
fi
if amigaos ; then
CFLAGS="$CFLAGS -DNEWLIB -D__USE_INLINE__ -DSYS_AMIGAOS4"
fi
if hpux ; then
# use flag for HPUX missing setenv()
CFLAGS="$CFLAGS -DHPUX"
@ -8133,6 +8145,9 @@ $_def_vcd
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#define DEFAULT_CDROM_DEVICE "/dev/acd0"
#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
#elif defined(SYS_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"