Debian Codegraph @

debian/patches/zaptel_perl

raw
1 Subject: Set perl installation path to vendorlib
2 Author: Tzafrir Cohen <[email protected]>
3 Forwarded: no
4
5 Point DAHDI PERL modules to the right directory under which to install
6 perl modules.
7
8 (sitelib in Debian is under /usr/local. We don't want to install there)
9
10 Debian-specific configuration.
11
12 --- a/configure.ac
13 +++ b/configure.ac
14 @@ -120,20 +120,22 @@ fi
15 # - The "$datadir/perl5" directory otherwise (e.g: during "make distcheck")
16 #
17 AC_MSG_CHECKING(for perl libdir)
18 +set -x
19 m4_define([_PERL_LIBDIR_DEFAULT], [${datadir}/perl5])dnl
20 AC_ARG_WITH(perllib,
21 [AS_HELP_STRING([--with-perllib=PATH],
22 - [Location of perl modules @<:@default=]_PERL_LIBDIR_DEFAULT[, or perl -V:sitelib@:>@])],
23 + [Location of perl modules @<:@default=]_PERL_LIBDIR_DEFAULT[, or perl -V:vendorlib@:>@])],
24 [perllibdir=$withval],
25 [
26 if test "$prefix" = 'NONE' -o "$prefix" = '/usr'; then
27 - eval `"$PERL" -V:sitelib`
28 - perllibdir="$sitelib"
29 + eval `"$PERL" -V:vendorlib`
30 + perllibdir="$vendorlib"
31 else
32 perllibdir='_PERL_LIBDIR_DEFAULT'
33 fi
34 ]
35 )
36 +set +x
37 AC_SUBST([perllibdir], "$perllibdir")
38 AC_MSG_RESULT([$perllibdir])
39 AM_CONDITIONAL([PERL], [test "$perllibdir" != ''])