home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / analg211.zip / patches.emx < prev    next >
Text File  |  1997-09-08  |  7KB  |  190 lines

  1. diff -cbr orig/analform.c analog2.11/analform.c
  2. *** orig/analform.c    Fri Mar 14 17:33:08 1997
  3. --- analog211/analform.c    Sun Sep  7 12:54:52 1997
  4. ***************
  5. *** 19,25 ****
  6.   
  7.   /* You must change the next line to indicate where the analog program lives */
  8.   
  9. ! #define COMMAND "/usr/local/etc/httpd/analog/analog"
  10.   #define MAXARGLENGTH (2048)   /* should be plenty */
  11.   #define OK (0)
  12.   #define ERR (-1)
  13. --- 19,25 ----
  14.   
  15.   /* You must change the next line to indicate where the analog program lives */
  16.   
  17. ! #define COMMAND "analog"
  18.   #define MAXARGLENGTH (2048)   /* should be plenty */
  19.   #define OK (0)
  20.   #define ERR (-1)
  21. diff -cbr orig/analhea2.h analog2.11/analhea2.h
  22. *** orig/analhea2.h    Fri Mar 14 17:36:50 1997
  23. --- analog2.11/analhea2.h    Sun Sep  7 12:11:50 1997
  24. ***************
  25. *** 49,54 ****
  26. --- 49,59 ----
  27.   #define DIRSEP '/'
  28.   #endif
  29.   
  30. + #ifdef __EMX__
  31. + #define VERSION VNUMBER "/emx"
  32. + #define DIRSEP '\\'
  33. + #endif
  34.   #ifdef _WIN32  /* so it can pick it up automatically */
  35.   #undef WIN32
  36.   #define WIN32
  37. ***************
  38. *** 81,89 ****
  39.   #ifndef NODIRENT
  40.   #ifndef VMSDIRENT
  41.   #ifndef MACDIRENT
  42. - #include <dirent.h>          /* Normal dirent */
  43.   #include <sys/types.h>
  44.   #include <sys/stat.h>
  45.   #else
  46.   #include "macdir.h"          /* Mac dirent */
  47.   #endif
  48. --- 86,94 ----
  49.   #ifndef NODIRENT
  50.   #ifndef VMSDIRENT
  51.   #ifndef MACDIRENT
  52.   #include <sys/types.h>
  53.   #include <sys/stat.h>
  54. + #include <dirent.h>          /* Normal dirent */
  55.   #else
  56.   #include "macdir.h"          /* Mac dirent */
  57.   #endif
  58. diff -cbr orig/analhead.h analog2.11/analhead.h
  59. *** orig/analhead.h    Fri Mar 14 17:33:10 1997
  60. --- analog2.11/analhead.h    Sun Sep  7 12:47:52 1997
  61. ***************
  62. *** 69,75 ****
  63.   #define MINGRAPHWIDTH (15)
  64.   /* bar charts must be at least this many characters wide */
  65.   
  66. ! #define FORMPROG "/cgi-bin/analform.cgi"
  67.   /* If you make an analog form interface, what will be the URL of the
  68.      program that processes it? (It should be wherever cgi-bin programs
  69.      go on your server; normally in a cgi-bin directory). */
  70. --- 69,75 ----
  71.   #define MINGRAPHWIDTH (15)
  72.   /* bar charts must be at least this many characters wide */
  73.   
  74. ! #define FORMPROG "/cgi-bin/analform"
  75.   /* If you make an analog form interface, what will be the URL of the
  76.      program that processes it? (It should be wherever cgi-bin programs
  77.      go on your server; normally in a cgi-bin directory). */
  78. ***************
  79. *** 42,48 ****
  80.   #define LANGDIR ANALOGDIR "lang/"
  81.   /* Directory where the language files live. */
  82.   
  83. ! #define DEFAULTCONFIGFILE ANALOGDIR "analog.cfg"
  84.   /* the name of the default configuration file; see README.html for a
  85.      description of this file. Use "none" for no configuration file. */
  86.   
  87. --- 42,49 ----
  88.   #define LANGDIR ANALOGDIR "lang/"
  89.   /* Directory where the language files live. */
  90.   
  91. ! /* #define DEFAULTCONFIGFILE ANALOGDIR "analog.cfg" */
  92. ! #define DEFAULTCONFIGFILE (getenv("ANALOG") ? getenv("ANALOG") : ANALOGDIR "analog.cfg")
  93.   /* the name of the default configuration file; see README.html for a
  94.      description of this file. Use "none" for no configuration file. */
  95.  
  96. diff -cbr orig/analog.cfg analog2.11/analog.cfg
  97. *** orig/analog.cfg    Fri Mar 14 17:33:10 1997
  98. --- analog2.11/analog.cfg    Sun Sep  7 12:33:34 1997
  99. ***************
  100. *** 4,9 ****
  101. --- 4,11 ----
  102.   # Here are a couple of configuration commands to get you started. Add any more
  103.   # you like from the Readme.
  104.   #
  105. + LANGFILE englishh.lng
  106. + DOMAINSFILE domains.tab
  107.   #
  108.   # REQINCLUDE pages
  109.   LINKINCLUDE pages
  110. diff -cbr orig/Makefile analog2.11/Makefile
  111. *** orig/Makefile    Fri Mar 14 17:33:08 1997
  112. --- analog2.11/Makefile    Sun Sep  7 12:37:34 1997
  113. ***************
  114. *** 1,16 ****
  115.   # Makefile for analog 2.1
  116.   # Please read Readme.html, or http://www.statslab.cam.ac.uk/~sret1/analog/
  117. ! CC = gcc           # which compiler to use: eg cc, acc, gcc. NB Different
  118.   #                    compilers need different CFLAGS, e.g., -O instead of -O2.
  119.   CFLAGS = -O2       # options, e.g. for optimisation or ANSI compilation.
  120.   DEFS =             # any of -DNOPIPES -DNODNS -DNODIRENT
  121. ! OS = UNIX          # Operating system: UNIX, DOS, WIN32, MAC or VMS
  122. ! LIBS = -lm         # extra libraries needed; Solaris 2 (SunOS 5) needs
  123.   #                    LIBS = -lnsl -lm and SCO Unix needs LIBS = -lsocket -lm
  124.   #                    IRIX reportedly needs LIBS = -lc -lm
  125.   PAGER = more       # Your favourite pager program, e.g. more
  126.   
  127. ! PROGRAM = analog
  128.   SOURCES = alias.c analog.c formgen.c hash.c init.c init2.c macstuff.c \
  129.       output.c output2.c sscanf.c utils.c win32.c
  130.   OBJS = alias.o analog.o formgen.o hash.o init.o init2.o macstuff.o \
  131. --- 1,16 ----
  132.   # Makefile for analog 2.1
  133.   # Please read Readme.html, or http://www.statslab.cam.ac.uk/~sret1/analog/
  134. ! CC = gcc -Zomf     # which compiler to use: eg cc, acc, gcc. NB Different
  135.   #                    compilers need different CFLAGS, e.g., -O instead of -O2.
  136.   CFLAGS = -O2       # options, e.g. for optimisation or ANSI compilation.
  137.   DEFS =             # any of -DNOPIPES -DNODNS -DNODIRENT
  138. ! OS = EMX              # Operating system: UNIX, DOS, WIN32, MAC or VMS
  139. ! LIBS = -lsocket -s -Zcrtdll -Zstack 512         # extra libraries needed; Solaris 2 (SunOS 5) needs
  140.   #                    LIBS = -lnsl -lm and SCO Unix needs LIBS = -lsocket -lm
  141.   #                    IRIX reportedly needs LIBS = -lc -lm
  142.   PAGER = more       # Your favourite pager program, e.g. more
  143.   
  144. ! PROGRAM = analog.exe
  145.   SOURCES = alias.c analog.c formgen.c hash.c init.c init2.c macstuff.c \
  146.       output.c output2.c sscanf.c utils.c win32.c
  147.   OBJS = alias.o analog.o formgen.o hash.o init.o init2.o macstuff.o \
  148. ***************
  149. *** 18,24 ****
  150.   HEADERS = analhead.h analhea2.h
  151.   
  152.   # Form interface options:
  153. ! FORMPROG = analform.cgi     # The program that processes the data from the form
  154.   FORMSRC = analform.c        # The source code for that program
  155.   FORMHTML = analogform.html  # Where the form itself will go
  156.   FORMOPTS =                  # Extra analog options when constructing the form
  157. --- 18,24 ----
  158.   HEADERS = analhead.h analhea2.h
  159.   
  160.   # Form interface options:
  161. ! FORMPROG = analform.exe     # The program that processes the data from the form
  162.   FORMSRC = analform.c        # The source code for that program
  163.   FORMHTML = analogform.html  # Where the form itself will go
  164.   FORMOPTS =                  # Extra analog options when constructing the form
  165. ***************
  166. *** 30,39 ****
  167.       @echo '***'
  168.   
  169.   $(OBJS): $(HEADERS) Makefile
  170. !     $(CC) $(CFLAGS) $(DEFS) -D$(OS) -c $*.c
  171.   
  172.   $(FORMPROG): $(FORMSRC) Makefile
  173. !     $(CC) $(CFLAGS) $(FORMSRC) -o $(FORMPROG)
  174.   
  175.   $(FORMHTML): $(PROGRAM) Makefile
  176.       ./$(PROGRAM) -form $(FORMOPTS) +O$(FORMHTML)
  177. --- 30,39 ----
  178.       @echo '***'
  179.   
  180.   $(OBJS): $(HEADERS) Makefile
  181. !     $(CC) $(CFLAGS) $(DEFS) -D$(OS) -c $*.c -o $@
  182.   
  183.   $(FORMPROG): $(FORMSRC) Makefile
  184. !     $(CC) $(CFLAGS) $(FORMSRC) -o $(FORMPROG) $(LIBS)
  185.   
  186.   $(FORMHTML): $(PROGRAM) Makefile
  187.       ./$(PROGRAM) -form $(FORMOPTS) +O$(FORMHTML)
  188.  
  189.