[gnu.utils.bug] Minor patches to gnudiff 1.1

gnu@toad.com (John Gilmore) (10/04/88)

Here's what it took to get gnudiff up on hoptoad (Sparc/SunOS 4.0).
Makefile changes avoid gnumake dependency, support 'make install'.
Regex.c change makes alloca work on Sparc.  It seems to work...

	John

diff -c -r1.1 Makefile
*** /tmp/,RCSt1a04621	Tue Oct  4 06:40:57 1988
--- Makefile	Tue Oct  4 06:40:41 1988
***************
*** 23,28 ****
--- 23,30 ----
  # but gcc makes it faster.
  CC=gcc -g
  CFLAGS = -O
+ DESTDIR=
+ TARGETDIR=/usr/free
  
  
  SRCS=diff.c analyze.c io.c context.c ed.c normal.c util.c dir.c diff.h \
***************
*** 31,37 ****
  TAPEFILES = $(SRCS) README diagmeet.note Makefile COPYING
  
  diff: $(OBJS)
! 	$(CC) -o diff $(CFLAGS) $(LDFLAGS) $^
  
  $(OBJS): diff.h
  
--- 33,39 ----
  TAPEFILES = $(SRCS) README diagmeet.note Makefile COPYING
  
  diff: $(OBJS)
! 	$(CC) -o diff $(CFLAGS) $(LDFLAGS) $(OBJS)
  
  $(OBJS): diff.h
  
***************
*** 39,44 ****
--- 41,49 ----
  
  clean:
  	rm *.o diff
+ 
+ install:
+ 	install diff $(DESTDIR)$(TARGETDIR)/diff
  
  diff.tar: $(TAPEFILES)
  	mkdir tmp
diff -c -r1.1 regex.c
*** /tmp/,RCSt1a04621	Tue Oct  4 06:40:59 1988
--- regex.c	Tue Oct  4 06:40:39 1988
***************
*** 108,113 ****
--- 108,114 ----
   which reads a pattern, describes how it compiles,
   then reads a string and searches for it.  */
  
+ #include <alloca.h>
  
  #ifdef emacs