path: root/mcon/U/libyacc.U
diff options
Diffstat (limited to 'mcon/U/libyacc.U')
1 files changed, 64 insertions, 0 deletions
diff --git a/mcon/U/libyacc.U b/mcon/U/libyacc.U
new file mode 100644
index 0000000..ab861f9
--- /dev/null
+++ b/mcon/U/libyacc.U
@@ -0,0 +1,64 @@
+?RCS: $Id: libyacc.U,v 1997/02/28 16:09:19 ram Exp $
+?RCS: Copyright (c) 1991-1993, 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 3.0.
+?RCS: $Log: libyacc.U,v $
+?RCS: Revision 1997/02/28 16:09:19 ram
+?RCS: patch61: replaced .a with $_a all over the place
+?RCS: Revision 1994/05/13 15:27:12 ram
+?RCS: patch27: added byacc case (ADO)
+?RCS: Revision 1994/05/06 15:09:01 ram
+?RCS: patch23: now uses full library path instead of -l notation
+?RCS: Revision 1994/01/24 14:13:49 ram
+?RCS: patch16: un-obsoleted this unit for smooth yacc compilations
+?RCS: Revision 3.0 1993/08/18 12:09:04 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:libyacc: Loc yacc libpth _a
+?MAKE: -pick add $@ %<
+?S: This variable contains the argument to pass to the loader in order
+?S: to get the yacc library routines. If there is no yacc or yacc
+?S: library, it is null.
+: see if we should include -ly
+echo " "
+case "$yacc" in
+ echo "You are using byacc, so I won't look for a yacc library." >&4
+ libyacc=''
+ ;;
+ xxx=`./loc liby$_a x $libpth`
+ case "$xxx" in
+ x)
+ echo "No yacc library found." >&4
+ libyacc=''
+ ;;
+ *)
+ echo "yacc library found in $xxx." >&4
+ libyacc="$xxx"
+ ;;
+ esac
+ ;;
+ echo "You are using bison, so I won't look for a yacc library." >&4
+ libyacc=''
+ ;;
+echo "You don't seem to have yacc, so I won't look for the yacc library." >&4
+ libyacc=''
+ ;;