Created
October 13, 2014 13:11
-
-
Save y-uti/69e0b17f916fb5a25df4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- phpenv-global- 2014-10-13 16:22:28.540097442 +0900 | |
+++ phpenv-global 2014-10-13 18:05:08.943905016 +0900 | |
@@ -44,6 +44,9 @@ | |
# Link Apache apxs lib | |
APXS="" | |
+if [ "${PHPENV_VERSION}" == "system" ]; then | |
+ APXS="$(which apxs 2>/dev/null)" | |
+fi | |
php-config --configure-options 2>/dev/null | grep -q apxs && \ | |
APXS="$(php-config --configure-options| sed 's/.*=\(.*apxs[^ ]*\) .*/\1/')" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment