changeset 22598:f39115ea61bb

Add AmigaOS support, patch by Andrea Palmat, andrea amigasoft net.
author diego
date Thu, 15 Mar 2007 17:06:28 +0000
parents f826f57be4b4
children 4faee1254928
files configure
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Mar 15 16:49:59 2007 +0000
+++ b/configure	Thu Mar 15 17:06:28 2007 +0000
@@ -115,6 +115,7 @@
 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 @@
   # 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 @@
     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 @@
   _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 @@
   # 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 @@
 #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"