Thrift-1104: INSTALLDIRS should be included in configure script
Client: perl, build process
Patch: Dmitriy Kargapolov

Adds INSTALLDIRS to configure to be able to specify a specific install location for perl since it does not use --prefix.




git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1099799 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index 82318ad..faffa55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,9 +56,16 @@
            Default = "/etc/php.d"])
 AS_IF([test "x$PHP_CONFIG_PREFIX" = x], [PHP_CONFIG_PREFIX="/etc/php.d"])
 
+AC_ARG_VAR([INSTALLDIRS], [When installing Perl modules, specifies which
+                           of the sets of installation directories
+                           to choose: perl, site or vendor.
+                           Default = "vendor"])
+AS_IF([test "x$INSTALLDIRS" = x], [INSTALLDIRS="vendor"])
+
 AC_ARG_VAR([PERL_PREFIX], [Prefix for installing Perl modules.
                            (Normal --prefix is ignored for Perl because
                            Perl has different conventions.)
+                           Ignored, when INSTALLDIRS set to site or vendor.
                            Default = "/usr/local/lib"])
 AS_IF([test "x$PERL_PREFIX" = x], [PERL_PREFIX="/usr/local"])