[PECL-CVS] [pecl-networking-ssh2] master: Fix #87 by adding homebrew path to search path

[email protected] (Rasmus Lerdorf) Sat, 4 Apr 2026 10:52:10 +0000
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Rasmus Lerdorf (rlerdorf)
Date: 2026-04-04T06:52:01-04:00

Commit: https://github.com/php/pecl-networking-ssh2/commit/1492ab654f5508f1c6792f1be63cfc29270eec11
Raw diff: https://github.com/php/pecl-networking-ssh2/commit/1492ab654f5508f1c6792f1be63cfc29270eec11.diff

Fix #87 by adding homebrew path to search path

Changed paths:
  M  config.m4


Diff:

diff --git a/config.m4 b/config.m4
index c6b5354..b2746e2 100644
--- a/config.m4
+++ b/config.m4
@@ -4,7 +4,7 @@ PHP_ARG_WITH(ssh2, for ssh2 support,
 [  --with-ssh2=[DIR]       Include ssh2 support])
 
 if test "$PHP_SSH2" != "no"; then
-  SEARCH_PATH="/usr/local /usr"
+  SEARCH_PATH="/usr/local /usr /opt/homebrew /opt/homebrew/opt/libssh2"
   SEARCH_FOR="/include/libssh2.h"
   if test -r $PHP_SSH2/$SEARCH_FOR; then # path given as parameter
     SSH2_DIR=$PHP_SSH2