Don't try to compile comple_et. Use awk/sed shell script version instead.
authorTheodore Tso <tytso@mit.edu>
Mon, 3 Oct 1994 21:28:44 +0000 (21:28 +0000)
committerTheodore Tso <tytso@mit.edu>
Mon, 3 Oct 1994 21:28:44 +0000 (21:28 +0000)
It's more apt to be portable, since it doesn't use yacc or lex.  :-(

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4426 dc483132-0cff-0310-8789-dd5450dbe970

src/util/et/ChangeLog
src/util/et/Makefile.in
src/util/et/configure.in

index 1382bc85fd70a768ba392b9830128821400b9f8d..7d81cdf91117a5019535128b35ca3a61472efe46 100644 (file)
@@ -1,3 +1,11 @@
+Mon Oct  3 17:27:28 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * Makefile.in:
+         configure.in: Don't try to compile compile_et.  Use awk/sed
+                 version instead.  It's more apt to be portable, since it
+                 doesn't use awk or sed.  :-(
+       
+
 Fri Sep 30 17:12:15 1994  Theodore Y. Ts'o  (tytso@dcl)
 
        * compile_et.c: Add declaration of error_message() manually.
index 3a0d02d6e1cdf12a71e01942fb404a7acf3ccd48..c6aee89209a9cb4ee9e9ad51cd76b01ce9279f8c 100644 (file)
@@ -1,5 +1,6 @@
 CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
 LDFLAGS = -g
+SED = /bin/sed
 
 INSTALLFILE = cp
 
@@ -38,14 +39,27 @@ error_table.o: et_lex.lex.c
 
 all:: compile_et includes
 
-compile_et: compile_et.o error_table.o
-       $(CC) $(CFLAGS) -o $@ compile_et.o error_table.o $(LEXLIB) $(BSDLIB)
-       
-install::
-       $(INSTALLPROG) compile_et ${DESTDIR}$(PROGDIR)/compile_et
+# The realm compile_et just isn't portable.  (But then again, anything using 
+# lex and yacc isn't portable by definition.  :-(  )
+#
+#compile_et: compile_et.o error_table.o
+#      $(CC) $(CFLAGS) -o $@ compile_et.o error_table.o $(LEXLIB) $(BSDLIB)
+#
+#install::
+#      $(INSTALLPROG) compile_et ${DESTDIR}$(PROGDIR)/compile_et
 
+compile_et: $(srcdir)/compile_et.sh $(srcdir)/config_script
+       $(srcdir)/config_script $(srcdir)/compile_et.sh $(AWK) $(SED) > compile_et
+       chmod 755 compile_et    
+
+et_c.awk: $(srcdir)/et_c.awk
+       $(CP) $(srcdir)/et_c.awk et_c.awk
+
+et_h.awk: $(srcdir)/et_h.awk
+       $(CP) $(srcdir)/et_h.awk et_h.awk
+       
 clean::
-       $(RM) compile_et compile_et.o error_table.o
+       $(RM) compile_et compile_et.o error_table.o et_c.awk et_h.awk
 
 depend:: 
 
index 31d62d2778f1755edbdfad3cabfdb6b123f05341..829f029d770d9949f41542436ad4e586447dfdb8 100644 (file)
@@ -5,6 +5,7 @@ AC_SET_BUILDTOP
 AC_CONST
 AC_PROG_LEX
 AC_PROG_YACC
+AC_PROG_AWK
 AC_PROG_ARCHIVE
 AC_PROG_RANLIB
 HAVE_YYLINENO