home *** CD-ROM | disk | FTP | other *** search
/ Dream 41 / Amiga_Dream_41.iso / Amiga / Programmation / c / gcc / make-3_68.lha / make-3.68 / make.diff < prev    next >
Encoding:
Text File  |  1993-08-18  |  6.8 KB  |  266 lines

  1. diff -2crw make-3.68/Makefile amiga-make-3.68/Makefile
  2. *** make-3.68/Makefile    Wed Aug 18 13:43:19 1993
  3. --- amiga-make-3.68/Makefile    Wed Aug 18 13:46:08 1993
  4. ***************
  5. *** 28,35 ****
  6.   srcdir = $(VPATH)
  7.   
  8. ! CC = gccv
  9.   
  10. ! CFLAGS = -g
  11. ! LDFLAGS = -g
  12.   
  13.   # Define these for your system as follows:
  14. --- 28,35 ----
  15.   srcdir = $(VPATH)
  16.   
  17. ! CC = gcc
  18.   
  19. ! CFLAGS = -O2
  20. ! LDFLAGS =
  21.   
  22.   # Define these for your system as follows:
  23. ***************
  24. *** 42,46 ****
  25.   # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  26.   # See also `config.h'.
  27. ! defines = -DHAVE_CONFIG_H -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
  28.   
  29.   # Which flavor of remote job execution support to use.
  30. --- 42,46 ----
  31.   # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  32.   # See also `config.h'.
  33. ! defines = -DHAVE_CONFIG_H -DNO_FLOAT
  34.   
  35.   # Which flavor of remote job execution support to use.
  36. ***************
  37. *** 238,242 ****
  38.   config.h: stamp-config ;
  39.   stamp-config: config.status $(srcdir)/config.h.in
  40. !     $(SHELL) config.status
  41.       touch stamp-config
  42.   
  43. --- 238,242 ----
  44.   config.h: stamp-config ;
  45.   stamp-config: config.status $(srcdir)/config.h.in
  46. ! #     $(SHELL) config.status
  47.       touch stamp-config
  48.   
  49. diff -2crw make-3.68/arscan.c amiga-make-3.68/arscan.c
  50. *** make-3.68/arscan.c    Wed May 12 21:05:03 1993
  51. --- amiga-make-3.68/arscan.c    Tue Aug 17 22:58:12 1993
  52. ***************
  53. *** 23,26 ****
  54. --- 23,29 ----
  55.   #include <sys/file.h>
  56.   #endif
  57. + #ifdef amigados
  58. + #include <stdlib.h>
  59. + #endif
  60.   
  61.   #ifndef NO_ARCHIVES
  62. diff -2crw make-3.68/config.h amiga-make-3.68/config.h
  63. *** make-3.68/config.h    Wed Aug 18 13:44:40 1993
  64. --- amiga-make-3.68/config.h    Tue Aug 17 23:49:55 1993
  65. ***************
  66. *** 93,97 ****
  67.   
  68.   /* Define if you have the ANSI C header files.  */
  69. ! #undef STDC_HEADERS
  70.   
  71.   /* Define if you don't have dirent.h, but have sys/dir.h.  */
  72. --- 93,97 ----
  73.   
  74.   /* Define if you have the ANSI C header files.    */
  75. ! #define STDC_HEADERS 1
  76.   
  77.   /* Define if you don't have dirent.h, but have sys/dir.h.  */
  78. ***************
  79. *** 167,168 ****
  80. --- 167,171 ----
  81.   /* Define if you have the seq library (-lseq).  */
  82.   #undef HAVE_SEQ
  83. + /* Define if you have psignal */
  84. + #define HAVE_PSIGNAL 1
  85. diff -2crw make-3.68/configure amiga-make-3.68/configure
  86. *** make-3.68/configure    Wed Aug 18 13:27:00 1993
  87. --- amiga-make-3.68/configure    Tue Aug 17 22:58:49 1993
  88. ***************
  89. *** 130,134 ****
  90.   
  91.   if test -z "$CC"; then
  92. !   # Extract the first word of `gcc', so it can be a program name with args.
  93.     set dummy gccv; word=$2
  94.     echo checking for $word
  95. --- 130,134 ----
  96.   
  97.   if test -z "$CC"; then
  98. !   # Extract the first word of `gccv', so it can be a program name with args.
  99.     set dummy gccv; word=$2
  100.     echo checking for $word
  101. diff -2crw make-3.68/dir.c amiga-make-3.68/dir.c
  102. *** make-3.68/dir.c    Wed Jun  2 20:56:37 1993
  103. --- amiga-make-3.68/dir.c    Tue Aug 17 22:59:43 1993
  104. ***************
  105. *** 493,497 ****
  106. --- 493,501 ----
  107.   /* Hooks for globbing.    */
  108.   
  109. + #ifndef amigados
  110.   #include <glob.h>
  111. + #else
  112. + #include "glob.h"
  113. + #endif
  114.   
  115.   /* Structure describing state of iterating through a directory hash table.  */
  116. diff -2crw make-3.68/function.c amiga-make-3.68/function.c
  117. *** make-3.68/function.c    Thu Jul 15 00:22:55 1993
  118. --- amiga-make-3.68/function.c    Tue Aug 17 23:00:37 1993
  119. ***************
  120. *** 22,25 ****
  121. --- 22,28 ----
  122.   #include "commands.h"
  123.   #include "job.h"
  124. + #ifdef amigados
  125. + #include <stdlib.h>
  126. + #endif
  127.   
  128.   static char *string_glob ();
  129. diff -2crw make-3.68/getopt.c amiga-make-3.68/getopt.c
  130. *** make-3.68/getopt.c    Thu Jul  8 17:20:26 1993
  131. --- amiga-make-3.68/getopt.c    Tue Aug 17 23:01:18 1993
  132. ***************
  133. *** 39,42 ****
  134. --- 39,45 ----
  135.   
  136.   #include <stdio.h>
  137. + #ifdef amigados
  138. + #include <string.h>
  139. + #endif
  140.   
  141.   /* Comment out all this code if we are using the GNU C Library, and are not
  142. diff -2crw make-3.68/glob/fnmatch.h amiga-make-3.68/glob/fnmatch.h
  143. *** make-3.68/glob/fnmatch.h    Sun Apr 11 22:54:32 1993
  144. --- amiga-make-3.68/glob/fnmatch.h    Wed Aug 18 00:07:03 1993
  145. ***************
  146. *** 36,40 ****
  147. --- 36,42 ----
  148.   
  149.   /* Bits set in the FLAGS argument to `fnmatch'.  */
  150. + #ifndef FNM_PATHNAME
  151.   #define FNM_PATHNAME    (1 << 0) /* No wildcard can ever match `/'.  */
  152. + #endif
  153.   #define FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  154.   #define FNM_PERIOD    (1 << 2) /* Leading `.' is matched only explicitly.  */
  155. diff -2crw make-3.68/job.c amiga-make-3.68/job.c
  156. *** make-3.68/job.c    Fri Jun 25 20:03:56 1993
  157. --- amiga-make-3.68/job.c    Tue Aug 17 23:03:48 1993
  158. ***************
  159. *** 24,28 ****
  160. --- 24,32 ----
  161.   
  162.   /* Default path to search for executables.  */
  163. + #ifndef amigados
  164.   static char default_path[] = ":/bin:/usr/bin";
  165. + #else
  166. + static char default_path[] = ":/bin:/usr/local/bin";
  167. + #endif
  168.   
  169.   /* Default shell to use.  */
  170. ***************
  171. *** 242,249 ****
  172.   #ifdef    WAIT_NOHANG
  173.         if (!block)
  174. !         pid = WAIT_NOHANG (&status);
  175.         else
  176.   #endif
  177. !         pid = wait (&status);
  178.   
  179.         if (pid < 0)
  180. --- 246,253 ----
  181.   #ifdef    WAIT_NOHANG
  182.         if (!block)
  183. !         pid = WAIT_NOHANG ((int *)&status);
  184.         else
  185.   #endif
  186. !         pid = wait ((int *)&status);
  187.   
  188.         if (pid < 0)
  189. ***************
  190. *** 988,992 ****
  191.   #endif
  192.         if (groups != 0 && ngroups == -1)
  193. !     ngroups = getgroups (ngroups_max, groups);
  194.   #endif    /* Have getgroups.  */
  195.   
  196. --- 992,996 ----
  197.   #endif
  198.         if (groups != 0 && ngroups == -1)
  199. !     ngroups = getgroups (ngroups_max, (int *)groups);
  200.   #endif    /* Have getgroups.  */
  201.   
  202. diff -2crw make-3.68/main.c amiga-make-3.68/main.c
  203. *** make-3.68/main.c    Wed Jul 14 22:56:38 1993
  204. --- amiga-make-3.68/main.c    Tue Aug 17 23:04:14 1993
  205. ***************
  206. *** 23,26 ****
  207. --- 23,29 ----
  208.   #include "job.h"
  209.   #include "getopt.h"
  210. + #ifdef amigados
  211. + #include <stdlib.h>
  212. + #endif
  213.   
  214.   
  215. diff -2crw make-3.68/read.c amiga-make-3.68/read.c
  216. *** make-3.68/read.c    Thu Jul 15 02:25:00 1993
  217. --- amiga-make-3.68/read.c    Tue Aug 17 23:05:26 1993
  218. ***************
  219. *** 82,89 ****
  220. --- 82,95 ----
  221.   static char *default_include_directories[] =
  222.     {
  223. + #ifndef amigados
  224.       INCLUDEDIR,
  225.       "/usr/gnu/include",
  226.       "/usr/local/include",
  227.       "/usr/include",
  228. + #else
  229. +     "/gcc/include",
  230. +     "/gcc/g++-include",
  231. +     "/gcc/os-include",
  232. + #endif
  233.       0
  234.     };
  235. diff -2crw make-3.68/remake.c amiga-make-3.68/remake.c
  236. *** make-3.68/remake.c    Mon Apr 12 20:52:45 1993
  237. --- amiga-make-3.68/remake.c    Tue Aug 17 23:07:35 1993
  238. ***************
  239. *** 964,970 ****
  240. --- 964,975 ----
  241.     static char *dirs[] =
  242.       {
  243. + #ifndef amigados
  244.         "/lib",
  245.         "/usr/lib",
  246.         LIBDIR,            /* Defined by configuration.  */
  247. + #else
  248. +      "/gcc/lib",
  249. +      "/gcc/blib",
  250. + #endif
  251.         0
  252.       };
  253. ***************
  254. *** 974,978 ****
  255. --- 979,987 ----
  256.   
  257.     /* Buffer to construct possible names in.  */
  258. + #ifndef amigados
  259.     char *buf = xmalloc (sizeof (LIBDIR) + 8 + strlen (libname) + 4 + 2 + 1);
  260. + #else
  261. +   char *buf = xmalloc (8 + strlen (libname) + 9 + 2 + 1);
  262. + #endif
  263.     char *file, **dp;
  264.   
  265.