From 4ebf53ffdfcba05c313e8d7b3cde125c2d64af8a Mon Sep 17 00:00:00 2001 From: Patrik Weiskircher Date: Sun, 6 Sep 2009 17:42:50 +0200 Subject: configure.ac: use /Developer/SDKs/MacOSX10.5.sdk First, this is not a nice fix. I am also not sure why the error happens in the first place. I assume Apple deprecated some stuff in 10.6 + x86_64. My patch simply uses the 10.5 SDK if compiling on 10.6 Snow Leopard - which is installed by default if you install XCode 3.2 that comes with Snow Leopard. The reason this is not a nice fix is, of course, that this doesn't fix the problem. It just "postpones" it to the next release of MacOS X. But, some people may need it, and its better than nothing. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b74fbf9b0..d30e89229 100644 --- a/configure.ac +++ b/configure.ac @@ -748,6 +748,12 @@ case "$host_os" in enable_osx=yes ;; esac +case "$host_os" in + darwin10*) + CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk" + ;; +esac + AM_CONDITIONAL(HAVE_OSX, test x$enable_osx = xyes) AC_ARG_ENABLE(shout, -- cgit v1.2.3