THRIFT-647. php: PHP library is missing install target
This patch adds a 'make install' target to a new PHP makefile.
Patch: Anthony Molinaro
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940325 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index 4071205..205cd13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,12 @@
Default = "/usr/local/lib"])
AS_IF([test "x$JAVA_PREFIX" = x], [JAVA_PREFIX="/usr/local/lib"])
+AC_ARG_VAR([PHP_PREFIX], [Prefix for installing PHP modules.
+ (Normal --prefix is ignored for PHP because
+ PHP has different conventions.)
+ Default = "/usr/lib/php"])
+AS_IF([test "x$PHP_PREFIX" = x], [PHP_PREFIX="/usr/lib/php"])
+
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
@@ -103,6 +109,12 @@
fi
AM_CONDITIONAL(WITH_PERL, [test -n "$PERL"])
+AX_THRIFT_LIB(php, [PHP], yes)
+if test "$with_php" = "yes"; then
+ AC_PATH_PROG([PHP], [php])
+fi
+AM_CONDITIONAL(WITH_PHP, [test -n "$PHP"])
+
AX_THRIFT_LIB(ruby, [Ruby], yes)
if test "$with_ruby" = "yes"; then
AC_PATH_PROG([RUBY], [ruby])
@@ -250,6 +262,7 @@
lib/java/Makefile
lib/perl/Makefile
lib/perl/test/Makefile
+ lib/php/Makefile
lib/py/Makefile
lib/rb/Makefile
test/Makefile