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 / libyacc.U
1 ?RCS: $Id: libyacc.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: libyacc.U,v $
12 ?RCS: Revision 3.0.1.4  1997/02/28  16:09:19  ram
13 ?RCS: patch61: replaced .a with $_a all over the place
14 ?RCS:
15 ?RCS: Revision 3.0.1.3  1994/05/13  15:27:12  ram
16 ?RCS: patch27: added byacc case (ADO)
17 ?RCS:
18 ?RCS: Revision 3.0.1.2  1994/05/06  15:09:01  ram
19 ?RCS: patch23: now uses full library path instead of -l notation
20 ?RCS:
21 ?RCS: Revision 3.0.1.1  1994/01/24  14:13:49  ram
22 ?RCS: patch16: un-obsoleted this unit for smooth yacc compilations
23 ?RCS:
24 ?RCS: Revision 3.0  1993/08/18  12:09:04  ram
25 ?RCS: Baseline for dist 3.0 netwide release.
26 ?RCS:
27 ?MAKE:libyacc: Loc yacc libpth _a
28 ?MAKE:  -pick add $@ %<
29 ?S:libyacc:
30 ?S:     This variable contains the argument to pass to the loader in order
31 ?S:     to get the yacc library routines.  If there is no yacc or yacc
32 ?S:     library, it is null.
33 ?S:.
34 ?T:xxx
35 : see if we should include -ly
36 echo " "
37 case "$yacc" in
38 *byacc*)
39         echo "You are using byacc, so I won't look for a yacc library." >&4
40         libyacc=''
41         ;;
42 *yacc)
43         xxx=`./loc liby$_a x $libpth`
44         case "$xxx" in
45         x)
46                 echo "No yacc library found." >&4
47                 libyacc=''
48                 ;;
49         *)
50                 echo "yacc library found in $xxx." >&4
51                 libyacc="$xxx"
52                 ;;
53         esac
54         ;;
55 *bison*)
56         echo "You are using bison, so I won't look for a yacc library." >&4
57         libyacc=''
58         ;;
59 *)
60 echo "You don't seem to have yacc, so I won't look for the yacc library." >&4
61         libyacc=''
62         ;;
63 esac
64