Test for YYLINENO so that pepsy will build cleanly on all platforms
authorTheodore Tso <tytso@mit.edu>
Sun, 12 Jun 1994 23:49:17 +0000 (23:49 +0000)
committerTheodore Tso <tytso@mit.edu>
Sun, 12 Jun 1994 23:49:17 +0000 (23:49 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3754 dc483132-0cff-0310-8789-dd5450dbe970

src/isode/pepsy/Makefile.in
src/isode/pepsy/configure.in
src/isode/pepsy/pepsy.c

index b26daa0d3e9eaf23f9f4addf34f57150c7d15bbf..dd762142c70a9ade193e8b6fc3383e3bb1fa678c 100644 (file)
@@ -4,12 +4,13 @@
 
 srcdir = @srcdir@
 VPATH = @srcdir@
+DEFS = @DEFS@
 
 BUILDTOP = ../../
 TOPDIR = $(BUILDTOP)
 
-OPTIONS        =       -I. -I$(HDIR) $(PEPYPATH) $(KRBOPT)
-CFLAGS  =       $(OPTIONS) $(LOPTIONS) 
+OPTIONS        =       -I. -I$(HDIR) -I$(TOPDIR)include $(PEPYPATH) $(KRBOPT)
+CFLAGS  =       $(OPTIONS) $(LOPTIONS) $(DEFS)
 
 HDIR   =       $(TOPDIR)isode/h/
 UTILDIR        =       $(TOPDIR)isode/util/
@@ -19,8 +20,8 @@ PEPSYDIRM=    $(INCDIR)pepsy
 PEPSYDIR=      $(PEPSYDIRM)/
 PSAPDIRM=      $(TOPDIR)isode/psap
 PSAPDIR=       $(PSAPDIRM)/
-LIBISODE=      $(TOPDIR)libisode.a
-LIBDSAP        =       $(TOPDIR)libdsap.a
+LIBISODE=      $(TOPDIR)lib/libisode.a
+LIBDSAP        =       $(TOPDIR)lib/libdsap.a
 
 KRBINC =       $(TOPDIR)include/
 ISODEINCM=     $(KRBINC)isode
@@ -50,8 +51,8 @@ PEPYPATH=     -DPEPYPATH -DPEPSYPATH=\".:$(PEPSYDIRM)\"
 PEPSYLIBES=    $(PSAPDIR)/sprintoid.o $(PSAPDIR)/pl_tables.o \
                $(PSAPDIR)/oid_cmp.o $(PSAPDIR)/oid_cpy.o \
                $(PSAPDIR)/oid_free.o ../compat/libcompat.a
-LIBES   =      $(TOPDIR)libpsap.a $(TOPDIR)libcompat.a
-LLIBS   =      $(TOPDIR)llib-lpsap $(TOPDIR)llib-lcompat
+LIBES   =      $(TOPDIR)lib/libpsap.a $(TOPDIR)lib/libcompat.a
+LLIBS   =      $(TOPDIR)lib/llib-lpsap $(TOPDIR)lib/llib-lcompat
 HFILES =       $(HDIR)psap.h \
                $(HDIR)manifest.h $(HDIR)general.h $(HDIR)config.h
 
@@ -95,14 +96,16 @@ PEPSY-O     = pepsy.o pepsy-yacc.o pepsy_misc.o pass2.o etabs.o dtabs.o ptabs.o \
 
 inst-pepsy:    $(BINDIR)pepsy
 
-$(BINDIR)pepsy:        xpepsy
-               -cp $@ zxpepsy
-               -rm -f $@
-               cp xpepsy $@
-               -@ls -gls $@
-               -@echo ""
+#$(BINDIR)pepsy:       xpepsy
+#              -cp $@ zxpepsy
+#              -rm -f $@
+#              cp xpepsy $@
+#              -@ls -gls $@
+#              -@echo ""
 
 pepsy:         xpepsy
+               -mv pepsy pepsy.old
+               $(LN) xpepsy pepsy
                -@echo ""
 
 xpepsy:                pepsyvrsn.o $(PEPSYLIBES)
@@ -176,8 +179,8 @@ libpepsy:   libpepsy.a true
 libpepsy.a:     $(LIBFILES)
                -rm -f $@
                @$(UTILDIR)make-lib.sh $(SYSTEM) $@ $(LIBFILES)
-               -@rm -f $(TOPDIR)libpepsy.a
-               -@$(LN) libpepsy.a $(TOPDIR)libpepsy.a || cp libpepsy.a $(TOPDIR)libpepsy.a
+               -@rm -f $(TOPDIR)lib/libpepsy.a
+               -@$(LN) libpepsy.a $(TOPDIR)lib/libpepsy.a || cp libpepsy.a $(TOPDIR)lib/libpepsy.a
                -@ls -l $@
                -@echo "PEPSY library built normally"
 
index cdff2db09d5137d406fc485842a3a44b7625edc0..56b3e2378393b4fc1805ac5479ae95d5aafd4746 100644 (file)
@@ -1,2 +1,3 @@
 AC_INIT(configure.in)
+HAVE_YYLINENO
 AC_OUTPUT(Makefile)
index b33d089ffde8746a3641d97bdb573cb4d6862b6d..6ff802d140b5dcba4e2af81d63f0e1760fa1e83c 100644 (file)
@@ -36,7 +36,10 @@ static char *rcsid = "$Header$";
  *
  *
  * $Log$
- * Revision 1.2  1994/06/11 08:05:55  tlyu
+ * Revision 1.3  1994/06/12 23:49:17  tytso
+ * Test for YYLINENO so that pepsy will build cleanly on all platforms.
+ *
+ * Revision 1.2  1994/06/11  08:05:55  tlyu
  * mips yylineno breakage
  *
  * Revision 1.1  1994/06/10  03:31:15  eichin
@@ -70,8 +73,9 @@ static char *rcsid = "$Header$";
 #include <varargs.h>
 #include "pepsydefs.h"
 #include "pass2.h"
+#include <krb5/autoconf.h>
 
-#if defined(USING_BISON)
+#if defined(USING_BISON) || defined(NO_YYLINENO)
 int yylineno = 0;              /* Bison doesn't have yylineno, sigh */
                                /* ultrix doesn't either */
 #endif