Patch acinclude-macos for *Compile Issues Bug #76403
Patch version 2018-07-20 00:57 UTC
Return to Bug #76403 |
Download this patch
Patch Revisions:
Developer: kevin.abel.0@gmail.com
diff --git a/acinclude.m4 b/acinclude.m4
index 1a692b72f4..ec104c2ccc 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -444,7 +444,11 @@ dnl
dnl Adds a path to linkpath/runpath (LDFLAGS)
dnl
AC_DEFUN([PHP_ADD_LIBPATH],[
- if test "$1" != "/usr/$PHP_LIBDIR" && test "$1" != "/usr/lib"; then
+ case "$1" in
+ "/usr/$PHP_LIBDIR"|"/usr/lib"[)] ;;
+ /Library/Developer/CommandLineTools/SDKs/*/usr/lib[)] ;;
+ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/*/usr/lib[)] ;;
+ *[)]
PHP_EXPAND_PATH($1, ai_p)
ifelse([$2],,[
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
@@ -455,8 +459,8 @@ AC_DEFUN([PHP_ADD_LIBPATH],[
else
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
fi
- ])
- fi
+ ]) ;;
+ esac
])
dnl
|