Commit | Line | Data |
---|---|---|
d8875586 MBT |
1 | ?RCS: $Id: libdbm.U 1 2006-08-24 12:32:52Z rmanfredi $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
4 | ?RCS: | |
5 | ?RCS: You may redistribute only under the terms of the Artistic Licence, | |
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 | |
8 | ?RCS: that same Artistic Licence; a copy of which may be found at the root | |
9 | ?RCS: of the source tree for dist 4.0. | |
10 | ?RCS: | |
11 | ?RCS: $Log: libdbm.U,v $ | |
12 | ?RCS: Revision 3.0.1.1 1997/02/28 15:56:57 ram | |
13 | ?RCS: patch61: replaced .a with $_a all over the place | |
14 | ?RCS: | |
15 | ?RCS: Revision 3.0 1993/08/18 12:08:58 ram | |
16 | ?RCS: Baseline for dist 3.0 netwide release. | |
17 | ?RCS: | |
18 | ?MAKE:libdbm: test Loc libpth _a | |
19 | ?MAKE: -pick add $@ %< | |
20 | ?S:libdbm: | |
21 | ?S: This variable contains the argument to pass to the loader in order | |
22 | ?S: to get the dbm library routines. If there is no dbm or ndbm | |
23 | ?S: library, it is null. | |
24 | ?S:. | |
25 | ?T:xxx | |
26 | : see if we should include -ldbm | |
27 | echo " " | |
28 | if $test -r /usr/lib/libndbm$_a || $test -r /usr/local/lib/libndbm$_a ; then | |
29 | echo "-lndbm found." >&4 | |
30 | libdbm='-lndbm' | |
31 | elif $test -r /usr/lib/libdbm$_a || $test -r /usr/local/lib/libdbm$_a ; then | |
32 | echo "-ldbm found." >&4 | |
33 | libdbm='-ldbm' | |
34 | else | |
35 | xxx=`./loc libdbm$_a x $libpth` | |
36 | case "$xxx" in | |
37 | x) | |
38 | echo "No dbm library found." >&4 | |
39 | libdbm='' | |
40 | ;; | |
41 | *) | |
42 | echo "DBM library found in $xxx." >&4 | |
43 | libdbm="$xxx" | |
44 | ;; | |
45 | esac | |
46 | fi | |
47 |