dnl $Header: //guest/jon_parise/api/php/config.m4#8 $ dnl vim: expandtab PHP_ARG_WITH(perforce, whether to enable Perforce client functions, [ --with-perforce[=DIR] Enable support for Perforce client functions]) if test "$PHP_PERFORCE" != "no"; then if test -r $PHP_PERFORCE/; then SEARCH_PATH=$PHP_PERFORCE else # search default path list SEARCH_PATH="/usr/local /usr" fi AC_MSG_CHECKING(for Perforce API files) SEARCH_FOR="/include/p4/clientapi.h" for i in $SEARCH_PATH ; do if test -r $i/$SEARCH_FOR; then P4API_DIR=$i AC_MSG_RESULT(found in $i) fi done if test -z "$P4API_DIR"; then AC_MSG_RESULT(not found) AC_MSG_ERROR(Please specify the path to the Perforce client API) fi AC_DEFINE(HAVE_PERFORCE,1,[ ]) PHP_SUBST(PERFORCE_SHARED_LIBADD) PHP_ADD_LIBRARY_WITH_PATH("supp", $P4API_DIR/lib, PERFORCE_SHARED_LIBADD) PHP_ADD_LIBRARY_WITH_PATH("rpc", $P4API_DIR/lib, PERFORCE_SHARED_LIBADD) PHP_ADD_LIBRARY_WITH_PATH("client", $P4API_DIR/lib, PERFORCE_SHARED_LIBADD) PHP_ADD_INCLUDE($P4API_DIR/include/p4) PHP_NEW_EXTENSION(perforce, perforce.cpp, $ext_shared,,, yes) PHP_REQUIRE_CXX fi
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#8 | 6131 | Jon_Parise |
Added the P4API path as a build-time configuration option and improved the Unix build's P4API path detection code. |
||
#7 | 6126 | Jon_Parise | Correcting the C++ linkage when building the extension as a shared module. | ||
#6 | 6083 | Jon_Parise | Search both /usr and /usr/local hierarchies for the Perforce API. | ||
#5 | 6055 | Jon_Parise | Updating to work with the Perforce 2007.2 API. | ||
#4 | 4324 | Jon_Parise |
Adding Win32 support. This includes the addition of a config.w32 Win32 build file, a handful of ZTS fixes, the extraction of the PHPClientUser class (and its p4api header dependency) to a separate header file, and the removal of the p4api_version.h auto-generated file (which may return should I figure out how to generate it using JScript). |
||
#3 | 4293 | Jon_Parise | Use $Header$ keywords instead of $Id$. | ||
#2 | 4292 | Jon_Parise |
Changing these files to the 'ktext' filetype so that the RCS keywords will be expanded. |
||
#1 | 4291 | Jon_Parise | Initial version of the Perforce extension for PHP. |