diff configure.in @ 955:d74fbf56f2f6

Date: Fri, 25 Jun 2004 13:29:15 +0100 From: "alan buckley" Subject: Modification for RISC OS version of SDL Ive attached a zip file with the changes to this email, it contains the following: The file sdldiff.txt is the output from cvs diff u. . The directory thread/riscos contains all the new files to support threading. Readme.riscos is a new readme file to add.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 17 Sep 2004 13:20:10 +0000
parents ac488ad4ef1d
children 795ac5fbe260
line wrap: on
line diff
--- a/configure.in	Sat Sep 11 18:00:41 2004 +0000
+++ b/configure.in	Fri Sep 17 13:20:10 2004 +0000
@@ -2605,20 +2605,45 @@
         ;;
     *-*-riscos)
         ARCH=riscos
-        JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos"
-        JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la"
-        COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c)
-        VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos"
-        VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la"
-        AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos"
-        AUDIO_DRIVERS="$AUDIO_DRIVERS riscos/libaudio_riscos.la"
-
+        # Set up files for the video library
+        if test x$enable_video = xyes; then
+            VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos"
+            VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la"
+        fi
+        # Set up files for the audio library
+        if test x$enable_audio = xyes; then
+            AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos"
+            AUDIO_DRIVERS="$AUDIO_DRIVERS riscos/libaudio_riscos.la"
+        fi
+        # Set up files for the joystick library
+        if test x$enable_joystick = xyes; then
+            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos"
+            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la"
+        fi
+        # Set up files for the cdrom library
         if test x$enable_cdrom = xyes; then
             CDROM_SUBDIRS="$CDROM_SUBDIRS dummy"
             CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la"
         fi
+        # Set up files for the thread library
+        if test x$enable_threads = xyes; then
+            COPY_ARCH_SRC(src/thread, riscos, SDL_systhread.c)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_systhread_c.h)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_sysmutex.c)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_sysmutex_c.h)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_syssem.c)
+            COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_syscond.c)
+            COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
+        else
+            CFLAGS="$CFLAGS -DDISABLE_THREADS"
+        fi
+        # Set up files for the timer library
+        if test x$enable_timers = xyes; then
+            COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c)
+        fi
 
-        CFLAGS="$CFLAGS -DDISABLE_THREADS -DENABLE_RISCOS -DDRENDERER_SUPPORT"
+        CFLAGS="$CFLAGS -DENABLE_RISCOS -DDRENDERER_SUPPORT"
 
         SYSTEM_LIBS="$SYSTEM_LIBS -ljpeg -ltiff -lpng -lz"
         ;;