comparison configure.in @ 281:c5010ab8ba35

Added initial support for Atari (thanks Patrice!)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 17 Feb 2002 19:54:28 +0000
parents 04351f59b051
children 3ea69fd0b095
comparison
equal deleted inserted replaced
280:0ddcea45d829 281:c5010ab8ba35
907 VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la" 907 VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la"
908 fi 908 fi
909 fi 909 fi
910 } 910 }
911 911
912 dnl Set up the Atari Xbios driver
913 CheckAtariXbiosVideo()
914 {
915 AC_ARG_ENABLE(xbios,
916 [ --enable-video-xbios use Atari Xbios video driver [default=yes]],
917 , enable_video_xbios=yes)
918 video_xbios=no
919 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
920 video_xbios=yes
921 CFLAGS="$CFLAGS -DENABLE_XBIOS"
922 VIDEO_SUBDIRS="$VIDEO_SUBDIRS xbios"
923 VIDEO_DRIVERS="$VIDEO_DRIVERS xbios/libvideo_xbios.la"
924 fi
925 }
926
927 dnl Set up the Atari Gem driver
928 CheckAtariGemVideo()
929 {
930 AC_ARG_ENABLE(gem,
931 [ --enable-video-gem use Atari Gem video driver [default=yes]],
932 , enable_video_gem=yes)
933 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
934 video_gem=no
935 AC_CHECK_HEADER(gem.h, have_gem_hdr=yes)
936 AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes)
937 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
938 video_gem=yes
939 CFLAGS="$CFLAGS -DENABLE_GEM"
940 SYSTEM_LIBS="$SYSTEM_LIBS -lgem"
941 VIDEO_SUBDIRS="$VIDEO_SUBDIRS gem"
942 VIDEO_DRIVERS="$VIDEO_DRIVERS gem/libvideo_gem.la"
943 fi
944 fi
945 }
946
947 dnl Set up the Atari Bios keyboard driver
948 CheckAtariBiosEvent()
949 {
950 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/ataricommon"
951 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ataricommon"
952 VIDEO_DRIVERS="$VIDEO_DRIVERS ataricommon/libvideo_ataricommon.la"
953 }
954
912 dnl rcg04172001 Set up the Null video driver. 955 dnl rcg04172001 Set up the Null video driver.
913 CheckDummyVideo() 956 CheckDummyVideo()
914 { 957 {
915 AC_ARG_ENABLE(video-dummy, 958 AC_ARG_ENABLE(video-dummy,
916 [ --enable-video-dummy use dummy video driver [default=yes]], 959 [ --enable-video-dummy use dummy video driver [default=yes]],
2163 fi 2206 fi
2164 # The MacOS X platform requires special setup 2207 # The MacOS X platform requires special setup
2165 SDL_CFLAGS="$SDL_CFLAGS -F/System/Library/Frameworks/Carbon.framework -F/System/Library/Frameworks/Cocoa.framework" 2208 SDL_CFLAGS="$SDL_CFLAGS -F/System/Library/Frameworks/Carbon.framework -F/System/Library/Frameworks/Cocoa.framework"
2166 SDL_LIBS="-lSDLmain $SDL_LIBS -framework Carbon -framework Cocoa" 2209 SDL_LIBS="-lSDLmain $SDL_LIBS -framework Carbon -framework Cocoa"
2167 ;; 2210 ;;
2211 *-*-mint*)
2212 ARCH=mint
2213 CheckDummyVideo
2214 CheckDiskAudio
2215 CheckAtariBiosEvent
2216 CheckAtariXbiosVideo
2217 CheckAtariGemVideo
2218 CheckPTH
2219 # Set up files for the main() stub
2220 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
2221 # Set up files for the audio library
2222 if test x$enable_audio = xyes; then
2223 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
2224 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
2225 fi
2226 # Set up files for the joystick library
2227 # (No joystick support yet)
2228 if test x$enable_joystick = xyes; then
2229 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
2230 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
2231 fi
2232 # Set up files for the cdrom library
2233 if test x$enable_cdrom = xyes; then
2234 CDROM_SUBDIRS="$CDROM_SUBDIRS dummy"
2235 CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la"
2236 fi
2237 # Set up files for the thread library
2238 if test x$enable_threads = xyes; then
2239 if test x$enable_pth = xyes; then
2240 COPY_ARCH_SRC(src/thread, pth, SDL_systhread.c)
2241 COPY_ARCH_SRC(src/thread, pth, SDL_systhread_c.h)
2242 else
2243 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c)
2244 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h)
2245 fi
2246 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
2247 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
2248 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
2249 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
2250 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
2251 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
2252 fi
2253 # Set up files for the timer library
2254 if test x$enable_timers = xyes; then
2255 COPY_ARCH_SRC(src/timer, mint, SDL_systimer.c)
2256 COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer.S)
2257 COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer_s.h)
2258 fi
2259 # MiNT does not define "unix"
2260 CFLAGS="$CFLAGS -Dunix"
2261 ;;
2168 *) 2262 *)
2169 AC_MSG_ERROR(Unsupported target: Please add to configure.in) 2263 AC_MSG_ERROR(Unsupported target: Please add to configure.in)
2170 ;; 2264 ;;
2171 esac 2265 esac
2172 AC_SUBST(ARCH) 2266 AC_SUBST(ARCH)
2183 AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32) 2277 AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32)
2184 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos) 2278 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
2185 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos) 2279 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
2186 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx) 2280 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
2187 AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx) 2281 AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)
2282 AM_CONDITIONAL(TARGET_MINT, test $ARCH = mint)
2188 2283
2189 # Set conditional variables for shared and static library selection. 2284 # Set conditional variables for shared and static library selection.
2190 # These are not used in any Makefile.am but in sdl-config.in. 2285 # These are not used in any Makefile.am but in sdl-config.in.
2191 AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" = yes]) 2286 AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" = yes])
2192 AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes]) 2287 AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes])
2316 src/video/windx5/Makefile 2411 src/video/windx5/Makefile
2317 src/video/bwindow/Makefile 2412 src/video/bwindow/Makefile
2318 src/video/photon/Makefile 2413 src/video/photon/Makefile
2319 src/video/epoc/Makefile 2414 src/video/epoc/Makefile
2320 src/video/dummy/Makefile 2415 src/video/dummy/Makefile
2416 src/video/ataricommon/Makefile
2417 src/video/xbios/Makefile
2418 src/video/gem/Makefile
2321 src/events/Makefile 2419 src/events/Makefile
2322 src/joystick/Makefile 2420 src/joystick/Makefile
2323 src/joystick/amigaos/Makefile 2421 src/joystick/amigaos/Makefile
2324 src/joystick/beos/Makefile 2422 src/joystick/beos/Makefile
2423 src/joystick/bsd/Makefile
2325 src/joystick/darwin/Makefile 2424 src/joystick/darwin/Makefile
2326 src/joystick/dummy/Makefile 2425 src/joystick/dummy/Makefile
2327 src/joystick/linux/Makefile 2426 src/joystick/linux/Makefile
2328 src/joystick/macos/Makefile 2427 src/joystick/macos/Makefile
2329 src/joystick/win32/Makefile 2428 src/joystick/win32/Makefile