This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / sitearch.U
CommitLineData
d8875586
MBT
1?RCS: $Id: sitearch.U 1 2006-08-24 12:32:52Z rmanfredi $
2?RCS:
3?RCS: Copyright (c) 1996, Andy Dougherty
4?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5?RCS:
6?RCS: You may redistribute only under the terms of the Artistic Licence,
7?RCS: as specified in the README file that comes with the distribution.
8?RCS: You may reuse parts of this distribution only within the terms of
9?RCS: that same Artistic Licence; a copy of which may be found at the root
10?RCS: of the source tree for dist 4.0.
11?RCS:
12?RCS: $Log: sitearch.U,v $
13?RCS: Revision 3.0.1.1 1997/02/28 16:21:30 ram
14?RCS: patch61: created
15?RCS:
16?MAKE:sitearch sitearchexp installsitearch: afs cat Getfile \
17 Oldconfig Prefixit prefix test archname sitelib
18?MAKE: -pick add $@ %<
19?Y:TOP
20?S:sitearch:
21?S: This variable contains the eventual value of the SITEARCH symbol,
22?S: which is the name of the private library for this package. It may
23?S: have a ~ on the front. It is up to the makefile to eventually create
24?S: this directory while performing installation (with ~ substitution).
25?S:.
26?S:sitearchexp:
27?S: This variable is the ~name expanded version of sitearch, so that you
28?S: may use it directly in Makefiles or shell scripts.
29?S:.
30?S:installsitearch:
31?S: This variable is really the same as sitearchexp but may differ on
32?S: those systems using AFS. For extra portability, only this variable
33?S: should be used in makefiles.
34?S:.
35?C:SITEARCH:
36?C: This symbol contains the name of the private library for this package.
37?C: The library is private in the sense that it needn't be in anyone's
38?C: execution path, but it should be accessible by the world. The program
39?C: should be prepared to do ~ expansion.
40?C: The standard distribution will put nothing in this directory.
41?C: Individual sites may place their own extensions and modules in
42?C: this directory.
43?C:.
44?C:SITEARCH_EXP:
45?C: This symbol contains the ~name expanded version of SITEARCH, to be used
46?C: in programs that are not prepared to deal with ~ expansion at run-time.
47?C:.
48?H:#define SITEARCH "$sitearch" /**/
49?H:#define SITEARCH_EXP "$sitearchexp" /**/
50?H:.
51?T:xxx
52: determine where site specific architecture-dependent libraries go.
53xxx=`echo $sitelib/$archname | sed 's!^$prefix!!'`
54: xxx is usuually lib/site_perl/archname.
55set sitearch sitearch none
56eval $prefixit
57case "$sitearch" in
58'') dflt="$sitelib/$archname" ;;
59*) dflt="$sitearch" ;;
60esac
61$cat <<EOM
62
63The installation process will also create a directory for
64architecture-dependent site-specific extensions and modules.
65
66EOM
67fn=nd~+
68rp='Pathname for the site-specific architecture-dependent library files?'
69. ./getfile
70if $test "X$sitearchexp" != "X$ansexp"; then
71 installsitearch=''
72fi
73sitearch="$ans"
74sitearchexp="$ansexp"
75if $afs; then
76 $cat <<EOM
77
78Since you are running AFS, I need to distinguish the directory in which
79private files reside from the directory in which they are installed (and from
80which they are presumably copied to the former directory by occult means).
81
82EOM
83 case "$installsitearch" in
84 '') dflt=`echo $sitearchexp | sed 's#^/afs/#/afs/.#'`;;
85 *) dflt="$installsitearch";;
86 esac
87 fn=de~
88 rp='Where will private files be installed?'
89 . ./getfile
90 installsitearch="$ans"
91else
92 installsitearch="$sitearchexp"
93fi
94