[pulseaudio-discuss] [PATCH] build: fix Mac OS X configure process

Deng Zhengrong dzrongg at gmail.com
Thu Jul 19 01:41:31 PDT 2012


The original header file doesn't exist on Lion (10.7.4).
---
 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0290fa0..e600fba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -473,7 +473,10 @@ if test "x$os_is_darwin" = "x1" ; then
     # How do I check a framework "library" - AC_CHECK_LIB prob. won't work??, just assign LIBS & hope
     AC_CHECK_HEADER([/Developer/Headers/FlatCarbon/CoreServices.h],
         [LIBS="$LIBS -framework CoreServices"],
-        [AC_MSG_ERROR([CoreServices.h header file not found])]
+        [AC_CHECK_HEADERS([/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h],
+            [LIBS="$LIBS -framework CoreServices"],
+            [AC_MSG_ERROR([CoreServices.h header file not found])]
+        )]
     )
 
     AC_MSG_RESULT([ok])
-- 
1.7.7.6



More information about the pulseaudio-discuss mailing list