]> granicus.if.org Git - php/commitdiff
Improve the Darwin 9 hack considerably and switch to using dl*() instead of NS*(...
authorFelipe Pena <felipe@php.net>
Mon, 10 Mar 2008 15:06:04 +0000 (15:06 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 10 Mar 2008 15:06:04 +0000 (15:06 +0000)
Zend/Zend.m4

index 8f34bdfb09a1b35413783e3fff319cfbd5ecd07d..dd1bbc3386ad7daaf7b10c6558071a4478951bca 100644 (file)
@@ -61,9 +61,20 @@ sys/time.h \
 signal.h \
 unix.h \
 stdlib.h \
-mach-o/dyld.h \
 dlfcn.h)
 
+dnl Don't use mach-o/dyld.h on Darwin 8+, dl* is recommended by Apple from there on
+dnl See http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html
+case $host_alias in
+*darwin[[89]]*)
+    ;;
+*)
+    AC_CHECK_HEADERS([  \
+mach-o/dyld.h
+],[],[][])
+    ;;
+esac
+
 AC_TYPE_SIZE_T
 AC_TYPE_SIGNAL