summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeng Zhengrong <dzrongg@gmail.com>2012-07-19 16:41:31 +0800
committerColin Guthrie <colin@mageia.org>2012-11-04 10:07:31 +0100
commit7ce7464c169444ae2710b2fc2300ad3eef3b6c9d (patch)
treeff2f476ef77b6d30fc37343dbcb3fb0c0478a18e
parent153e17e3bb4d73ddecbf0fe5df5cca5188698c32 (diff)
build: fix Mac OS X configure process
The original header file doesn't exist on Lion (10.7.4).
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5c70632a..b63b0d28 100644
--- a/configure.ac
+++ b/configure.ac
@@ -500,7 +500,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])