THRIFT-528. perl: add PERL_PREFIX to configure.ac

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@953796 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2010-06-11 17:57:32 +00:00
parent b7887b860b
commit c07057e49f
2 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,12 @@ AC_ARG_VAR([PHP_PREFIX], [Prefix for installing PHP modules.
Default = "/usr/lib/php"]) Default = "/usr/lib/php"])
AS_IF([test "x$PHP_PREFIX" = x], [PHP_PREFIX="/usr/lib/php"]) AS_IF([test "x$PHP_PREFIX" = x], [PHP_PREFIX="/usr/lib/php"])
AC_ARG_VAR([PERL_PREFIX], [Prefix for installing Perl modules.
(Normal --prefix is ignored for Perl because
Perl has different conventions.)
Default = "/usr/local/lib"])
AS_IF([test "x$PERL_PREFIX" = x], [PERL_PREFIX="/usr/local"])
AC_PROG_CC AC_PROG_CC
AC_PROG_CPP AC_PROG_CPP
AC_PROG_CXX AC_PROG_CXX

View File

@ -20,7 +20,7 @@
SUBDIRS = test SUBDIRS = test
Makefile-perl.mk : Makefile.PL Makefile-perl.mk : Makefile.PL
$(PERL) Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS=$(INSTALLDIRS) $(PERL) Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS=$(INSTALLDIRS) INSTALL_BASE=$(PERL_PREFIX)
all-local: Makefile-perl.mk all-local: Makefile-perl.mk
$(MAKE) -f Makefile-perl.mk $(MAKE) -f Makefile-perl.mk