mirror of
https://github.com/php/pecl-networking-ssh2.git
synced 2026-03-23 22:52:06 +01:00
The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifes handling of $Id$ keywords by removing them since they are not used anymore.
60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
dnl config.m4 for extension ssh2
|
|
|
|
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_FOR="/include/libssh2.h"
|
|
if test -r $PHP_SSH2/$SEARCH_FOR; then # path given as parameter
|
|
SSH2_DIR=$PHP_SSH2
|
|
else
|
|
AC_MSG_CHECKING([for ssh2 files in default path])
|
|
for i in $SEARCH_PATH ; do
|
|
if test -r $i/$SEARCH_FOR; then
|
|
SSH2_DIR=$i
|
|
AC_MSG_RESULT(found in $i)
|
|
fi
|
|
done
|
|
fi
|
|
|
|
if test -z "$SSH2_DIR"; then
|
|
AC_MSG_RESULT([not found])
|
|
AC_MSG_ERROR([The required libssh2 library was not found. You can obtain that package from http://sourceforge.net/projects/libssh2/])
|
|
fi
|
|
|
|
PHP_ADD_INCLUDE($SSH2_DIR/include)
|
|
|
|
PHP_CHECK_LIBRARY(ssh2,libssh2_session_hostkey,
|
|
[
|
|
PHP_ADD_LIBRARY_WITH_PATH(ssh2, $SSH2_DIR/lib, SSH2_SHARED_LIBADD)
|
|
AC_DEFINE(HAVE_SSH2LIB,1,[Have libssh2])
|
|
],[
|
|
AC_MSG_ERROR([libssh2 version >= 1.2 not found])
|
|
],[
|
|
-L$SSH2_DIR/lib -lm
|
|
])
|
|
|
|
PHP_CHECK_LIBRARY(ssh2,libssh2_agent_init,
|
|
[
|
|
AC_DEFINE(PHP_SSH2_AGENT_AUTH, 1, [Have libssh2 with ssh-agent support])
|
|
],[
|
|
AC_MSG_WARN([libssh2 <= 1.2.3, ssh-agent subsystem support not enabled])
|
|
],[
|
|
-L$SSH2_DIR/lib -lm
|
|
])
|
|
|
|
PHP_CHECK_LIBRARY(ssh2,libssh2_session_set_timeout,
|
|
[
|
|
AC_DEFINE(PHP_SSH2_SESSION_TIMEOUT, 1, [Have libssh2 with session timeout support])
|
|
],[
|
|
AC_MSG_WARN([libssh2 < 1.2.9, session timeout support not enabled])
|
|
],[
|
|
-L$SSH2_DIR/lib -lm
|
|
])
|
|
|
|
PHP_SUBST(SSH2_SHARED_LIBADD)
|
|
|
|
PHP_NEW_EXTENSION(ssh2, ssh2.c ssh2_fopen_wrappers.c ssh2_sftp.c, $ext_shared)
|
|
fi
|