path: root/mcon/U/sitearch.U
diff options
authorrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2006-08-24 12:32:52 +0000
committerrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2006-08-24 12:32:52 +0000
commit8bfc5756fb68e0b13d7e7c0073ad5b9a4790d1b6 (patch)
treedee05e98bc53766d609ef2a3a07a5672627d812c /mcon/U/sitearch.U
Moving project to sourceforge.
git-svn-id: 190e5f8e-a817-0410-acf6-e9863daed9af
Diffstat (limited to 'mcon/U/sitearch.U')
1 files changed, 94 insertions, 0 deletions
diff --git a/mcon/U/sitearch.U b/mcon/U/sitearch.U
new file mode 100644
index 0000000..47116dc
--- /dev/null
+++ b/mcon/U/sitearch.U
@@ -0,0 +1,94 @@
+?RCS: $Id$
+?RCS: Copyright (c) 1996, Andy Dougherty
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS: $Log: sitearch.U,v $
+?RCS: Revision 1997/02/28 16:21:30 ram
+?RCS: patch61: created
+?MAKE:sitearch sitearchexp installsitearch: afs cat Getfile \
+ Oldconfig Prefixit prefix test archname sitelib
+?MAKE: -pick add $@ %<
+?S: This variable contains the eventual value of the SITEARCH symbol,
+?S: which is the name of the private library for this package. It may
+?S: have a ~ on the front. It is up to the makefile to eventually create
+?S: this directory while performing installation (with ~ substitution).
+?S: This variable is the ~name expanded version of sitearch, so that you
+?S: may use it directly in Makefiles or shell scripts.
+?S: This variable is really the same as sitearchexp but may differ on
+?S: those systems using AFS. For extra portability, only this variable
+?S: should be used in makefiles.
+?C: This symbol contains the name of the private library for this package.
+?C: The library is private in the sense that it needn't be in anyone's
+?C: execution path, but it should be accessible by the world. The program
+?C: should be prepared to do ~ expansion.
+?C: The standard distribution will put nothing in this directory.
+?C: Individual sites may place their own extensions and modules in
+?C: this directory.
+?C: This symbol contains the ~name expanded version of SITEARCH, to be used
+?C: in programs that are not prepared to deal with ~ expansion at run-time.
+?H:#define SITEARCH "$sitearch" /**/
+?H:#define SITEARCH_EXP "$sitearchexp" /**/
+: determine where site specific architecture-dependent libraries go.
+xxx=`echo $sitelib/$archname | sed 's!^$prefix!!'`
+: xxx is usuually lib/site_perl/archname.
+set sitearch sitearch none
+eval $prefixit
+case "$sitearch" in
+'') dflt="$sitelib/$archname" ;;
+*) dflt="$sitearch" ;;
+$cat <<EOM
+The installation process will also create a directory for
+architecture-dependent site-specific extensions and modules.
+rp='Pathname for the site-specific architecture-dependent library files?'
+. ./getfile
+if $test "X$sitearchexp" != "X$ansexp"; then
+ installsitearch=''
+if $afs; then
+ $cat <<EOM
+Since you are running AFS, I need to distinguish the directory in which
+private files reside from the directory in which they are installed (and from
+which they are presumably copied to the former directory by occult means).
+ case "$installsitearch" in
+ '') dflt=`echo $sitearchexp | sed 's#^/afs/#/afs/.#'`;;
+ *) dflt="$installsitearch";;
+ esac
+ fn=de~
+ rp='Where will private files be installed?'
+ . ./getfile
+ installsitearch="$ans"
+ installsitearch="$sitearchexp"