Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ?RCS: $Id: vendorarch.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1999, Andy Dougherty | |
bbf326f0 | 4 | ?RCS: |
65a32477 | 5 | ?RCS: You may redistribute only under the terms of the Artistic License, |
959f3c4c JH |
6 | ?RCS: as specified in the README file that comes with the distribution. |
7 | ?RCS: You may reuse parts of this distribution only within the terms of | |
65a32477 | 8 | ?RCS: that same Artistic License; a copy of which may be found at the root |
959f3c4c JH |
9 | ?RCS: of the source tree for dist 3.0. |
10 | ?RCS: | |
11 | ?RCS: $Log: vendorarch.U,v $ | |
12 | ?RCS: Revision 1.1 1999/07/08 18:32:57 doughera | |
13 | ?RCS: Initial revision | |
14 | ?RCS: | |
959f3c4c | 15 | ?MAKE:d_vendorarch vendorarch vendorarchexp installvendorarch: sed Getfile \ |
92fe9c1f | 16 | Setprefixvar Oldconfig Prefixit archname vendorlib vendorprefix test |
959f3c4c JH |
17 | ?MAKE: -pick add $@ %< |
18 | ?Y:TOP | |
19 | ?S:vendorarch: | |
860c366a | 20 | ?S: This variable contains the value of the PERL_VENDORARCH symbol. |
bbf326f0 | 21 | ?S: It may have a ~ on the front. |
860c366a JH |
22 | ?S: The standard distribution will put nothing in this directory. |
23 | ?S: Vendors who distribute perl may wish to place their own | |
24 | ?S: architecture-dependent modules and extensions in this directory with | |
bbf326f0 | 25 | ?S: MakeMaker Makefile.PL INSTALLDIRS=vendor |
860c366a | 26 | ?S: or equivalent. See INSTALL for details. |
959f3c4c JH |
27 | ?S:. |
28 | ?S:vendorarchexp: | |
29 | ?S: This variable is the ~name expanded version of vendorarch, so that you | |
30 | ?S: may use it directly in Makefiles or shell scripts. | |
31 | ?S:. | |
bbf326f0 | 32 | ?D:installvendorarch='' |
959f3c4c JH |
33 | ?S:installvendorarch: |
34 | ?S: This variable is really the same as vendorarchexp but may differ on | |
35 | ?S: those systems using AFS. For extra portability, only this variable | |
36 | ?S: should be used in makefiles. | |
37 | ?S:. | |
38 | ?S:d_vendorarch: | |
39 | ?S: This variable conditionally defined PERL_VENDORARCH. | |
40 | ?S:. | |
41 | ?C:PERL_VENDORARCH: | |
860c366a | 42 | ?C: If defined, this symbol contains the name of a private library. |
959f3c4c | 43 | ?C: The library is private in the sense that it needn't be in anyone's |
860c366a | 44 | ?C: execution path, but it should be accessible by the world. |
bbf326f0 | 45 | ?C: It may have a ~ on the front. |
959f3c4c | 46 | ?C: The standard distribution will put nothing in this directory. |
860c366a JH |
47 | ?C: Vendors who distribute perl may wish to place their own |
48 | ?C: architecture-dependent modules and extensions in this directory with | |
bbf326f0 | 49 | ?C: MakeMaker Makefile.PL INSTALLDIRS=vendor |
860c366a | 50 | ?C: or equivalent. See INSTALL for details. |
959f3c4c JH |
51 | ?C:. |
52 | ?C:PERL_VENDORARCH_EXP: | |
53 | ?C: This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used | |
54 | ?C: in programs that are not prepared to deal with ~ expansion at run-time. | |
55 | ?C:. | |
56 | ?H:#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/ | |
57 | ?H:#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/ | |
58 | ?H:. | |
c6d164da MB |
59 | ?LINT:change prefixvar |
60 | ?LINT:set installvendorarch | |
d7a2632b | 61 | : Set the vendorarch variables |
959f3c4c JH |
62 | case "$vendorprefix" in |
63 | '') d_vendorarch="$undef" | |
64 | vendorarch='' | |
65 | vendorarchexp='' | |
66 | ;; | |
67 | *) d_vendorarch="$define" | |
68 | : determine where vendor-supplied architecture-dependent libraries go. | |
edd6115f JH |
69 | : vendorlib default is /usr/local/lib/perl5/vendor_perl/$version |
70 | : vendorarch default is /usr/local/lib/perl5/vendor_perl/$version/$archname | |
959f3c4c | 71 | : vendorlib may have an optional trailing /share. |
959f3c4c | 72 | case "$vendorarch" in |
0fdea05a JH |
73 | '') dflt=`echo $vendorlib | $sed 's,/share$,,'` |
74 | dflt="$dflt/$archname" | |
75 | ;; | |
959f3c4c JH |
76 | *) dflt="$vendorarch" ;; |
77 | esac | |
0fdea05a | 78 | fn=d~+ |
959f3c4c JH |
79 | rp='Pathname for vendor-supplied architecture-dependent files?' |
80 | . ./getfile | |
81 | vendorarch="$ans" | |
82 | vendorarchexp="$ansexp" | |
959f3c4c JH |
83 | ;; |
84 | esac | |
bbf326f0 | 85 | prefixvar=vendorarch |
6aa16870 | 86 | . ./installprefix |
92fe9c1f MB |
87 | if $test X"$vendorarch" = X"$vendorlib"; then |
88 | d_vendorarch="$undef" | |
89 | else | |
90 | d_vendorarch="$define" | |
91 | fi | |
959f3c4c | 92 |