Commit | Line | Data |
2304df62 |
1 | ?RCS: $Id: libyacc.U,v 3.0.1.1 1994/01/24 14:13:49 ram Exp $ |
2 | ?RCS: |
3 | ?RCS: Copyright (c) 1991-1993, 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 3.0. |
10 | ?RCS: |
11 | ?RCS: $Log: libyacc.U,v $ |
12 | ?RCS: Revision 3.0.1.1 1994/01/24 14:13:49 ram |
13 | ?RCS: patch16: un-obsoleted this unit for smooth yacc compilations |
14 | ?RCS: |
15 | ?RCS: Revision 3.0 1993/08/18 12:09:04 ram |
16 | ?RCS: Baseline for dist 3.0 netwide release. |
17 | ?RCS: |
18 | ?MAKE:libyacc: Loc yacc libpth test |
19 | ?MAKE: -pick add $@ %< |
20 | ?S:libyacc: |
21 | ?S: This variable contains the argument to pass to the loader in order |
22 | ?S: to get the yacc library routines. If there is no yacc or yacc |
23 | ?S: library, it is null. |
24 | ?S:. |
25 | ?T:xxx |
26 | : see if we should include -ly |
27 | echo " " |
28 | case "$yacc" in |
29 | *byacc*) |
30 | echo "You are using byacc, so I won't look for a yacc library." >&4 |
31 | libyacc='' |
32 | ;; |
33 | *yacc) |
34 | if $test -r /usr/lib/liby.a || $test -r /usr/local/lib/liby.a ; then |
35 | echo "-ly found." >&4 |
36 | libyacc='-ly' |
37 | else |
38 | xxx=`./loc liby.a x $libpth` |
39 | case "$xxx" in |
40 | x) |
41 | echo "No yacc library found." >&4 |
42 | libyacc='' |
43 | ;; |
44 | *) |
45 | echo "yacc library found in $xxx." >&4 |
46 | libyacc="$xxx" |
47 | ;; |
48 | esac |
49 | fi |
50 | ;; |
51 | *bison*) |
52 | echo "You are using bison, so I won't look for a yacc library." >&4 |
53 | libyacc='' |
54 | ;; |
55 | *) |
56 | echo "You don't seem to have yacc, so I won't look for the yacc library." >&4 |
57 | libyacc='' |
58 | ;; |
59 | esac |
60 | |