comparison configure.in @ 2713:0906692aa6a4

Final merge of Google Summer of Code 2008 work... Force Feedback for SDL by Edgar Simo, mentored by Ryan C. Gordon
author Sam Lantinga <slouken@libsdl.org>
date Mon, 25 Aug 2008 09:55:03 +0000
parents 44e49d3fa6cf
children 1d1be6137875
comparison
equal deleted inserted replaced
2712:c4e697245676 2713:0906692aa6a4
232 , enable_joystick=yes) 232 , enable_joystick=yes)
233 if test x$enable_joystick != xyes; then 233 if test x$enable_joystick != xyes; then
234 AC_DEFINE(SDL_JOYSTICK_DISABLED) 234 AC_DEFINE(SDL_JOYSTICK_DISABLED)
235 else 235 else
236 SOURCES="$SOURCES $srcdir/src/joystick/*.c" 236 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
237 fi
238 AC_ARG_ENABLE(haptic,
239 AC_HELP_STRING([--enable-haptic], [Enable the haptic (force feedback) subsystem [[default=yes]]]),
240 , enable_haptic=yes)
241 if test x$enable_haptic != xyes; then
242 AC_DEFINE(SDL_HAPTIC_DISABLED)
243 else
244 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
237 fi 245 fi
238 AC_ARG_ENABLE(cdrom, 246 AC_ARG_ENABLE(cdrom,
239 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]), 247 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]),
240 , enable_cdrom=yes) 248 , enable_cdrom=yes)
241 if test x$enable_cdrom != xyes; then 249 if test x$enable_cdrom != xyes; then
2177 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" 2185 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
2178 have_joystick=yes 2186 have_joystick=yes
2179 ;; 2187 ;;
2180 esac 2188 esac
2181 fi 2189 fi
2190 # Set up files for the haptic library
2191 if test x$enable_haptic = xyes; then
2192 if test x$use_input_events = xyes; then
2193 case $ARCH in
2194 linux)
2195 AC_DEFINE(SDL_HAPTIC_LINUX)
2196 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
2197 have_haptic=yes
2198 ;;
2199 esac
2200 fi
2201 fi
2182 # Set up files for the cdrom library 2202 # Set up files for the cdrom library
2183 if test x$enable_cdrom = xyes; then 2203 if test x$enable_cdrom = xyes; then
2184 case $ARCH in 2204 case $ARCH in
2185 linux|solaris) 2205 linux|solaris)
2186 AC_DEFINE(SDL_CDROM_LINUX) 2206 AC_DEFINE(SDL_CDROM_LINUX)
2314 AC_DEFINE(SDL_JOYSTICK_WINMM) 2334 AC_DEFINE(SDL_JOYSTICK_WINMM)
2315 SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c" 2335 SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c"
2316 fi 2336 fi
2317 have_joystick=yes 2337 have_joystick=yes
2318 fi 2338 fi
2339 if test x$enable_haptic = xyes; then
2340 if test x$have_dinput = xyes; then
2341 AC_DEFINE(SDL_HAPTIC_DINPUT)
2342 SOURCES="$SOURCES $srcdir/src/haptic/win32/SDL_syshaptic.c"
2343 have_haptic=yes
2344 fi
2345 fi
2319 # Set up files for the cdrom library 2346 # Set up files for the cdrom library
2320 if test x$enable_cdrom = xyes; then 2347 if test x$enable_cdrom = xyes; then
2321 AC_DEFINE(SDL_CDROM_WIN32) 2348 AC_DEFINE(SDL_CDROM_WIN32)
2322 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c" 2349 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
2323 have_cdrom=yes 2350 have_cdrom=yes
2455 if test x$enable_joystick = xyes; then 2482 if test x$enable_joystick = xyes; then
2456 AC_DEFINE(SDL_JOYSTICK_IOKIT) 2483 AC_DEFINE(SDL_JOYSTICK_IOKIT)
2457 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 2484 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
2458 have_joystick=yes 2485 have_joystick=yes
2459 fi 2486 fi
2487 # Set up files for the haptic library
2488 if test x$enable_haptic = xyes; then
2489 AC_DEFINE(SDL_HAPTIC_IOKIT)
2490 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
2491 have_haptic=yes
2492 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
2493 fi
2460 # Set up files for the cdrom library 2494 # Set up files for the cdrom library
2461 if test x$enable_cdrom = xyes; then 2495 if test x$enable_cdrom = xyes; then
2462 AC_DEFINE(SDL_CDROM_MACOSX) 2496 AC_DEFINE(SDL_CDROM_MACOSX)
2463 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c" 2497 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
2464 have_cdrom=yes 2498 have_cdrom=yes
2562 if test x$enable_joystick = xyes; then 2596 if test x$enable_joystick = xyes; then
2563 if test x$have_joystick != xyes; then 2597 if test x$have_joystick != xyes; then
2564 # Wants joystick subsystem, but doesn't have a platform-specific backend... 2598 # Wants joystick subsystem, but doesn't have a platform-specific backend...
2565 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 2599 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
2566 fi 2600 fi
2601 fi
2602 if test x$have_haptic != xyes; then
2603 if test x$enable_haptic = xyes; then
2604 AC_DEFINE(SDL_HAPTIC_DISABLED)
2605 fi
2606 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
2567 fi 2607 fi
2568 if test x$have_cdrom != xyes; then 2608 if test x$have_cdrom != xyes; then
2569 if test x$enable_cdrom = xyes; then 2609 if test x$enable_cdrom = xyes; then
2570 AC_DEFINE(SDL_CDROM_DISABLED) 2610 AC_DEFINE(SDL_CDROM_DISABLED)
2571 fi 2611 fi