blob: 2c030c296cca38a191f83afe1a6305fc2898e1dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
?RCS: $Id: libpth.U,v 3.0 1993/08/18 12:09:02 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
?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 3.0.
?RCS:
?RCS: $Log: libpth.U,v $
?RCS: Revision 3.0 1993/08/18 12:09:02 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?X:
?X: This unit initializes the path for C library lookup.
?X:
?MAKE:libpth xlibpth plibpth: mips incpath test cat Myread
?MAKE: -pick add $@ %<
?S:libpth:
?S: This variable holds the general path used to find libraries. It is
?S: intended to be used by other units.
?S:.
?S:plibpth:
?S: Holds the private path used by Configure to find out the libraries.
?S: Its value is prepended to libpth. This variable takes care of special
?S: machines, like the mips. Usually, it should be empty.
?S:.
?T: xxx yyy
?INIT:: change the next line if compiling for Xenix/286 on Xenix/386
?INIT:xlibpth='/usr/lib/386 /lib/386'
?INIT:
?INIT:: general looking path for locating libraries
?INIT:libpth="/usr/lib/large /lib /usr/lib $xlibpth /lib/large"
?INIT:libpth="$libpth /usr/lib/small /lib/small"
?INIT:libpth="$libpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
?INIT:
?INIT:: Private path used by Configure to find libraries. Its value
?INIT:: is prepend to libpth. This variable takes care of special
?INIT:: machines, like the mips. Usually, it should be empty.
?INIT:plibpth=''
?INIT:
?LINT:describe xlibpth
?LINT:use mips
: Set private lib path
case "$plibpth" in
'') if mips; then
?X: on mips, we DO NOT want /lib, and we want $incpath/usr/lib
plibpth="$incpath/usr/lib /usr/local/lib /usr/ccs/lib"
fi;;
esac
libpth="$plibpth $libpth"
: Now check and see which directories actually exist.
xxx=''
for yyy in $libpth
do
if $test -d $yyy; then
xxx="$xxx $yyy"
fi
done
libpth="$xxx"
$cat <<EOM
Some systems have incompatible or broken versions of libraries. Where
should I look for libraries?
EOM
dflt="$libpth"
echo " "
rp="Directories to use for library searches?"
. ./myread
case "$ans" in
none) libpth=' ';;
*) libpth="$ans";;
esac
|