diff configure.in @ 2545:0e63e7e4a986 gsoc2008_force_feedback

Allow haptic subsystem to build on mac.
author Edgar Simo <bobbens@gmail.com>
date Tue, 22 Jul 2008 10:58:27 +0000
parents 3b54b3a97046
children d551e29f086b
line wrap: on
line diff
--- a/configure.in	Tue Jul 22 10:51:24 2008 +0000
+++ b/configure.in	Tue Jul 22 10:58:27 2008 +0000
@@ -2472,6 +2472,13 @@
             SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
             have_joystick=yes
         fi
+        # Set up files for the haptic library
+        if test x$enable_haptic = xyes; then
+            AC_DEFINE(SDL_HAPTIC_IOKIT)
+            SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
+            have_haptic=yes
+            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
+        fi
         # Set up files for the cdrom library
         if test x$enable_cdrom = xyes; then
             AC_DEFINE(SDL_CDROM_MACOSX)