Skip to content

Instantly share code, notes, and snippets.

@y-uti
Created October 13, 2014 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y-uti/69e0b17f916fb5a25df4 to your computer and use it in GitHub Desktop.
Save y-uti/69e0b17f916fb5a25df4 to your computer and use it in GitHub Desktop.
--- 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