#
# Patches to gmp-1.3.2 and libdes-3.06 
# for TUCIF ESRA-1.x on Linux
#
# contributed by Ronald Wahl <Ronald.Wahl@Informatik.TU-Chemnitz.DE>
#
# Recommendation how to apply the patch:
#
# - cd to the installation top directory
#   there should be three subdirectories:
#        ESRA-1.x    gmp-1.3.2    libdes-3.06
#
# - patch -p1 < tucif-esra-linux.patch 
#
diff -rc ESRA/gmp-1.3.2/Makefile LINUX-ESRA/gmp-1.3.2/Makefile
*** ESRA/gmp-1.3.2/Makefile	Wed May 19 12:14:17 1993
--- LINUX-ESRA/gmp-1.3.2/Makefile	Wed Jul  5 23:21:33 1995
***************
*** 24,30 ****
  # local compiler.  Otherwise, you need look for the uses of LOCAL_CC below,
  # and handle those cases manually.
  LOCAL_CC = $(CC)
! OPT = -O -g
  CFLAGS = -I. $(OPT)
  AR = ar
  RANLIB=`if [ -r /bin/ranlib -o -r /usr/bin/ranlib ]; \
--- 24,30 ----
  # local compiler.  Otherwise, you need look for the uses of LOCAL_CC below,
  # and handle those cases manually.
  LOCAL_CC = $(CC)
! OPT = -O3
  CFLAGS = -I. $(OPT)
  AR = ar
  RANLIB=`if [ -r /bin/ranlib -o -r /usr/bin/ranlib ]; \
diff -rc ESRA/libdes-3.06/makefile LINUX-ESRA/libdes-3.06/makefile
*** ESRA/libdes-3.06/makefile	Tue Aug 30 06:52:44 1994
--- LINUX-ESRA/libdes-3.06/makefile	Wed Jul  5 23:33:21 1995
***************
*** 22,29 ****
  #OPTS2= -DALT_ECB
  
  OPTS= $(OPTS0) $(OPTS1) $(OPTS2)
! CC=cc
! CFLAGS= $(OPTS) +O3
  #CC=gcc
  #CFLAGS= -xO4 $(OPTS)
  #CFLAGS= +O4 $(OPTS)
--- 22,29 ----
  #OPTS2= -DALT_ECB
  
  OPTS= $(OPTS0) $(OPTS1) $(OPTS2)
! CC=gcc
! CFLAGS= $(OPTS) -O3
  #CC=gcc
  #CFLAGS= -xO4 $(OPTS)
  #CFLAGS= +O4 $(OPTS)
***************
*** 71,83 ****
  	$(CC) $(CFLAGS) -o destest destest.o libdes.a
  
  rpw: rpw.o libdes.a
! 	$(CC) $(CFLAGS) -o rpw rpw.o libdes.a
  
  speed: speed.o libdes.a
  	$(CC) $(CFLAGS) -o speed speed.o libdes.a
  
  des: des.o libdes.a
! 	$(CC) $(CFLAGS) -o des des.o libdes.a
  
  tar:
  	tar cf libdes.tar $(ALL)
--- 71,83 ----
  	$(CC) $(CFLAGS) -o destest destest.o libdes.a
  
  rpw: rpw.o libdes.a
! 	$(CC) $(CFLAGS) -o rpw rpw.o libdes.a -lbsd
  
  speed: speed.o libdes.a
  	$(CC) $(CFLAGS) -o speed speed.o libdes.a
  
  des: des.o libdes.a
! 	$(CC) $(CFLAGS) -o des des.o libdes.a -lbsd
  
  tar:
  	tar cf libdes.tar $(ALL)
diff -rc ESRA/libdes-3.06/read_pwd.c LINUX-ESRA/libdes-3.06/read_pwd.c
*** ESRA/libdes-3.06/read_pwd.c	Fri Nov  5 08:11:52 1993
--- LINUX-ESRA/libdes-3.06/read_pwd.c	Wed Jul  5 23:31:37 1995
***************
*** 15,21 ****
  #define TIOCGETP TCGETA
  #define TIOCSETP TCSETA
  #else /* !TERMIO */
! #include <sgtty.h>
  #endif
  #include <sys/ioctl.h>
  #else /* MSDOS */
--- 15,21 ----
  #define TIOCGETP TCGETA
  #define TIOCSETP TCSETA
  #else /* !TERMIO */
! #include <bsd/sgtty.h>
  #endif
  #include <sys/ioctl.h>
  #else /* MSDOS */
