Fixed building new coreaudio driver on Mac OS X
authorSam Lantinga <slouken@libsdl.org>
Thu, 15 Sep 2016 08:29:20 -0700
changeset 10347221061d874e9
parent 10346 53f48bdf161f
child 10348 58e8745fb4e1
Fixed building new coreaudio driver on Mac OS X
configure
configure.in
     1.1 --- a/configure	Thu Sep 15 19:59:57 2016 -0300
     1.2 +++ b/configure	Thu Sep 15 08:29:20 2016 -0700
     1.3 @@ -23453,7 +23453,7 @@
     1.4  
     1.5          # Set up files for the audio library
     1.6          if test x$enable_audio = xyes; then
     1.7 -            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
     1.8 +            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
     1.9              SUMMARY_audio="${SUMMARY_audio} coreaudio"
    1.10              have_audio=yes
    1.11          fi
    1.12 @@ -23528,9 +23528,10 @@
    1.13  
    1.14  $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
    1.15  
    1.16 -            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
    1.17 +            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
    1.18              SUMMARY_audio="${SUMMARY_audio} coreaudio"
    1.19              have_audio=yes
    1.20 +            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
    1.21          fi
    1.22          # Set up files for the joystick library
    1.23          if test x$enable_joystick = xyes; then
     2.1 --- a/configure.in	Thu Sep 15 19:59:57 2016 -0300
     2.2 +++ b/configure.in	Thu Sep 15 08:29:20 2016 -0700
     2.3 @@ -3242,7 +3242,7 @@
     2.4  
     2.5          # Set up files for the audio library
     2.6          if test x$enable_audio = xyes; then
     2.7 -            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
     2.8 +            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
     2.9              SUMMARY_audio="${SUMMARY_audio} coreaudio"
    2.10              have_audio=yes
    2.11          fi
    2.12 @@ -3315,9 +3315,10 @@
    2.13          # Set up files for the audio library
    2.14          if test x$enable_audio = xyes; then
    2.15              AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
    2.16 -            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
    2.17 +            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
    2.18              SUMMARY_audio="${SUMMARY_audio} coreaudio"
    2.19              have_audio=yes
    2.20 +            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
    2.21          fi
    2.22          # Set up files for the joystick library
    2.23          if test x$enable_joystick = xyes; then