]> Repos - portaudio/commitdiff
Add support for 10.11 SDK so PortAudio can compile on Mac.
authorphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 4 Jan 2016 17:22:00 +0000 (17:22 +0000)
committerphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 4 Jan 2016 17:22:00 +0000 (17:22 +0000)
Also allow deprecated APIs until we can remove them.

Note that this commit only includes the source files that were changed.
The next commit will include the files that are generated by autoreconf.
So look at this commit to see what really changed.

README.configure.txt
configure.in

index b964cd55249c82c0cb005c6bee84ccea795dfbe2..6417d65a447906395e660542af3b6ac7abcc4bf1 100644 (file)
@@ -1,16 +1,26 @@
 PortAudio uses "autoconf" tools to generate Makefiles for Linux and Mac platforms.
 The source for these are configure.in and Makefile.in
 If you modify either of these files then please run this command before
-testing and checking in your changes.
+testing and checking in your changes. I run this command on Linux.
 
    autoreconf -if
 
+If you do not have autoreconf then do:
+   sudo apt-get install autoconf
+
+If you get error like "possibly undefined macro: AC_LIBTOOL_WIN32_DLL"
+then you try installing some more packages and then try again.
+
+   sudo apt-get install build-essential
+   sudo apt-get install pkg-config
+   sudo apt-get install libtool
+   autoreconf -if
+
 Then test a build by doing:
    
    ./configure
    make clean
    make
-   sudo make install
 
 then check in the related files that are modified.
 These might include files like:
index 3f3b31ec19032cf972d9b89d205677dcd3f3459f..13816fb7a34eb9aea37050b86e3543aa0adc9282 100644 (file)
@@ -204,7 +204,7 @@ case "${host_os}" in
 
         AC_DEFINE(PA_USE_COREAUDIO,1)
 
-        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Werror"
+        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated -Werror"
         LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
 
         if test "x$enable_mac_universal" = "xyes" ; then
@@ -249,8 +249,17 @@ case "${host_os}" in
               elif xcodebuild -version -sdk macosx10.9 Path >/dev/null 2>&1 ; then
                  mac_version_min="-mmacosx-version-min=10.4"
                  mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.9 Path`"
+              elif xcodebuild -version -sdk macosx10.10 Path >/dev/null 2>&1 ; then
+                 mac_version_min="-mmacosx-version-min=10.4"
+                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.10 Path`"
+              elif xcodebuild -version -sdk macosx10.11 Path >/dev/null 2>&1 ; then
+                 mac_version_min="-mmacosx-version-min=10.4"
+                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.11 Path`"
+              elif xcodebuild -version -sdk macosx10.12 Path >/dev/null 2>&1 ; then
+                 mac_version_min="-mmacosx-version-min=10.4"
+                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.12 Path`"
               else
-                 AC_MSG_ERROR([Couldn't find 10.5, 10.6, 10.7, 10.8 or 10.9 SDK])
+                 AC_MSG_ERROR([Could not find 10.5 to 10.12 SDK.])
               fi
            esac