瀏覽代碼

build: Let the user override PERL_LIBDIR at configure time

The variable is declared as precious via AC_ARG_VAR, but assigned to
unconditionally.
Guillem Jover 14 年之前
父節點
當前提交
e65993b196
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      m4/dpkg-progs.m4

+ 4 - 1
m4/dpkg-progs.m4

@@ -12,9 +12,12 @@ if test "$PERL" = "no" || test ! -x "$PERL"; then
   AC_MSG_ERROR([cannot find the Perl interpreter])
 fi
 AC_ARG_VAR([PERL_LIBDIR], [Perl library directory])dnl
+# Let the user override the variable.
+if test -z "$PERL_LIBDIR"; then
 PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp};
                                  $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
-                                 print $r')dnl
+                                 print $r')
+fi
 ])# DPKG_PROG_PERL
 
 # DPKG_PROG_PO4A