| 1 |
?RCS: $Id: archlib.U,v 3.1 1999/07/08 18:32:29 doughera Exp doughera $ |
| 2 |
?RCS: |
| 3 |
?RCS: Copyright (c) 1991-1993, Raphael Manfredi |
| 4 |
?RCS: |
| 5 |
?RCS: This file is included with or a derivative work of a file included |
| 6 |
?RCS: with the metaconfig program of Raphael Manfredi's "dist" distribution. |
| 7 |
?RCS: In accordance with clause 7 of dist's modified Artistic License: |
| 8 |
?RCS: |
| 9 |
?RCS: You may distribute under the terms of either the GNU General Public |
| 10 |
?RCS: License or the Artistic License, as specified in the README file. |
| 11 |
?RCS: |
| 12 |
?RCS: Original Author: Andy Dougherty <[email protected]> |
| 13 |
?RCS: |
| 14 |
?RCS: $Log: archlib.U,v $ |
| 15 |
?RCS: Revision 3.1 1999/07/08 18:32:29 doughera |
| 16 |
?RCS: Updated for perl5.005_5x |
| 17 |
?RCS: |
| 18 |
?RCS: |
| 19 |
?RCS: Revision 3.0.1.4 1995/09/25 09:15:18 ram |
| 20 |
?RCS: patch59: unit is now forced to the top of Configure, if possible |
| 21 |
?RCS: |
| 22 |
?RCS: Revision 3.0.1.3 1995/02/15 14:14:14 ram |
| 23 |
?RCS: patch51: architecture name is now computed by a separate unit |
| 24 |
?RCS: |
| 25 |
?RCS: Revision 3.0.1.2 1995/01/30 14:32:22 ram |
| 26 |
?RCS: patch49: archname is now systematically recomputed |
| 27 |
?RCS: patch49: can now handle installation prefix changes (from WED) |
| 28 |
?RCS: |
| 29 |
?RCS: Revision 3.0.1.1 1994/10/29 16:02:36 ram |
| 30 |
?RCS: patch36: created by ADO |
| 31 |
?RCS: |
| 32 |
?MAKE:d_archlib archlib archlibexp installarchlib: \ |
| 33 |
cat Getfile Setprefixvar Loc Oldconfig archname spackage \ |
| 34 |
privlib sed test Prefixit Prefixup binexp |
| 35 |
?MAKE: -pick add $@ %< |
| 36 |
?Y:TOP |
| 37 |
?S:d_archlib: |
| 38 |
?S: This variable conditionally defines ARCHLIB to hold the pathname |
| 39 |
?S: of architecture-dependent library files for $package. If |
| 40 |
?S: $archlib is the same as $privlib, then this is set to undef. |
| 41 |
?S:. |
| 42 |
?D:archlib='' |
| 43 |
?S:archlib: |
| 44 |
?S: This variable holds the name of the directory in which the user wants |
| 45 |
?S: to put architecture-dependent public library files for $package. |
| 46 |
?S: It is most often a local directory such as /usr/local/lib. |
| 47 |
?S: Programs using this variable must be prepared to deal |
| 48 |
?S: with filename expansion. |
| 49 |
?S:. |
| 50 |
?D:archlibexp='' |
| 51 |
?S:archlibexp: |
| 52 |
?S: This variable is the same as the archlib variable, but is |
| 53 |
?S: filename expanded at configuration time, for convenient use. |
| 54 |
?S:. |
| 55 |
?D:installarchlib='' |
| 56 |
?S:installarchlib: |
| 57 |
?S: This variable is really the same as archlibexp but may differ on |
| 58 |
?S: those systems using AFS. For extra portability, only this variable |
| 59 |
?S: should be used in makefiles. |
| 60 |
?S:. |
| 61 |
?C:ARCHLIB: |
| 62 |
?C: This variable, if defined, holds the name of the directory in |
| 63 |
?C: which the user wants to put architecture-dependent public |
| 64 |
?C: library files for $package. It is most often a local directory |
| 65 |
?C: such as /usr/local/lib. Programs using this variable must be |
| 66 |
?C: prepared to deal with filename expansion. If ARCHLIB is the |
| 67 |
?C: same as PRIVLIB, it is not defined, since presumably the |
| 68 |
?C: program already searches PRIVLIB. |
| 69 |
?C:. |
| 70 |
?C:ARCHLIB_EXP: |
| 71 |
?C: This symbol contains the ~name expanded version of ARCHLIB, to be used |
| 72 |
?C: in programs that are not prepared to deal with ~ expansion at run-time. |
| 73 |
?C:. |
| 74 |
?H:#$d_archlib ARCHLIB "$archlib" /**/ |
| 75 |
?H:#$d_archlib ARCHLIB_EXP "$archlibexp" /**/ |
| 76 |
?H:. |
| 77 |
?T: tdflt |
| 78 |
?LINT:change prefixvar |
| 79 |
?LINT:set archlib |
| 80 |
?LINT:set archlibexp |
| 81 |
?LINT:set installarchlib |
| 82 |
: determine where public architecture dependent libraries go |
| 83 |
set archlib archlib |
| 84 |
eval $prefixit |
| 85 |
: privlib default is /usr/local/lib/$package/$version |
| 86 |
: archlib default is /usr/local/lib/$package/$version/$archname |
| 87 |
: privlib may have an optional trailing /share. |
| 88 |
tdflt=`echo $privlib | $sed 's,/share$,,'` |
| 89 |
tdflt=$tdflt/$archname |
| 90 |
case "$archlib" in |
| 91 |
'') dflt=$tdflt |
| 92 |
;; |
| 93 |
*) dflt="$archlib" |
| 94 |
;; |
| 95 |
esac |
| 96 |
$cat <<EOM |
| 97 |
|
| 98 |
$spackage contains architecture-dependent library files. If you are |
| 99 |
sharing libraries in a heterogeneous environment, you might store |
| 100 |
these files in a separate location. Otherwise, you can just include |
| 101 |
them with the rest of the public library files. |
| 102 |
|
| 103 |
EOM |
| 104 |
?X: Force dependency on bin.U |
| 105 |
fn=$binexp |
| 106 |
fn=d+~ |
| 107 |
rp='Where do you want to put the public architecture-dependent libraries?' |
| 108 |
. ./getfile |
| 109 |
prefixvar=archlib |
| 110 |
. ./setprefixvar |
| 111 |
if $test X"$archlib" = X"$privlib"; then |
| 112 |
d_archlib="$undef" |
| 113 |
else |
| 114 |
d_archlib="$define" |
| 115 |
fi |
| 116 |
|