.
[make.git] / ChangeLog
blobbdd1ce9e7528ba8fba3697633639697f820049d8
1 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3         * Version 3.74.5.
5         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
7 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9         * configure.in: Don't check for _sys_siglist.
10         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
11         no strsignal or sys_siglist.
13         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
14         same as `ifeq (a, b)'.
16         * job.c (reap_children): Don't call die if handling_fatal_signal.
18         * file.c (file_hash_enter): Allow renaming :: to : when latter is
19         non-target, or : to :: when former is non-target.
21         * job.c (start_job_command): Call block_sigs.
22         (block_sigs): New function, broken out of start_job_command.
23         (reap_children): Block fatal signals around removing dead child from
24         chain and adjusting job_slots_used.
25         * job.h: Declare block_sigs.
27         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
28         * main.c (main): Call remote_setup.
29         (die): Call remote_cleanup.
31         * job.c (reap_children): Quiescent value of shell_function_pid is
32         zero, not -1.
34         * main.c (print_version): Add 96 to copyright years.
36 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
38         * read.c (find_char_unquote): Avoid calling strlen on every call
39         just to throw away the value most of the time.
41 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
43         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
44         no '=', regardless of ARGC.
45         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
46         word is short option, regardless of WORDS.
48 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
50         * makefile.vms: Set LOADLIBES.
51         * makefile.com (link_using_library): Fix typo.
53 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
55         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
56         long.
58 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
60         * dir.c: WIN32 does not support inode. For now, fully qualified
61         pathname along with st_mtime will be keys for files.
62         Fixed problem where vpath can be confused when files
63         are added to a directory after the directory has already been
64         read in. The code now attempts to reread the directory if it
65         discovers that the datestamp on the directory has changed since
66         it was cached by make. This problem only seems to occur on WIN32
67         right now so it is lumped under port #ifdef WIN32.
69         * function.c: WIN32: call subproc library (CreateProcess()) instead of
70         fork/exec.
72         * job.c: WIN32: Added the code to do fork/exec/waitpid style processing
73         on WIN32 systems via calls to subproc library.
75         * main.c: WIN32: Several things added here. First, there is code
76         for dealing with PATH and SHELL defaults. Make tries to figure
77         out if the user has %PATH% set in the environment and sets it to
78         %Path% if it is not set already. Make also looks to see if sh.exe
79         is anywhere to be found. Code path through job.c will change
80         based on existence of a working Bourne shell. The checking for
81         default shell is done twice: once before makefiles are read in
82         and again after. Fall back to MSDOS style execution mode if no sh.exe
83         is found. Also added some debug support that allows user to pause make
84         with -D switch and attach a debugger. This is especially useful for
85         debugging recursive calls to make where problems appear only in the
86         sub-make.
88         * make.h: WIN32: A few macros and header files for WIN32 support.
90         * misc.c: WIN32: Added a function end_of_token_w32() to assist
91         in parsing code in read.c.
93         * read.c: WIN32: Fixes similar to MSDOS which allow colon to
94         appear in filenames. Use of colon in filenames would otherwise
95         confuse make.
97         * remake.c: WIN32: Added include of io.h to eliminate compiler
98         warnings. Added some code to default LIBDIR if it is not set
99         on WIN32.
101         * variable.c: WIN32: Added support for detecting Path/PATH
102         and converting them to semicolon separated lists for make's
103         internal use. New function sync_Path_environment()
104         which is called in job.c and function.c before creating a new
105         process. Caller must set Path in environment since we don't
106         have fork() to do this for us.
108         * vpath.c: WIN32: Added detection for filenames containing
109         forward or backward slashes.
111         * NMakefile: WIN32: Visual C compatible makefile for use with nmake.
112         Use this to build GNU make the first time on Windows NT or Windows 95.
114         * README.WIN32: WIN32: Contains some helpful notes.
116         * build_w32.bat: WIN32: If you don't like nmake, use this the first
117         time you build GNU make on Windows NT or Windows 95.
119         * config.h.WIN32: WIN32 version of config.h
121         * subproc.bat: WIN32: A bat file used to build the
122         subproc library from the top-level NMakefile. Needed because
123         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
125         * w32/include/dirent.h
126         * w32/compat/dirent.c: WIN32: opendir, readdir, closedir, etc.
128         * w32/include/pathstuff.h: WIN32: used by files needed functions
129         defined in pathstuff.c (prototypes).
131         * w32/include/sub_proc.h: WIN32: prototypes for subproc.lib functions.
133         * w32/include/w32err.h: WIN32: prototypes for w32err.c.
135         * w32/pathstuff.c: WIN32: File and Path/Path conversion functions.
137         * w32/subproc/build.bat: WIN32: build script for subproc library
138         if you don't wish to use nmake.
140         * w32/subproc/NMakefile: WIN32: Visual C compatible makefile for use
141         with nmake. Used to build subproc library.
143         * w32/subproc/misc.c: WIN32: subproc library support code
144         * w32/subproc/proc.h: WIN32: subproc library support code
145         * w32/subproc/sub_proc.c: WIN32: subproc library source code
146         * w32/subproc/w32err.c: WIN32: subproc library support code
148 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
150         * Version 3.74.4.
152         * GNUmakefile (vmsfiles): Fix typo.
154         * GNUmakefile (amigafiles): Add amiga.h.
156 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
158         * dir.c: New function: amigafy() to fold filenames
159         Changes HASH() to HASHI() to fold filenames on Amiga.
160         Stringcompares use strieq() instead of streq()
161         The current directory on Amiga is "" instead of "."
162         * file.c: Likewise.
164         * amiga.c: New function wildcard_expansion(). Allows to use
165         Amiga wildcards with $(wildcard )
167         * amiga.h: New file. Prototypes for amiga.c
169         * function.c: Use special function wildcard_expansion() for
170         $(wildcard ) to allow Amiga wildcards
171         The current directory on Amiga is "" instead of "."
173         * job.c: No Pipes on Amiga, too
174         (load_too_high) Neither on Amiga
175         ENV variable on Amiga are in a special directory and are not
176         passed as third argument to main().
178         * job.h: No envp on Amiga
180         * make.h: Added HASHI(). This is the same as HASH() but converts
181         it's second parameter to lowercase on Amiga to fold filenames.
183         * main.c: (main), variable.c Changed handling of ENV-vars. Make
184         stores now the names of the variables only and reads their contents
185         when they are accessed to reflect that these variables are really
186         global (ie. they CAN change WHILE make runs !) This handling is
187         made in lookup_variable()
189         * Makefile.ami: renamed file.h to filedep.h
190         Updated dependencies
192         * read.c: "find_semicolon" is declared as static but never defined.
193         No difference between Makefile and makefile on Amiga; added
194         SMakefile to *default_makefiles[].
195         (read_makefile) SAS/C want's two_colon and pattern_percent be set
196         before use.
197         The current directory on Amiga is "" instead of "."
198         Strange #endif moved.
200         * README.Amiga: updated feature list
202         * SMakefile: Updated dependencies
204         * variable.c: Handling of ENV variable happens inside lookup_variable()
206 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
208         * variable.c (try_variable_definition): Count parens in lhs variable
209         refs to avoid seeing =/:=/+= inside a ref.
211 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
213         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
214         conditional.
216         * main.c (main): Use unsigned for fread return.
218         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
219         conflict issues.
220         * dep.h: Fix prototype.
222         * function.c (expand_function) [_AMIGA]: Fix some typos.
223         (patsubst_expand): Make len vars unsigned.
225         * GNUmakefile (globfiles): Add AmigaDOS support files.
226         (distfiles): Add $(amigafiles).
227         (amigafiles): New variable.
229 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
231         * Added Amiga support in commands.c, dir.c, function.c,
232         job.c, main.c, make.h, read.c, remake.c
233         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
234         * dir.c: Amiga has filenames with Upper- and Lowercase,
235         but "FileName" is the same as "filename". Added strieq()
236         which is use to compare filenames. This is like streq()
237         on all other systems. Also there is no such thing as
238         "." under AmigaDOS.
239         * function.c: On Amiga, the environment is not passed as envp,
240         there are no pipes and Amiga can't fork. Use my own function
241         to create a new child.
242         * job.c: default_shell is "" (The system automatically chooses
243         a shell for me). Have to use the same workaround as MSDOS for
244         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
245         known on Amiga. Cloned code to run children from MSDOS. Own
246         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
247         * main.c: Force stack to 20000 bytes. Read environment from ENV:
248         device. On Amiga, exec_command() does return, so I exit()
249         afterwards.
250         * make.h: Added strieq() to compare filenames.
251         * read.c: Amiga needs special extension to have passwd. Only
252         one include-dir. "Makefile" and "makefile" are the same.
253         Added "SMakefile".  Added special code to handle device names (xxx:)
254         and "./" in rules.
255         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
256         instead of "lib%s.a".
257         * main.c, rule.c, variable.c: Avoid floats at all costs.
258         * vpath.c: Get rid of as many alloca()s as possible.
260 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
262         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
264 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
266         * GNUmakefile (vmsfiles): New variable.
267         (distfiles): Include $(vmsfiles).
269 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
271         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
272         * make.h (PARAMS): New macro.
273         * config.h-vms: New file.
274         * makefile.com: New file.
275         * makefile.vms: New file.
276         * readme.vms: New file.
277         * vmsdir.h: New file.
278         * vmsfunctions.c: New file.
279         * vmsify.c: New file.
280         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
281         * ar.c: Added prototypes and changes for VMS.
282         * commands.c: Likewise.
283         * commands.h: Likewise.
284         * default.c: Likewise.
285         * dep.h: Likewise.
286         * dir.c: Likewise.
287         * expand.c: Likewise.
288         * file.c: Likewise.
289         * function.c: Likewise.
290         * implicit.c: Likewise.
291         * job.c: Likewise.
292         * job.h: Likewise.
293         * main.c: Likewise.
294         * make.h: Likewise.
295         * misc.c: Likewise.
296         * read.c: Likewise.
297         * remake.c: Likewise.
298         * remote-stub.c: Likewise.
299         * rule.c: Likewise.
300         * rule.h: Likewise.
301         * variable.c: Likewise.
302         * variable.h: Likewise.
303         * vpath.c: Likewise.
304         * compatMakefile (srcs): Rename file.h to filedef.h.
306 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
308         * remake.c (check_dep): For a secondary file, try implicit and
309         default rules if appropriate.
311 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
313         * remake.c (check_dep): If an intermediate file exists,
314         do consider its actual date.
316 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
318         * file.h (struct file): New field `secondary'.
319         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
320         (remove_intermediates): Don't delete .SECONDARY files.
322 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
324         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
326 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
328         * Version 3.74.3.
330         * remake.c (f_mtime): Move future modtime check before FILE is
331         clobbered by :: loop.
333         * dir.c: Use canonical code from autoconf manual for dirent include.
334         [_D_NAMLEN]: Redefine NAMLEN using this.
335         (dir_contents_file_exists_p): Use NAMLEN macro.
336         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
338         * compatMakefile (objs): Add missing backslash.
340 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
342         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
343         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
345         * remake.c (f_mtime): Check for future timestamps; give error and mark
346         file as "failed to update".
348 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
350         * job.c: Don't declare unblock_sigs; job.h already does.
352 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
354         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
356         * job.c (NGROUPS_MAX): Don't try to define this macro.
358 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
360         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
361         (objs, srcs): Include their values here instead of references.
363 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
365         * Version 3.74.2.
367         * job.c (reap_children): Call unblock_sigs after start_job_command.
369 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
371         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
372         Avoid & before function names to silence bogus sunos4 compiler.
374         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
376 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
378         * Version 3.74.1.
380         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
381         reallocating it!
383 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
385         * misc.c (collapse_continuations): Fix skipping of trailing \s so
386         it can never dereference before the beginning of the array.
388         * read.c (find_semicolon): Function removed.
389         (read_makefile): Don't use find_semicolon or remove_comments for
390         rule lines.  Use find_char_unquote directly and handle quoted comments
391         properly.
393         * default.c: Remove all [M_XENIX] code.
395         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
396         (D_NAMLEN): Macro removed.
397         (FAKE_DIR_ENTRY): New macro.
398         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
399         D_NAMLEN.
400         (read_dirstream): Return a struct dirent * for new glob interface.
401         (init_dir): Function removed.
402         (dir_setup_glob): New function.
403         * main.c (main): Don't call init_dir.
404         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
405         GLOB_ALTDIRFUNC flag.
407         * misc.c (safe_stat): Function removed.
408         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
409         safe_stat.
411 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
413         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
415         * main.c (log_working_directory): Made global.
416         Print entering msg only once.
417         * make.h (log_working_directory): Declare it.
418         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
419         nonzero.  Call log_working_directory.
420         * remake.c: Pass new arg in `message' calls.
421         * job.c (start_job_command): Pass new arg to `message'; fix
422         inverted test in that call.
424 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
426         * job.c (start_job_command): Use `message' to print the command,
427         and call it with null if the command is silent.
428         * remake.c (touch_file): Use message instead of printf.
430 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
432         * main.c (enter_command_line_file): Barf if NAME is "".
434 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
436         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
438 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
440         * configure.in: Don't check for getdtablesize.
441         * job.c (getdtablesize): Remove decls and macros.
443 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
445         * main.c (define_makeflags): Omit command line variable
446         definitions from MFLAGS value.
448         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
449         indicating a valid, but empty, archive.
451 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
453         * dir.c (file_impossible_p): Correctly reset FILENAME to name
454         within directory before hash search.
456         * job.c (child_error): Do nothing if IGNORED under -s.
458         * job.c (exec_command): Correctly use ARGV[0] for script name when
459         running shell directly.
461 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
463         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
464         dup'ing from them.  Don't try to close all excess descriptors;
465         getdtablesize might return a huge value.  Any open descriptors in
466         the parent should have FD_CLOEXEC set.
467         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
469 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
471         * read.c (read_all_makefiles): Properly append default makefiles
472         to the end of the `read_makefiles' chain.
474 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
476         * Version 3.74 released.
478 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
480         * Version 3.73.3.
482 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
484         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
485         install-info cmd.
487 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
489         * file.c (print_file): Grok update_status of 1 for -q.
491 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
493         * Version 3.73.2.
495 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
497         * file.c (remove_intermediates): Fix inverted test to bail under
498         -n for signal case.  Bail under -q or -t.
499         Skip files with update_status==-1.
501         * job.c (job_next_command): Skip empty lines.
502         (new_job): Don't test the return of job_next_command.
503         Just let start_waiting_job handle the case of empty commands.
505 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
507         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
509         * Version 3.73.1.
511 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
513         * remake.c (notice_finished_file): Set FILE->update_status to zero
514         if it's -1.
516 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
518         * Version 3.73 released.
520 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
522         * main.c (main): Fixed braino in assert.
524         * Version 3.72.13.
526 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
528         * main.c: Avoid string in assert expression.  Some systems are broken.
530 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
532         * main.c (main): Handle 1 and 2 returns from update_goal_chain
533         makefile run properly.
535         * Version 3.72.12.
537         * main.c (handle_non_switch_argument): New function, broken out of
538         decode_switches.
539         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
540         When getopt_long returns EOF, break the loop and handle remaining args
541         with a simple second loop.
543         * remake.c (remake_file): Set update_status to 2 instead of 1 for
544         no rule to make.  Mention parent (dependent) in error message.
545         (update_file_1): Handle FILE->update_status == 2 in -d printout.
546         * job.c (start_job_command, reap_children): Set update_status to 2
547         instead of 1 for failed commands.
549 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
551         * job.c (search_path): Function removed (was already #if 0'd out).
552         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
554 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
556         * configure.bat: Write @CPPFLAGS@ translation.
558 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
560         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
561         to not skip the elt immediately preceding `l(...'.
563 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
565         * Version 3.72.11.
567         * read.c (find_char_unquote): Make second arg a string of stop
568         chars instead of a single stop char.  Stop when any char in the
569         string is hit.  All callers changed.
570         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
571         instead of using two calls.  If the match is not a ; but a #,
572         return zero.
573         * misc.c: Changed find_char_unquote callers here too.
575         * Version 3.72.10.
577         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
578         __MSDOS__.
580         * GNUmakefile (globfiles): Add glob/configure.bat.
581         (distfiles): Add configh.dos, configure.bat.
583 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
585         Fixes for MS-DOS from DJ Delorie.
586         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
587         as separator in "C:\...".
588         * configh.dos (STDC_HEADERS): Define only if undefined.
589         (HAVE_SYS_PARAM_H): Don't define this.
590         (HAVE_STRERROR): Define this.
591         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
593         * Version 3.72.9.
595         * main.c (decode_switches): Reset optind to 1 instead of 0.
597 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
599         * main.c (decode_switches): If non-option arg is "-", ignore it.
601 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
603         * Version 3.72.8.
605 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
607         * Version 3.72.7.
609 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
611         * main.c (main): Pass missing arg to tmpnam.
613         * configure.in: Check for strsignal.
614         * job.c (child_error): Use strsignal.
615         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
617         * misc.c (strerror): Fix swapped args in sprintf.
619 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
621         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
623 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
625         * main.c (print_version): Add 95 to copyright years.
627         * Version 3.72.6.
629         * job.c (start_job_command): Remember to call notice_finished_file
630         under -n when not recursing.  To do this, consolidate that code
631         under the empty command case and goto there for the -n case.
633 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
635         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
636         declare it int.
638 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
640         * read.c (read_makefile): For bogus line starting with tab, ignore
641         it if blank after removing comments.
643         * main.c: Cast results of `alloca' to `char *'.
644         * expand.c: Likewise.
646 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
648         * Version 3.72.5.
650         * configure.in: Check for mktemp.
651         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
653         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
654         (_SC_OPEN_MAX)'.
655         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
656         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
657         using sysconf.
659 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
661         * remake.c (update_file_1): When !MUST_MAKE, don't set
662         FILE->update_status to zero before calling notice_finished_file.
663         (notice_finished_file): Touch only when FILE->update_status is zero.
664         (remake_file): Set FILE->update_status to zero after not calling
665         execute_file_command and deciding to touch instead.
667 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
669         * main.c (debug_signal_handler): New function; toggles debug_flag.
670         (main): Handle SIGUSR1 with that.
672 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
674         * compatMakefile (realclean): Remove Info files.
676 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
678         * Version 3.72.4.
680         * job.c (start_job_command): Save and restore environ around vfork
681         call.
682         (search_path): Function #if 0'd out.
683         (exec_command): Use execvp instead of search_path.
685         * expand.c (variable_expand): Rewrote computed variable name and
686         substitution reference handling to be simpler.  First expand the
687         entire text between the parens if it contains any $s, then examine
688         the result of that for subtitution references and do no further
689         expansion while parsing them.
691         * job.c (construct_command_argv_internal): Handle " quoting too,
692         when no backslash, $ or ` characters appear inside the quotes.
694         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
695         defined, just use int.
697 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
699         * default.c (default_variables) [__hpux]: Remove special
700         definition of ARFLAGS.  Existence of the `f' flag is not
701         consistent across HPUX versions; and one might be using GNU ar
702         anyway.
704         * compatMakefile (clean): Don't remove Info files.
706         * compatMakefile (check): Remove gratuitous target declaration.
708 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
710         * compatMakefile (ETAGS, CTAGS): Don't use -t.
712         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
714         * main.c (decode_switches): For --help, print usage to stdout.
716 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
718         * Version 3.72.3.
720         * remake.c (update_file_1): Do set_command_state (FILE,
721         cs_not_started) only if old state was deps_running.
723 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
725         * job.c (start_waiting_job): Use set_command_state.
727         * build.template (CPPFLAGS): New variable.
728         (prefix, exec_prefix): Set from @...@.
729         (compilation loop): Pass $CPPFLAGS to compiler.
731         * GNUmakefile (build.sh.in): Make it executable.
733         * GNUmakefile (globfiles): Add configure.in, configure.
735         * Version 3.72.2.
737         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
739         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
741         * configure.in: Don't check for ranlib.
743 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
745         * remake.c (notice_finished_file): Only mark also_make's as
746         updated if really ran cmds.
748 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
750         * configure.in: Put dnls before random whitespace.
752 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
754         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
755         (RANLIB): Variable removed.
756         (prefix, exec_prefix): Set these from @...@.
757         (.c.o): Use $(CPPFLAGS).
758         (glob/libglob.a): Don't pass down variables to sub-make.
759         glob/Makefile should be configured properly by configure.
760         (distclean): Remove config.log and config.cache (autoconf stuff).
762 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
764         * acconfig.h: Add #undef HAVE_UNION_WAIT.
765         * configure.in: Converted to Autoconf v2.
766         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
767         of DIRENT, SYSDIR, NDIR.
768         * build.sh.in (prefix, exec_prefix): Set these from @...@.
769         (CPPFLAGS): New variable, set from @CPPFLAGS@.
770         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
771         * install.sh: File renamed to install-sh.
773         * main.c (define_makeflags): When no flags, set WORDS to zero.
775 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
777         * Version 3.72.1.
779         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
780         empty.
782 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
784         * Version 3.72.
786 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
788         * Version 3.71.5.
790         * job.c (start_job_command): When ARGV is nil, only set
791         update_state and call notice_finished_file if job_next_command
792         returns zero.
794         * job.c (start_job_command): Call notice_finished_file for empty
795         command line.
797 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
799         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
800         COMMANDS_NOERROR.
802 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
804         * Version 3.71.4.
806 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
808         * file.c (snap_deps): Set command_flags bits in all :: entries.
810 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
812         * make.h (posix_pedantic): Declare it.
813         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
814         snap_deps.
815         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
816         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
817         command_flags and don't set -i.  Likewise .SILENT.
818         * job.c (start_job_command): In FLAGS initialization, OR in
819         CHILD->file->command_flags.
820         * file.h (struct file): New member `command_flags'.
822 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
824         * main.c (switches): Bump flag values for --no-print-directory and
825         --warn-undefined-variables, so neither is 1 (which indicates a
826         nonoption argument).
828 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
830         * main.c (main): Add missing code in .IGNORE test.
832 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
834         * variable.c (define_automatic_variables): Define +D and +F.
836 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
838         * main.c (main): Define hidden automatic variable with command
839         vars, and MAKEOVERRIDES to a reference to that.
840         (define_makeflags): If posix_pedantic, write a reference to that
841         instead.
843 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
845         * main.c (posix_pedantic): New variable.
846         (main): Set posix_pedantic if .POSIX is a target.
847         Fix .IGNORE and .SILENT checks to require is_target.
849         * commands.c (set_file_variables): Define new automatic variable
850         $+, like $^ but before calling uniquize_deps.
852         * job.c (reap_children): Call delete_child_targets for non-signal
853         error if .DELETE_ON_ERROR is a target.
855 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
857         * Version 3.71.3.
859 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
861         * job.c (reap_children): Don't change C->file->command_state when
862         dying.  Test it only after calling start_job_command for a new
863         command line.  When no more cmds, just set C->file->update_status.
864         (start_job_command): When the last line is empty or under -n, set
865         C->file->update_status.
866         (start_waiting_job): Grok cs_not_started after start_job_command
867         as success.
868         (new_job): Set C->file->update_status when there are no cmds.
869         (job_next_command): When out of lines, don't set
870         CHILD->file->update_status or CHILD->file->command_state.
872         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
873         if nonzero, also double $s.
874         (main): Define MAKEOVERRIDES from command_variables here.
875         (define_makeflags): Don't use command_variables here; instead write a
876         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
878         * dir.c [__MSDOS__]: Fixed typo.
880         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
882 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
884         * remake.c: Include <assert.h> and use assert instead of printfs
885         and abort.
887         * main.c (decode_switches): Loop until optind hits ARGC, not just
888         until getopt_long returns EOF.  Initialize C to zero before loop;
889         in loop if C is EOF, set optarg from ARGV[optind++], else call
890         getopt_long.
891         (decode_env_switches): Use variable_expand instead of
892         allocated_variable_expand.  Allocate a fresh buffer to copy split
893         words into; scan characters by hand to break words and
894         debackslashify.
895         (shell_quote): New function.
896         (define_makeflags): Allocate doubled space for switch args, and command
897         variable names and values; use shell_quote to quote those things.
899 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
901         * Version 3.71.2.
903         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
905         * main.c (decode_switches): The non-option return from getopt is
906         1, not 0.
907         (command_variables): New type and variable.
908         (decode_switches, decode_env_switches): After making a variable
909         definition, record the struct variable pointer in the
910         command_variables chain.
911         (define_makeflags): If ALL, write variable definitions for
912         command_variables.
914         * main.c (other_args): Variable removed.
915         (goals, lastgoal): New static variables (moved from auto in main).
916         (main): Don't process OTHER_ARGS at all.
917         Don't set variable MAKEOVERRIDES at all; define MAKE to just
918         $(MAKE_COMMAND).
919         (init_switches): Prepend a - {return in order} instead of a +
920         {require order}.
921         (decode_switches): Don't set OTHER_ARGS at all.
922         Grok '\0' return from getopt_long as non-option argument; try
923         variable definition and (if !ENV) enter goal targets here.
924         (decode_env_switches): Use allocated_variable_expand to store value.
925         Use find_next_token to simplify word-splitting loop.  Don't
926         prepend a dash to uninterpreted value.  Instead, if split into
927         only one word, try variable definition and failing that prepend a
928         dash to the word and pass it to decode_switches as a single arg.
930 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
932         * remake.c (notice_finished_file): Only recheck modtimes if
933         FILE->command_state was cs_running on entry (meaning the commands
934         actually just ran).
935         (update_file_1): Whenever we set FILE->update_status, call
936         notice_finished_file instead of just set_command_state.
937         * job.c (start_job_command): Whenever we set
938         CHILD->file->update_status, call notice_finished_file instead of
939         just set_command_state.
941 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
943         * default.c: Add missing ".
945         * job.c: Changed all assignments of command_state members to calls
946         to set_command_state.
947         * remake.c: Likewise.
948         * file.c (set_command_state): New function.
949         * file.h: Declare set_command_state.
951         * main.c (init_switches): Put a + first in options.
953 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
955         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
956         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
957         * main.c (directory_before_chdir): New variable, moved out of main
958         (was local).
959         (main) [__MSDOS__]: Look for \ or : to delimit last component of
960         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
961         (die): Change back to `directory_before_chdir' before dying.
962         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
963         [__MSDOS__] and not.
964         * job.c [__MSDOS__]: Include <process.h>.
965         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
966         dos_batch_file): New variables.
967         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
968         (unblock_sigs) [__MSDOS__]: Do nothing.
969         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
970         (load_too_high) [__MSDOS__]: Always return true.
971         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
972         Use PATH_SEPARATOR_CHAR instead of ':'.
973         (construct_command_argv_internal) [__MSDOS__]: Wholly different
974         values for sh_chars and sh_cmds.  Wholly new code to handle shell
975         scripts.
976         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
977         implementation.
978         * dir.c [__MSDOS__] (dosify): New function.
979         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
980         process the result instead of FILENAME itself.
981         (file_impossible_p) [__MSDOS__]: Likewise.
982         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
983         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
984         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
985         `bison -y', and LEX to `flex'.
986         * configure.bat, configh.dos: New files.
987         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
988         intermediates and exit.
990         * commands.c (set_file_variables): Add parens in length
991         computation in .SUFFIXES dep loop to quiet compiler warning.  From
992         Jim Meyering.
994         * read.c (read_makefile): Free FILENAME if we allocated it.  From
995         Jim Meyering.
997 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
999         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
1000         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
1001         * read.c (construct_include_path): Use safe_stat in place of stat.
1002         * job.c (search_path): Use safe_stat in place of stat.
1003         * dir.c (find_directory): Use safe_stat in place of stat.
1004         * commands.c (delete_target): Use safe_stat in place of stat.
1005         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
1006         * remake.c (name_mtime): Use safe_stat in place of stat.
1007         (touch_file) [EINTR]: Do EINTR looping around fstat.
1009 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1011         * read.c (read_makefile): Check for a shell command first, and
1012         then strip leading tabs before further checking if it's not a
1013         shell command line.
1015         * make.h [__arm]: Undefine POSIX.
1016         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
1017         functions that return int.
1019         * job.c (construct_command_argv_internal): After swallowing a
1020         backslash-newline combination, if INSTRING is set goto string_char
1021         (new label) for normal INSTRING handling code.
1023 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1025         * configure.in: Don't check for sys_siglist and _sys_siglist with
1026         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
1028 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1030         * Version 3.71.1 released.
1032         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
1033         _POSIX_VERSION for these declarations.
1035         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
1036         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
1038 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1040         * Version 3.71 released.
1042         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
1043         and [HAVE_SETGID].  Every system has those, and configure doesn't
1044         check for them.
1046         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
1048         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
1049         getloadavg.c.
1050         (loadavg.c): Link or copy it from getloadavg.c.
1051         (distclean): Remove loadavg.c.
1053 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1055         * Version 3.70.4.
1057         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
1058         and HAVE_SETEGID.
1060         * default.c (default_terminal_rules): In SCCS rules, put
1061         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
1062         only before the file name.
1063         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
1065 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1067         * job.c (construct_command_argv_internal): Swallow
1068         backslash-newline combinations inside '' strings too.
1070 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1072         * read.c (do_define): Call collapse_continuations on each line
1073         before all else.
1075 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1077         * job.c (construct_command_argv_internal): Notice newline inside
1078         '' string when RESTP is non-null.
1080 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1082         * Version 3.70.3.
1084         * remake.c (update_goal_chain): Reset FILE to G->file after the
1085         double-colon loop so it is never null for following code.
1087         * read.c (read_makefile): Fix `override define' parsing to skip
1088         whitespace after `define' properly.
1090         * compatMakefile (srcdir): Define as @srcdir@; don't reference
1091         $(VPATH).
1092         (glob/Makefile): New target.
1094 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1096         * Version 3.70.2.
1098         * misc.c (remove_comments): Use find_char_unquote.
1099         * make.h (find_char_unquote): Declare it.
1100         * read.c (find_char_unquote): New function, generalized from
1101         find_percent.
1102         (find_percent, find_semicolon, parse_file_seq): Use that.
1104 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1106         * implicit.c (pattern_search): Always allocate new storage for
1107         FILE->stem.  It is not safe to store STEM's address because it
1108         might be auto storage.
1110         * configure.in: Check for seteuid and setegid.
1111         * misc.c [HAVE_SETEUID]: Declare seteuid.
1112         [HAVE_SETEGID]: Declare setegid.
1113         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
1114         [HAVE_SETEGID]: Use setegid.
1116         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
1117         to preserve whether it's 2 for error or 1 for -q trigger.  When
1118         STATUS gets nonzero and -q is set, always stop immediately.
1119         * main.c (main, decode_switches): Die with 2 for errors.
1120         (main): Accept 2 return from update_goal_chain and die with that.
1121         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
1122         answer.
1123         * job.c (reap_children): Die with 2 for error.
1124         (start_job_command): Set update_status to 2 for error.  Set it to
1125         1 when we would run a command and question_flag is set.
1127         * read.c (read_makefile): Don't mark makefiles as precious.  Just
1128         like other targets, they can be left inconsistent and in need of
1129         remaking by aborted commands.
1131         * read.c (read_makefile): Write no error msg for -include file.
1133 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1135         * commands.c (fatal_error_signal): Don't unblock signals.
1137         * file.h (struct file): Change member `double_colon' from flag to
1138         `struct file *'.
1139         * read.c (record_files): Set double_colon pointer instead of flag.
1140         * main.c (main): When disqualifying makefiles for updating, use
1141         double_colon pointer to find all entries for a file.
1142         * file.c (enter_file): If there is already a double-colon entry
1143         for the file, set NEW->double_colon to that pointer.
1144         (file_hash_enter): Use FILE->double_colon to find all entries to
1145         set name.
1146         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
1147         (update_file): Use FILE->double_colon pointer to find all entries.
1148         (f_mtime): Likewise.
1149         (notice_finished_file): Propagate mtime change to all entries.
1151         * variable.c (try_variable_definition): Return after abort.
1153 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1155         * read.c (read_makefile): Remove unused variable.
1156         (parse_file_seq): When removing an elt that is just `)', properly
1157         fix up the previous elt's next pointer.
1159 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
1161         * configure.in: Do AC_SET_MAKE.
1162         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
1164 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1166         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
1167         the search string is the empty string, find a match at the end of
1168         each word (using end_of_token in place of sindex).
1170         * misc.c (end_of_token): Don't treat backslashes specially; you
1171         can no longer escape blanks with backslashes in export, unexport,
1172         and vpath.  This was never documented anyway.
1174 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1176         * read.c (read_makefile): Variable name for `define' is not just
1177         first token; use whole rest of line and strip trailing blanks.
1179 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1181         * Version 3.70.1.
1183         * read.c (read_makefile): Add -d msg stating args.
1185         * read.c (read_makefile): Use isspace to skip over leading
1186         whitespace, and explicitly avoid skipping over tabs.  Don't want
1187         to skip just spaces though; formfeeds et al should be skipped.
1189         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
1191         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
1192         sizeof ar_name for max length to compare.
1194         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
1195         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
1197         * main.c (main): Call user_access after setting `program', in case
1198         it needs to use it in an error message.
1200         * read.c (read_makefile): Ignore an empty line starting with a tab.
1202 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1204         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
1205         AC_COMPILE_CHECK that is now its contents.
1207 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1209         * make.h: #undef strerror after #include <string.h>.
1210         [! ANSI_STRING]: Declare strerror.
1212 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1214         * misc.c (strerror): #undef any macro before function definition.
1216 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1218         * variable.c (try_variable_definition): Calculate BEG before loop
1219         to strip blanks by decrementing END.  Don't decr END to before BEG.
1221         * read.c (read_makefile): Skip over leading space characters, but
1222         not tabs, after removing continuations and comments (it used to
1223         use isspace).
1225 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1227         * variable.c (define_automatic_variables): In $(@D) et al, use
1228         patsubst to remove trailing slash.
1230         * commands.c (delete_target): New function, broken out of
1231         delete_child_targets.  Check for archive members and give special msg.
1232         (delete_child_targets): Use delete_target.
1234 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1236         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
1237         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
1239 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1241         * GNUmakefile (tarfiles): Omit make-doc.
1242         (make-$(version).tar): Include make.info*.
1244 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1246         * compatMakefile (configure, config.h.in): Comment out rules.
1248 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1250         * compatMakefile (binprefix, manprefix): New variables.
1251         (instname): Variable removed.
1252         (install): Use $({bin,man}prefix)make in place of $(instname).
1253         File targets likewised renamed.
1255 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1257         * Version 3.70 released.
1259 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1261         * Version 3.69.3.
1263         * read.c (parse_file_seq): Inside multi-word archive ref
1264         translation loop, check NEW1==0 at end and break out of the loop.
1266         * GNUmakefile (make-$(version).tar): Distribute install.sh.
1267         * install.sh: New file.
1269         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
1270         cmds outside subshell parens, to avoid "command not found" msgs
1271         from the shell.
1273 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1275         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
1276         Redirect output & error from get to /dev/null.
1277         Fix reversed sense of test.
1279 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1281         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
1282         braces inside if condition command; some shells lose.
1284 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1286         * Version 3.69.2.
1288         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
1289         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
1291         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
1293 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1295         * main.c (main): Cast result of pointer arith to unsigned int
1296         before passing to define_variable for envars.  Matters when
1297         sizeof(unsigned)!=sizeof(ptrdiff_t).
1299 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1301         * configure.in: Add new check for SCCS_GET_MINUS_G.
1302         * config.h.in: Add #undef SCCS_GET_MINUS_G.
1303         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
1304         place of `-G $@' in SCCS commands.
1305         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
1306         to "-G$@".
1308         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
1309         (so it goes in config.status), rather than afterward.
1311         * ar.c (ar_member_date): Don't call enter_file on the archive file
1312         if it doesn't exist (by file_exists_p).
1314         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
1315         with `$$dir/make.info' in install-info invocation (oops).
1317         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
1318         we do not unlink and free PATH.
1320         * file.c (print_file_data_base): Fix inverted calculation for
1321         average files per hash bucket.
1323         * read.c (readline): When we see a NUL, give only a warning and
1324         synthesize a newline to terminate the building line (used to
1325         fatal).  Move fgets call into the loop condition, and after the
1326         loop test ferror (used to test !feof in the loop).
1328 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1330         * configure.in: Check for strerror in AC_HAVE_FUNCS.
1332 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1334         Differentiate different flavors of missing makefile error msgs,
1335         removing gratuitous `fopen: ' and giving caller for included makefiles.
1336         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
1337         (perror_with_name, pfatal_with_name): Use strerror instead of
1338         replicating its functionality.
1339         * read.c (read_makefile): Return int instead of void.
1340         (read_all_makefiles, read_makefile): Change callers to notice zero
1341         return and give error msg.
1343 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1345         * Version 3.69.1.
1347         * default.c: Put `-G $@' before $< in SCCS cmds.
1349 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1351         * read.c (read_makefile): After trying a variable defn, notice if
1352         the line begins with a tab, and diagnose an error.
1354 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1356         * Version 3.69.
1358 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1360         * Version 3.68.10.
1362         * implicit.c (try_implicit_rule): Look for a normal rule before an
1363         archive rule.
1365 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1367         * function.c (expand_function: `sort'): Double NWORDS when it
1368         overflows, instead of adding five.
1370         * compatMakefile (clean): Remove loadavg.
1372 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1374         * Version 3.68.9.
1376         * file.h (NEW_MTIME): Define new macro.
1377         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
1378         current time returned from system.  Removed variable NOW.
1379         * remake.c (notice_finished_file): Use NEW_MTIME in place of
1380         current time here too.
1382 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1384         * Version 3.68.8.
1386         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1387         cmds and !DEPS_CHANGED unless also !NOEXIST.
1389 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1391         * read.c (parse_file_seq): When converting multi-word archive
1392         refs, ignore a word beginning with a '('.
1394 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1396         * configure.in: Check for sys/timeb.h.
1397         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1399 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1401         * Version 3.68.7.
1403         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
1404         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
1405         TARGNAME to initialize PERCENTS[0].
1407 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1409         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1410         Remove AC_USG; it is no longer used.
1412         * file.c (print_file): New function, broken out of
1413         print_file_data_base.
1414         (print_file_data_base): Call it.
1415         * rule.c (print_rule): New function, broken out of
1416         print_rule_data_base.
1417         (print_rule_data_base): Call it.
1419 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1421         * default.c (install_default_suffix_rules): New function, broken
1422         out of install_default_implicit_rules.
1423         (install_default_implicit_rules): Move suffix rule code there.
1424         * make.h: Declare install_default_suffix_rules.
1425         * main.c (main): Call install_default_suffix_rules before reading
1426         makefiles.  Move convert_to_pattern call before
1427         install_default_implicit_rules.
1429         * job.h (struct child): Make `pid' member type `pid_t' instead of
1430         `int'.
1432         * compatMakefile (RANLIB): New variable, set by configure.
1433         (glob/libglob.a): Pass RANLIB value down to submake.
1435         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1436         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1437         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1438         defined but NOFILES_MAX is, define it to be that.
1440 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1442         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1443         is distributed.
1445 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1447         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1449 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1451         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1452         is another symbol for | in some shells.
1453         * main.c (main): Add it to CMD_DEFS quoting list as well.
1455 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1457         * job.c (construct_command_argv_internal): Remove '=' from
1458         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1459         first word without an unquoted '='.
1461         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1463 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1465         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1467         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1469         * commands.c (delete_child_targets): Don't delete phony files.
1471         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1472         see a `+' at the beginning of the command line.
1474 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1476         * Version 3.68.6.
1478 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1480         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1482 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1484         * expand.c (variable_expand): Fatal on an unterminated reference.
1486 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1488         * Version 3.68.5.
1490         * variable.c (define_automatic_variables): Define new o_default
1491         variable `MAKE_VERSION' from version_string and remote_description.
1493         * make.h (version_string, remote_description): Declare these here.
1494         * main.c: Don't declare version_string.
1495         (print_version): Don't declare remote_description.
1497 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1499         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1500         before restoring the old pointer.
1502 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1504         * compatMakefile ($(objs)): Depend on config.h.
1506         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1508         * configure.in: Touch stamp-config after AC_OUTPUT.
1510 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1512         * Version 3.68.4.
1514 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1516         * make.h: Include <config.h> instead of "config.h".
1518 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1520         * main.c (main): Make all variables interned from ENVP be v_export.
1521         * variable.c (try_variable_definition): In v_default case, don't
1522         check for an o_file variable that `getenv' finds.
1524         * job.c (reap_children): New local variable ANY_LOCAL; set it
1525         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1527         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1529         * function.c (expand_function): #if 0 out freeing of ENVP since it
1530         is environ.
1532 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1534         * Version 3.68.3.
1536         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1537         * job.c (reap_children): Scan the chain for remote children and
1538         never call remote_status if there are none.
1540         * function.c (expand_function: `shell'): #if 0 out calling
1541         target_environment; just set ENVP to environ instead.
1543         * job.c (reap_children): Check for negative return from
1544         remote_status and fatal for it.
1545         When blocking local child wait returns 0, then try a blocking call
1546         to remote_status.
1548 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1550         * compatMakefile (clean): Delete make.info* and make.dvi here.
1551         (distclean): Not here.
1553         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1554         compilers that don't like enum values used as ints.
1556 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1558         * compatMakefile (loadavg): Add $(LOADLIBES).
1560 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1562         * Version 3.68.2.
1564         * compatMakefile (loadavg, check-loadavg): New targets.
1565         (check): Depend on check-loadavg.
1567         * compatMakefile (glob/libglob.a): Depend on config.h.
1569         * misc.c (log_access): Write to stderr instead of stdout.
1571 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1573         * Version 3.68.1.
1575 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1577         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1578         <unistd.h> #ifdef HAVE_UNISTD_H.
1580         * compatMakefile (.PHONY): Put after `all' et al.
1582         * configure.in: Add AC_IRIX_SUN.
1584 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1586         * Version 3.68.
1588 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1590         * Version 3.67.8.
1592 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1594         * Version 3.67.7.
1596         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1597         Run install-info script if present.
1599 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1601         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1603         * configure.in: Add AC_STAT_MACROS_BROKEN.
1605 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1607         * Version 3.67.6.
1609         * read.c (read_makefile): Recognize directive `-include', like
1610         `include' but sets RM_DONTCARE flag.
1612         * variable.c (target_environment): If FILE is nil, use
1613         current_variable_set_list in place of FILE->variables.
1614         * function.c (expand_function: `shell'): Get an environment for
1615         the child from target_environment instead of using environ.
1617         * dep.h: Declare read_all_makefiles here.
1618         (RM_*): Define new enum constants.
1619         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1620         Treat it as a bit mask containing RM_*.
1621         (read_all_makefiles): For default makefiles, set D->changed to
1622         RM_DONTCARE instead of 1.
1623         * main.c: Don't declare read_all_makefiles here.
1624         (main): Check `changed' member of read_makefiles elts for RM_*
1625         flags instead of specific integer values.
1627 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1629         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1631 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1633         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1634         as well as VPATH.
1635         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1636         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1638         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1639         PERCENTS, whose storage is not consumed by create_pattern_rule.
1641         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1643 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1645         * Version 3.67.5.
1647         * rule.c (max_pattern_targets): New variable.
1648         (count_implicit_rule_limits): Compute its value.
1649         * rule.h: Declare it.
1650         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1651         times bigger.  Move adding new TRYRULES elt inside the inner
1652         targets loop, so each matching target gets its own elt in MATCHES
1653         and CHECKED_LASTSLASH.
1655         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1656         instead of just `file' in error msg.
1658 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1660         * job.c (construct_command_argv): Turn off
1661         --warn-undefined-variables around expansion of SHELL and IFS.
1662         * read.c (tilde_expand): Likewise for HOME.
1663         (read_all_makefiles): Likewise for MAKEFILES.
1664         * vpath.c (build_vpath_lists): Likewise for VPATH.
1666         * main.c (warn_undefined_variables_flag): New flag variable.
1667         (switches): Add --warn-undefined-variables.
1668         * make.h (warn_undefined_variables_flag): Declare it.
1669         * expand.c (warn_undefined): New function.
1670         (reference_variable): Call it if the variable is undefined.
1671         (variable_expand): In substitution ref, call warn_undefined if the
1672         variable is undefined.
1674         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1675         `%.tex: %.w %.ch' rules.
1676         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1677         (default_suffixes): Add `.ch'.
1679 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1681         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1682         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1683         and `.w.tex'.
1685 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1687         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1689 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1691         * Version 3.67.4.
1693         * read.c (multi_glob): Don't free OLD and OLD->name in the
1694         FOUND!=0 fork.  Use new block-local variable F instead of
1695         clobbering OLD.
1697         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1698         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1699         contains no metacharacters.
1701 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1703         * ar.c (ar_glob{_match,_alphacompare}): New function.
1705         * dep.h [! NO_ARCHIVES]: Declare it.
1706         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1708         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1709         multi_glob (which doesn't take a 3rd arg).
1710         * rule.c (install_pattern_rule): Likewise.
1711         * default.c (set_default_suffixes): Here too.
1712         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1714         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1715         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1717 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1719         * compatMakefile (installdirs): Actually pass directory names.
1720         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1721         if it fails, echo a warning msg, but don't make the rule fail.
1723         * read.c (tilde_expand): New function, broken out of tilde_expand.
1724         (multi_glob): Call it.
1725         (construct_include_path): Expand ~ in directory names.
1726         * dep.h: Declare tilde_expand.
1727         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1728         (main): Expand ~ in -C args.
1729         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1731 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1733         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1735         * main.c (main): Put result of alloca in temporary variable with
1736         simple assignment, to make SGI compiler happy.
1738 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1740         * Version 3.67.3.
1742         * main.c (main): Before re-execing, remove intermediate files, and
1743         print the data base under -p.  Sexier debugging message.
1745         * implicit.c (pattern_search): Allocate an extra copy of the name
1746         of a winning intermediate file when putting it in FOUND_FILES.
1748 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1750         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1751         multi_glob (which doesn't take a 3rd arg).
1753         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1754         chars within D_NAMLEN that are NULs.
1756         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1757         into `other_args'.
1758         For string switch, don't savestring `optarg'.
1759         (main): Don't free elts of makefiles->list that are "-".
1760         Use alloca'd rather than savestring'd storage for elts of
1761         makefiles->list that are temporary file names.
1762         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1763         * file.c (enter_file): Don't strip `./'s.
1764         * main.c (enter_command_line_file): New function.
1765         (main): Use it in place of enter_file for command-line goals from
1766         other_files, and for old_files and new_files.
1768 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1770         * Version 3.67.2.
1772         * compatMakefile (.SUFFIXES): Add .info.
1773         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1774         else in $srcdir.  Use basename to remove dir name from installed name.
1776 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1778         * implicit.c (pattern_search): When interning FOUND_FILES, try
1779         lookup_file first; if found, free the storage for our copy of the name.
1781 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1783         * Version 3.67.1.
1785         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1786         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1788 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1790         * rule.c (convert_suffix_rule): New function.
1791         (convert_to_pattern): Use it instead of doing all the work here
1792         several times.
1793         For target suffix `.a', generate both the archive magic rule and
1794         the normal rule.
1796         * compatMakefile (distclean): Remove stamp-config.
1798 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1800         * Version 3.67.
1802         * file.c (remove_intermediates): Don't write extra space after `rm'.
1804         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1805         (print_usage_flag): New variable.
1806         (switches: --help): Make type `flag', to set print_usage_flag.
1807         (init_switches): Remove `usage_and_exit' case.
1808         (decode_switches): Likewise.
1809         (decode_switches): Print usage if print_usage_flag is set.
1810         When printing usage, die with status of BAD.
1811         (main): Die with 0 if print_version_flag.
1813 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1815         * Version 3.66.
1817 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1819         * compatMakefile (installdirs): New target.
1820         (install): Depend on it.
1822 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1824         * Version 3.65.2.
1826 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1828         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1829         set LASTPATH to PATH, not NEXT.
1831         * dir.c (read_dirstream): Break out of loop after incrementing
1832         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1833         dereference DS->contents->files[DIRFILE_BUCKETS].
1835         * read.c (read_makefile): Clear no_targets after reading a
1836         targetful rule line.
1838         * main.c (main): If print_version_flag is set, exit after printing
1839         the version.
1840         (switches): Change --version docstring to say it exits.
1842         * make.h [butterfly]: #undef POSIX.
1844 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1846         * Version 3.65.1.
1848         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1849         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1851         * function.c (handle_function): Use fatal instead of
1852         makefile_fatal when reading_filename is nil.
1854         * configure.in: Add AC_GETGROUPS_T.
1855         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1857 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1859         * Version 3.65.
1861 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1863         * function.c (handle_function): Fatal for unmatched paren.
1865 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1867         * Version 3.64.3.
1869         * commands.c (handling_fatal_signal): New variable.
1870         (fatal_error_signal): Set it.
1871         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1872         * make.h: Declare handling_fatal_signal.
1874         * expand.c (reference_variable): New function, snippet of code
1875         broken out of simple-reference case of variable_expand.
1876         (variable_expand): Use it for simple refs.
1877         (variable_expand): When checking for a computed variable name,
1878         notice a colon that comes before the final CLOSEPAREN.  Expand
1879         only up to the colon, and then replace the pending text with a
1880         copy containing the expanded name and fall through to subst ref
1881         handling.
1882         (variable_expand): Don't bother expanding the name if a colon
1883         appears before the first $.
1884         (expand_argument): Use alloca instead of savestring.
1885         (variable_expand): For subst ref, expand both sides of = before
1886         passing to [pat]subst_expand.  Use find_percent instead of lindex
1887         to check the lhs for a %.
1889 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1891         * Version 3.64.2.
1893 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1895         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1897         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1898         not to multi_glob.
1900 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1902         * Version 3.64.1.
1904         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1905         we read the member name in any of the fashions that allow it to be
1906         arbitrarily long.  Pass its negation to FUNCTION.
1907         (describe_member): Take TRUNCATED from ar_scan and print it.
1908         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1909         the first sizeof (struct ar_hdr.ar_name) chars.
1910         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1911         * ar.c (ar_member_date_1): Likewise.
1913 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1915         * job.c (reap_children): Before calling start_job_command to start
1916         the next command line, reset C->remote by calling start_remote_job_p.
1918 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1920         * arscan.c (ar_scan): New local var NAMEMAP.
1921         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1922         flag IS_NAMEMAP.  When extracting the member name, always put a
1923         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1924         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1925         like " /N", get full name from NAMEMAP+N.
1926         Else if NAME looks like "#1/N", read N chars from the
1927         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1928         the elt's data into alloca'd NAMEMAP.
1929         (ar_name_equal): #if 0 truncating code.
1931         * make.h: Don't declare vfork at all.  It returns int anyway,
1932         unless <unistd.h> declared it; and we conflicted with some systems.
1934         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1935         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1936         define it to something like "-no-print-directory".
1937         Use %g format instead of %f for floating-valued things.
1939 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1941         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1942         to change remote-%.dep to remote-stub.dep.
1944 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1946         * Version 3.64.
1948 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1950         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1952         * Version 3.63.8.
1954 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1956         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1957         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1958         else to "get".
1959         * default.c (default_variables): Set GET to macro SCCS_GET.
1961         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1962         if nonzero.  I hope this is the last time this argument is added
1963         or removed.
1964         (read_makefile): Pass it 1 when parsing include file names.
1965         Pass it 1 when parsing target file names.
1966         Pass it 1 when parsing static pattern target pattern names.
1967         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1968         * default.c (set_default_suffixes): Pass it 1 when parsing
1969         default_suffixes.
1970         * function.c (string_glob): Pass it 0 here.
1972 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1974         * misc.c (log_access): New function.
1975         ({init,user,make,child}_access): Call it.
1976         (child_access): Abort if !access_inited.
1978         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1979         single-letter option.
1980         (init_switches, decode_switches, define_makeflags): An option with
1981         no single-letter version is no longer indicated by a value of -1;
1982         instead a value that is !isalnum.
1983         (init_switches): Don't put such switches into the string, only
1984         into the long_option table.
1986         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1988         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1989         bsdcc defined WIF* to use union wait.
1991         * main.c (struct command_switch): Change member `c' to type int.
1992         (switches): Make const.
1993         (decode_switches): Use `const struct command_switch *'.
1994         (define_makeflags): Likewise.
1996         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1998 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2000         * Version 3.63.7.
2002         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
2003         Removed AC_MEMORY_H.
2004         * make.h [USG, NeXT]: Don't test these.
2005         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
2006         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
2007         [! ANSI_STRING]: Put decls of bcopy et al here.
2008         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
2009         [HAVE_SIGSETMASK]: Test this rather than USG.
2010         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
2011         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
2012         It doesn't hurt to do both if they are both defined, and testing
2013         USG is useless.
2014         * dir.c: Rationalize directory header conditionals.
2015         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
2017         * default.c (default_suffixes): Add `.txinfo'.
2018         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
2020         * variable.c (try_variable_definition): Replace RECURSIVE flag
2021         with enum FLAVOR, which can be simple, recursive, or append.
2022         Recognize += as append flavor.  Set new variable VALUE in a switch
2023         on FLAVOR.  For append flavor, prepend the variable's old value.
2024         If the variable was previously defined recursive, set FLAVOR to
2025         recursive; if it was defined simple, expand the new value before
2026         appending it to the old value.  Pass RECURSIVE flag to
2027         define_variable iff FLAVOR == recursive.
2029         * variable.c (try_variable_definition): Use alloca and bcopy for
2030         NAME, instead of savestring.  Might as well use stack storage
2031         since we free it immediately anyway.
2033 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2035         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
2037         * main.c (define_makeflags): Rename `struct flag' member `switch'
2038         to `cs', which is not a reserved word.
2040 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2042         * job.c (new_job): Call start_waiting_jobs first thing.
2043         (start_waiting_job): Changed return type from void to int.
2044         Return 0 when putting the child on the waiting_jobs chain.
2045         (start_waiting_jobs): Don't check load and job_slots here.
2046         Always take a job off the chain and call start_waiting_job on it;
2047         give up and return when start_waiting_job returns zero.
2049         * main.c (define_makeflags: struct flag): Change member `char c' to
2050         `struct command_switch *switch'.
2051         (ADD_FLAG): Set that to CS instead of CS->c.
2052         If CS->c is -1, increment FLAGSLEN for the long name.
2053         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
2054         the long name instead.
2056         * compatMakefile (stamp-config): New target of old config.h rule.
2057         Touch stamp-config after running config.status.
2058         (config.h): Just depend on stamp-config, and have empty commands.
2060 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2062         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
2064         * configure.in (AC_HAVE_FUNCS): Check for psignal.
2066 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2068         * main.c (long_option_aliases): Remove "new"; it is already an
2069         unambiguous prefix of "new-file".
2071 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2073         * Version 3.63.6.
2075 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2077         * vpath.c (selective_vpath_search): When adding the
2078         name-within-directory at the end of NAME, and we don't add a
2079         slash, don't copy FILENAME in one char too far into NAME.
2081         * variable.c (define_automatic_variables): Find default_shell's
2082         length with strlen, not numerology.
2084 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2086         * main.c (define_makeflags): Add the elts of a string option in
2087         reverse order, so they come out right when reversed again.
2089 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2091         * compatMakefile (make.info): Use `-o make.info'.
2093 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2095         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
2096         reflect new use.
2097         (objs): Replace remote.o with remote-$(REMOTE).o.
2098         (srcs): Replace remote.c with remote-$(REMOTE).c.
2099         (remote.o): Rule removed.
2101         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
2102         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
2103         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
2104         * build.template (REMOTE): New var; set to @REMOTE@.
2105         (objs): Add remote-${REMOTE}.o.
2107 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2109         * Version 3.63.5.
2111         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
2112         "Rejecting impossible" -d msg.
2114         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
2115         mod'd values there; never mod {OLD,NEW}HASH.
2117 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2119         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
2121         * compatMakefile (VPATH): Set this to @srcdir@.
2122         (srcdir): Set this to $(VPATH).
2124         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
2125         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
2126         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
2128         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
2130         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
2132 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2134         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
2135         as the sed delimiter char.
2137 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2139         * Version 3.63.4.
2141         * rule.h (struct rule): Removed `subdir' member.
2142         * rule.c (new_pattern_rule): No need to clear it.
2143         (count_implicit_rule_limits): Set the `changed' flag in each dep
2144         that refers to a nonexistent directory.  No longer set rule-global
2145         `subdir' flag with that information.
2146         (print_rule_data_base): Don't record info on `subdir' flags.
2148         * implicit.c (pattern_search): Check the DEP->changed flag rather
2149         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
2150         if it is set, the file might exist even though the DEP->changed
2151         flag is set.
2153         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
2154         name arg to dir_file_exists_p to check for existence of directory.
2156         * implicit.c (pattern_search): Inside dep-finding loop, set
2157         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
2158         rather than computing it anew.
2160         * commands.c (set_file_variables): Must alloca space for PERCENT
2161         and copy it, to avoid leaving the trailing `)' in the value.
2163         * misc.c (remove_comments): Fixed backslash-checking loop
2164         condition to allow it to look at the first char on the line.
2165         P2 >= LINE, not P2 > LINE.
2167         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
2168         $@, rm $@.old and mv $@ to $@.old.
2170         * variable.c (try_variable_definition): Take new args FILENAME and
2171         LINENO.  Fatal if the variable name is empty.
2172         * read.c (read_makefile): Change callers.
2173         * main.c (main): Likewise.
2175         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
2176         that configure will replace with the group owning /dev/kmem.
2178 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2180         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
2181         selective_vpath_search.
2182         (selective_vpath_search): Take second arg MTIME_PTR.
2183         If the dir cache thinks a file exists, stat it to make sure, and
2184         put the modtime in *MTIME_PTR.
2185         * remake.c (library_search): Take second arg MTIME_PTR.
2186         When we find a match, record its mtime there.
2187         Pass MTIME_PTR through to vpath_search to do same.
2188         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
2189         store it in FILE->last_mtime if set nonzero.
2190         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
2192         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
2193         so globbing looks somewhere it will find things.
2195         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
2196         not `$(srcdir)/make.info*'; no need to use basename.
2198 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2200         * Version 3.63.3.
2202         * compatMakefile (install): Add missing ;\s.
2204         Make -, @, and + prefixes on a pre-expanded command line affect
2205         all lines in the expansion, not just the first.
2206         * commands.h (struct commands): Replace `lines_recurse' member
2207         with `lines_flags'.
2208         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
2209         that flag byte.
2210         * commands.c (chop_commands): Set `lines_flags' instead of
2211         `lines_recurse'.  Record not only + but also @ and - prefixes.
2212         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
2213         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
2214         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
2215         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
2216         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
2217         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
2219         * remake.c (update_goal_chain): Set G->file to its prev after
2220         checking for G being finished, since that check needs to examine
2221         G->file.
2223         * configure.in (union wait check) [HAVE_WAITPID]: Try using
2224         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
2225         don't work together, we should not use union wait.
2227         * Version 3.63.2.
2229         * remake.c (update_goal_chain): When G->file->updated, move
2230         G->file to its prev.  We aren't finished until G->file is nil.
2232 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2234         * main.c (starting_directory): New global variable.
2235         (main): Set it to cwd after doing -Cs.
2236         (log_working_directory): Use it, rather than computing each time.
2237         * make.h: Declare it.
2239         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
2241         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
2242         ARGV, rather than LEN words plus one byte.
2244 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2246         * compatMakefile ($(bindir)/$(instname)): Put - before
2247         install_setgid command line, so its failure won't be an error.
2248         (infodir): New variable.
2249         (install): Depend on $(infodir)/$(instname).info.
2250         ($(infodir)/$(instname).info): New target.
2252         * read.c (read_makefile): If FILENAMES is nil when we see a line
2253         starting with a tab, don't treat it as a command.  Just fall
2254         through, rather than giving an error.
2256         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
2257         command line, don't clear it before continuing.  We want
2258         subsequent command lines to be ignored as well.
2260         * job.c (new_job): Before expanding each command line, collapse
2261         backslash-newline combinations that are inside var or fn references.
2263 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2265         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
2267         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
2269         * job.c [POSIX] (unblock_sigs): Made global.
2270         [!POSIX] (unblock_sigs): Move defns to job.h.
2271         * job.h [POSIX] (unblock_sigs): Declare.
2273 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2275         * read.c (read_makefile): In vpath parsing, after finding the
2276         pattern token, take entire rest of line as the search path, not
2277         just the next token.
2279         * compatMakefile (remote.o): Depend on remote-*.c.
2281 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2283         * commands.c (set_file_variables): Don't define any F or D versions.
2284         * variable.c (define_automatic_variables): Define them here as
2285         recursively-expanded variables that use the dir and notdir funcs.
2287         * variable.c (target_environment): In v_default case, don't export
2288         o_default or o_automatic variables.
2290         * configure.in (union wait check): Remove ` and ' inside C code;
2291         they confuse the shell script.
2293 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2295         * Version 3.63.1.
2297         * vpath.c (construct_vpath_list): When skipping further processing
2298         of an elt that is ".", don't also skip the code that pushes P past
2299         the next separator.
2301         * compatMakefile (distclean): Don't remove make-*.
2303         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
2304         defined.  If one cannot use WEXITSTATUS with a `union wait'
2305         argument, we don't want to believe the system has `union wait' at all.
2307         * remake.c (update_file): Do nothing to print "up to date" msgs.
2308         (update_goal_chain): Do it here instead.
2309         Use the `changed' flag of each goal's `struct dep' to keep track
2310         of whether files_remade (now commands_started) changed around a
2311         call to update_file for that goal.
2312         When a goal is finished, and its file's update_status is zero (i.e.,
2313         success or nothing done), test the `changed' flag and give an "up
2314         to date" msg iff it is clear.
2315         * make.h (files_remade): Renamed to commands_started.
2316         * remake.c: Changed defn.
2317         (update_goal_chain): Changed uses.
2318         * job.c (start_job_command): Increment commands_started here.
2319         (reap_children): Not here.
2321         * remake.c (update_goal_chain): Don't do anything with files'
2322         `prev' members.  update_file now completely handles this.
2324         * variable.c (target_environment): Don't expand recursive
2325         variables if they came from the environment.
2327         * main.c (define_makeflags): For flags with omitted optional args,
2328         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
2329         so stored cannot have more flags appended to the same word.
2331 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2333         * variable.c (print_variable_set): In vars/bucket calculation,
2334         don't spuriously multiply by 100.
2336         * Version 3.63.
2338         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
2339         Don't define if already defined.
2341         * remake.c (update_file): Don't keep track of the command_state before
2342         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
2343         and don't test it to decide to print the "is up to date" msg.
2344         Testing for files_remade having changed should always be sufficient.
2345         The old method lost when we are called in the goal chain run on a
2346         makefile, because the makefile's command_state is already
2347         `cs_finished' from the makefile chain run.
2349         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
2351         * configure.in: Rewrote wait checking.
2352         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
2353         Use AC_HAVE_FUNCS to check for waitpid and wait3.
2354         Use a compile check to test just for `union wait'.
2355         * job.c: Rewrote conditionals accordingly.
2356         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
2357         [HAVE_WAIT3]: Likewise.
2358         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
2360         * configure.in: Set CFLAGS and LDFLAGS before all checks.
2362         * dir.c: Add static forward decls of {open,read}_dirstream.
2364 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2366         * Version 3.62.31.
2368         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
2370         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
2371         * build.template (CFLAGS, LDFLAGS): Same here.
2372         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
2373         Set them to -g if not defined in the environment.
2375         * remake.c (library_search): Use LIBNAME consistently, setting it
2376         only once, to be the passed name sans `-l'.
2377         Pass new var FILE to be modified by vpath_search.
2379 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2381         * Version 3.62.30.
2383         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
2384         job_slots.
2386         * configure.in: Add AC_CONST for the sake of getopt.
2388         * read.c (read_makefile): Continue after parsing `override'
2389         directive, rather than falling through to lossage.
2390         Check for EOL or blank after "override define".
2392         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2394 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2396         * Version 3.62.29.
2398         * main.c (define_makeflags): After writing everything into
2399         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2400         just wrote " -".  Always terminate the string at *P.
2402         * remake.c (library_search): When constructing names in std dirs,
2403         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2404         buffer we are writing into!).
2406 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2408         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2409         define" when IGNORING is true.
2411         * compatMakefile (distclean): Remove config.status and build.sh.
2413 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2415         * Version 3.62.28.
2417         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2418         (char *).
2420         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2422         * variable.c (define_automatic_variables): Override SHELL value for
2423         origin o_env_override as well as o_env.
2425         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
2426         add the names of the glob objects (w/subdir) to %objs%.
2427         * build.template (globobjs): Removed.
2428         Take basename of $objs before linking.
2430 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2432         * Version 3.62.27.
2434         * configure.in (AC_OUTPUT): Also edit build.sh.
2435         * build.template: New file.
2436         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2437         (make-$(version).tar.Z): Depend on build.sh.in.
2439         * main.c (die): Call print_data_base if -p.
2440         (main): Don't call it here.
2442         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2443         into -DHAVE_CONFIG_H.
2445 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2447         * Version 3.62.26.
2449         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2450         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2451         * compatMakefile (install_setgid): New var, set by configure.
2452         (install): Install setgid $(group) only if $(install_setgid) is true.
2454 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2456         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2457         message saying that load limits are not supported.
2459         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2460         not try to use PATH's next link after freeing PATH.
2462         * main.c (define_makeflags): Rewritten; now handles string-valued
2463         option, and has no arbitrary limits.
2464         (switches): Set `toenv' flag for -I and -v.
2466         * main.c (decode_env_switches): Cast return value of alloca to char *.
2468         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2469         setre[gu]id in place of set[gu]id.
2471 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2473         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2474         origin o_default.
2476         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2477         Testing STDC_HEADERS should be sufficient.
2479         * job.h: Declare start_waiting_jobs.
2481         * read.c (read_makefile): Add missing parens in if stmt that find
2482         conditional directives.
2484         * main.c (main): Declare init_dir.
2485         * implicit.c (pattern_search): Always use two % specs in a
2486         DEBUGP2, and always pass two non-nil args.
2487         Cast field width args to int.
2488         Add missing parens in !RULE->subdir if stmt.
2489         * function.c (expand_function, patsubst_expand): Add parens around
2490         assignments inside `while' stmts.
2491         * commands.c (print_commands): Cast field width args to int.
2493         * read.c (do_define): Cast return value of alloca to (char *).
2495         * main.c (init_switches): New function, broken out of decode_switches.
2496         (decode_switches): Take new arg ENV.  If set, ignore non-option
2497         args; print no error msgs; ignore options with clear `env' flags.
2498         (decode_env_switches): Rewritten to chop envar value into words
2499         and pass them to decode_switches.
2500         (switches): Set `env' flag for -I and -v.
2502         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2504 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2506         * Version 3.62.25.
2508         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2509         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2510         we don't need these anyway.
2512         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2513         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2514         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2515         but its set[gu]id functions aren't; its setre[gu]id functions work.
2517         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2519         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2521         * configure.in: Call AC_PROG_CC.
2522         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2524         * compatMakefile: Add .NOEXPORT magic target.
2526 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2528         * main.c (print_version): Updated copyright to include 93.
2530 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2532         * make.h [_AIX]: Don't declare alloca.
2534 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2536         * Version 3.62.24.
2538         * compatMakefile (objs): Add signame.o.
2539         (srcs): Add signame.[ch].
2541         * compatMakefile (srcs): Add config.h.in.
2542         (remote.o): Add -I. before -I$(srcdir).
2544 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2546         * Version 3.62.23.
2548         * read.c (readline): Fatal when LEN==0, indicating a line starting
2549         with a NUL.
2550         (readline): Take new arg LINENO, for use in error msg.
2551         (read_makefile, do_define): Pass it.
2553         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2554         (.c.o): Add -I. before -I$(srcdir).
2556 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2558         * read.c (read_makefile): Accept and ignore a rule with no targets.
2560         * compatMakefile (ALLOCA_SRC): New variable.
2561         (srcs): Include its value.
2563         * read.c (struct conditional): Renamed member `max_ignoring' to
2564         `allocated'; added new member `seen_else'.
2565         (conditional_line): Initialize seen_else flag when starting an `if...';
2566         set it when we see an `else'; fatal if set when we see `else'.
2567         (read_makefile): Fatal "missing `endif'" if there are any pending
2568         conditionals, not just if we are still ignoring.
2570 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2572         * compatMakefile (manext): Set to 1, not l.
2573         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2575         * file.c (file_hash_enter): Don't call uniquize_deps here.
2576         * read.c (record_files): Likewise.
2577         * implicit.c (pattern_search): Likewise.
2578         * commands.c (set_file_variables): Call it only here.
2580         * default.c (default_variables) [__convex__]: FC=fc.
2582         * variable.c (target_environment): Expand the values of recursively
2583         expanded variables when putting them into the environment.
2584         * expand.c (recursively_expand): Made global.
2585         * make.h (recursively_expand): Declare it.
2587         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2588         when a dep's command_state is cs_running or cs_deps_running.
2590         * read.c (read_makefile): Changed error msg for spurious cmds to
2591         not say "first target".
2593 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2595         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2596         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2597         * compatMakefile (config.h, configure, config.h.in): New rules.
2598         (defines): Removed @DEFS@.
2600 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2602         * compatMakefile (realclean): Just depend on distclean; no cmds.
2603         (distclean): Do what realclean did before; also remove Makefile and
2604         config.h; don't remove configure.
2605         (info, dvi): New targets; depend on make.{info,dvi}.
2606         (doc): Removed target.
2607         (MAKEINFO, TEXI2DVI): New vars.
2608         (make.info, make.dvi): Use them instead of explicit cmds.
2610 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2612         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2614 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2616         * main.c (long_option_aliases): Add --new-file alias for -W.
2618         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2619         to CXXFLAGS.
2621         * read.c (do_define): Expand the variable name before using it.
2623         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2624         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2626         * remake.c (library_search): Search for libNAME.a in cwd; look in
2627         vpath before looking in standard dirs, not after.
2628         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2630 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2632         * default.c (default_pattern_rules, default_terminal_rules): Added
2633         brackets around initializers.
2635         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2636         (try_variable_definition): Expand the name before defining the var.
2638         * job.c (init_siglist): Removed function.
2639         Removed decl of `sys_siglist'.
2640         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2641         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2642         only under these conditions.
2643         * main.c (main): Don't declare init_siglist.
2644         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2646 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2648         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2649         nil; instead just set it to MOREDEPS.
2651 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2653         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2654         loop that sets MAXELEM.
2656 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2658         * Version 3.62.22.
2660 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2662         * job.c (start_job_command): Under -n, increment files_remade after
2663         processing (i.e., printing) all command lines.
2665 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2667         * read.c (record_files): Append new deps if this rule has no
2668         commands; prepend them to existing deps if this rule has no commands.
2670         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2672         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2673         (read_makefile): Changed callers.
2674         * function.c (string_glob): Likewise.
2675         * rule.c (install_pattern_rule): Likewise.
2677 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2679         * remake.c (files_remade): Made global.
2680         (notice_finished_file): Don't increment files_remade here; this
2681         function gets called in many situations where no remaking was in
2682         fact done.
2683         * job.c (reap_children): Do it here instead, when we know that
2684         actual commands have been run for the file.
2685         * make.h (files_remade): Declare it.
2687 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2689         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2690         separate elts in the search path.
2692         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2693         The search path can contain spaces now.
2695 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2697         * compatMakefile (check): New target; no-op.
2699         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2700         testing for OLDHASH==0 but before using the value.
2701         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2702         to file_hash_enter.
2704         * file.c (rename_file): Notice when OLDFILE->cmds came from
2705         default.c, and don't try to print ->filename in that case.
2707 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2709         * remake.c (update_file): Don't process F->also_make here.
2710         (notice_finished_file): Don't process FILE->also_make if no attempt
2711         to update FILE was actually made.
2712         Fixed to call f_mtime directly to refresh their modtimes.
2714 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2716         * read.c (find_percent): Don't increment P again after skipping
2717         an escaped %.
2719         * expand.c (variable_expand): In call to patsubst_expand, don't
2720         find `%'s ourselves; let that function do it.
2722         * read.c (read_makefile: record_waiting_files): Don't call
2723         record_files if FILENAMES is nil.
2724         (read_makefile): All alternatives in the parsing, except for rule
2725         lines, fall through to the end of the loop.  At the end of the
2726         loop, do record_waiting_files so we notice later spurious cmds.
2728 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2730         * variable.c (define_automatic_variables): Free old value of SHELL
2731         before replacing it.
2733 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2735         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2737         * dir.c (open_dirstream): Cast return value to __ptr_t.
2739         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2741         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2742         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2743         Define as (get_path_max ()).
2744         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2745         [! PATH_MAX] (get_path_max): Declare fn.
2746         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2748 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2750         * Version 3.62.21.
2752         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2753         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2754         SYS_SIGLIST_DECLARED.
2756         * dir.c (file_impossible): When initializing DIR->contents, set
2757         DIR->contents->dirstream to nil.
2759         * compatMakefile (GLOB): Define new variable.
2760         (objs): Use it, rather than glob/libglob.a explicitly.
2762         * read.c (parse_file_seq): When stripping "./", handle cases like
2763         ".///foo" and "./////".
2764         * file.c (lookup_file, enter_file): Likewise.
2766 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2768         * dir.c (struct dirstream, {open,read}_dirstream): New
2769         data type and functions to read a directory sequentially.
2770         (init_dir): New function to hook it into glob.
2771         * main.c (main): Call init_dir.
2773         * compatMakefile (objs): Added glob/libglob.a.
2774         * configure.in: Remove code to test for glob.
2776 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2778         * read.c (record_files): Generalized test for NAME pointing
2779         somewhere into F->name.
2781         * variable.c (define_variable_in_set): Free old value when replacing.
2783         * read.c (do_define): Free the linebuffer before returning.
2784         (record_files): When clearing .SUFFIXES deps, free their data.
2785         (multi_glob): Free OLD and its data when replacing it with results
2786         of glob run.
2788         * commands.c (set_file_variables): Use alloca in place of xmalloc
2789         for temp space for $^, $?, et al.
2791         * dir.c (struct directory): New member `contents' replaces `files'
2792         and `dirstream'.
2793         (struct directory_contents): New type.
2794         (directories_contents): New hash table.
2795         (dir_struct_file_exists_p): Take a struct directory_contents.
2796         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2797         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2798         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2799         (dir_file_exists_p, find_directory): Change all callers.
2800         (file_impossible): Use DIR->contents, initializing it if nil.
2801         (print_dir_data_base): Use DIR->contents, and print out device and
2802         inode numbers with each directory.
2804         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2805         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2806         (DIRFILE_BUCKETS): Decrease to 107.
2807         (find_directory): Allocate and zero a multiple of
2808         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2809         (dir_struct_file_exists_p): New function, nearly all code from
2810         dir_file_exists_p.
2811         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2812         * vpath.c (selective_vpath_search): Remove redundant
2813         dir_file_exists_p call.
2815         * configure.in: Comment out glob check; always use our code.
2817 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2819         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2820         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2821         do have it.
2823 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2825         * main.c (main): Don't do -w automatically if -s.
2827 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2829         * main.c (printed_version): Move variable inside print_version.
2830         (print_version): Return immediately if printed_version is set.
2831         (die): Don't test printed_version here.
2832         (decode_switches): Under -v, do print_version before giving usage.
2833         (DESCRIPTION_COLUMN): New macro.
2834         (decode_switches): Use it when printing the usage message.
2835         Leave at least two spaces between options and their descriptions.
2837 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2839         * Version 3.62.20.
2841 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2843         * read.c (read_makefile): Save errno value from trying to open
2844         FILENAME, and restore it before erring; otherwise we get the errno
2845         value from the last elt of the search path.
2847 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2849         * main.c (long_option_aliases): Add --stop for -S.
2851         * read.c (word1eq): Do strncmp before dereferencing someplace that
2852         may be out in space.
2854 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2856         * remake.c (notice_finished_file): If all the command lines were
2857         recursive, don't do the touching.
2859         * job.c (start_job_command): Don't check for + here.
2860         * commands.c (chop_commands): Do it here instead.
2862         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2864 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2866         * compatMakefile (objs): Include $(ALLOCA).
2868         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2870 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2872         * read.c (default_include_directories): Add INCLUDEDIR first.
2873         * compatMakefile (includedir): Define.
2874         (defines): Add -D for INCLUDEDIR="$(includedir)".
2876         * read.c (read_makefile): Grok multiple files in `include';
2877         globbing too.
2879         * remake.c (library_search): New function.
2880         (library_file_mtime): Remove function.
2881         (f_mtime): Use library_search instead of library_file_mtime.
2882         * compatMakefile (libdir): Define.
2883         (defines): Add -D for LIBDIR="$(libdir)".
2884         * make.texinfo (Libraries/Search): Document change.
2886         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2888 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2890         * Version 3.62.19.
2892         * main.c (main): Set command_state to cs_finished for temp files
2893         made for stdin makefiles.
2895         * main.c (decode_switches): Don't tell getopt to return non-option
2896         args in order.
2897         Ignore an argument of `-'.
2899 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2901         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2902         the command line and go to the next.
2903         (notice_finished_file): Under -t, touch FILE.
2904         * remake.c (remake_file): Don't touch it here.
2906 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2908         * function.c (pattern_matches): Use temporary for strlen (WORD)
2909         instead of two function calls.
2911         * compatMakefile (LOAD_AVG): Remove variable and comments.
2913 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2915         * make.texinfo (Running): Node renamed to `make Invocation'.
2917 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2919         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2920         NAMELEN != MEMLEN.
2922 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2924         * Version 3.62.18.
2926         * main.c: Don't #include <time.h>; make.h already does.
2928 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2930         * implicit.c (pattern_search): Fixed copying of suffix when building
2931         also_make elts.
2933         * function.c (expand_function: `shell'): Make sure BUFFER is
2934         null-terminated before replacing newlines.
2936         * compatMakefile (mandir): Use man$(manext), not always manl.
2938 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2940         * rule.c (new_pattern_rule): Not static.
2941         * rule.h: Declare it.
2943         * file.c (file_hash_enter): New function, most code from rename_file.
2944         (rename_file): Call it.
2945         * file.h (file_hash_enter): Declare it.
2947         * dep.h: Doc fix.
2949 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2951         * main.c (decode_switches): Handle usage_and_exit when building
2952         long options vector.
2954         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2955         (default_variables): Define CHECKOUT,v (hairy).
2957         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2958         sys_siglist to _sys_siglist.
2960 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2962         * NEWS: Add header and tail copyright info like Emacs NEWS.
2964         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2965         bcopy if already #define'd.
2966         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2967         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2969         * make.h [_AIX]: #pragma alloca first thing.
2971         * job.c (start_waiting_job): Set the command_state to cs_running
2972         when we queue a job on waiting_jobs.
2974 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2976         * variable.c (define_automatic_variables): Use "" instead of nil
2977         for empty value.
2979 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2981         * Version 3.62.17.
2983         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2984         (command_switches): Add -h/--help.
2986 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2988         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2989         * README.template: Mention NEWS.
2990         * CHANGES: Renamed to NEWS.
2992         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2994 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2996         * main.c (main): Set -o files' command_states to cs_finished.
2998         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2999         when tossing a rule.
3001         * main.c (main): Use alloca only in simple local var assignment,
3002         for braindead SGI compiler.
3004         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
3005         inconsistent with the number computed when listing them.
3007 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3009         * commands.c (set_file_variables): For $? and $^ elts that are archive
3010         member refs, use member name only.
3012 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3014         * variable.h (struct variable.export): Add new alternative v_ifset.
3015         * variable.c (target_environment): Check for it.
3016         (define_automatic_variables): Set it for MAKEFILES.
3018 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3020         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
3021         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
3022         (distclean, mostlyclean): New targets.
3024 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3026         * Version 3.62.16.
3028         * compatMakefile (config.status): Remove rule.
3030         * job.c (start_waiting_job): Free C after using C->file, not before.
3032 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3034         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
3035         HAVE_* instead of #ifndef *_MISSING.
3036         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
3038 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3040         * main.c (main): makelevel>0 or -C implies -w.
3042 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3044         * file.c, job.c, function.c: Don't #include <errno.h>.
3045         make.h: Do it here instead.
3046         * arscan.c (ar_member_touch): Don't declare errno.
3048 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3050         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
3052         * remake.c (update_file): If commands or deps are running after
3053         update_file_1 returns, break out of the :: rule (->prev) loop and
3054         just return.
3056         * job.c (job_next_command): New function; code from start_job.
3057         (start_job_command): Renamed from start_job.  Call job_next_command
3058         and recurse for empty command lines and -n.
3059         (start_waiting_job): Call start_job_command, not start_job.
3060         (new_job): Call job_next_command to prime the child structure, and
3061         then call start_waiting_job.
3062         (reap_children): Use job_next_command and start_job_command.
3063         (start_waiting_job): Call start_remote_job_p here, and store its
3064         result in C->remote.  If zero, check the load average and
3065         maybe put C on waiting_jobs.
3066         (start_job_command): Test CHILD->remote rather than calling
3067         start_remote_job_p.  Don't do load avg checking at all here.
3069         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
3070         SIGSEGV, SIGFPE or SIGTRAP.
3072         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
3073         configure will set it in glob/Makefile.
3075 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3077         * dir.c [DIRENT] (direct): Don't define to dirent.
3078         [! DIRENT] (direct): Define to dirent.
3079         (dir_file_exists_p): Use struct dirent instead of struct direct.
3081         * make.h (getcwd): No space between macro and ( for args!
3083         * job.c (start_job): Don't put the job on waiting_jobs if
3084         job_slots_used==0.
3086         * make.texinfo (Missing): Shortened title.
3088 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3090         * file.c (remove_intermediates): Print "rm" commands under -n.
3092 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3094         * Version 3.62.15.
3096 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3098         * arscan.c [M_UNIX]: #undef M_XENIX.
3100 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3102         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
3104 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3106         * compatMakefile (getloadavg.o): Removed special rule.
3107         (CFLAGS): Don't include $(defines).
3108         (.c.o): Define suffix rule.
3109         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
3110         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
3112         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
3114         * make.h (max): Removed.
3115         * expand.c (variable_buffer_output): Don't use it.
3117         * compatMakefile (INSTALL): Define.
3118         (Makefile): New rule to make from Makefile.in.
3119         (srcdir): Define.
3120         (VPATH): Define.
3121         (getloadavg.o, remote.o): Use autoconf $foo< hack.
3123         * commands.c (fatal_error_signal): Removed return.
3125 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3127         * Version 3.62.14.
3129         * make.texinfo (Summary): New node.
3130         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
3132         * variable.c (max): Moved to make.h.
3134         * compatMakefile (objs, srcs): Added ar & arscan.
3136         * job.c (start_waiting_job): New function, 2nd half of new_job.
3137         (new_job): Call it.
3138         (start_waiting_jobs): New function.
3139         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
3140         of the main loop.
3141         * compatMakefile (objs, srcs): Removed load, added getloadavg.
3143 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3145         * job.c (load_too_high): New function.  Uses getloadavg.
3146         (waiting_jobs): New variable.
3147         (start_job): Don't call wait_to_start_job.  Instead, if
3148         load_too_high returns nonzero, add the child to the
3149         `waiting_jobs' chain and return without starting the job.
3151 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3153         * expand.c (variable_buffer_output): Made global again.
3154         * variable.h: And declare it.
3156         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
3157         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
3158         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
3159         for a slash in the archive at run time.
3160         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
3161         cope with trailing-slash and non-trailing-slash archives.
3163         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
3164         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
3166         * load.c (load_average) [sgi]: Use sysmp call.
3168         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
3169         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
3171         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
3172         (vfork, VFORK_NAME): Don't define.
3173         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
3175         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
3176         the each file.  Rearranged PATH_MAX hacking.
3177         * job.c: Rearranged NGROUPS_MAX hacking.
3179         * remake.c (fstat, time): Don't declare.
3181         * compatMakefile (defines): Value is @DEFS@.
3182         (LOADLIBES): Value is @LIBS@.
3183         (extras): Value is @LIBOBJS@.
3184         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
3185         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
3187         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
3189         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
3190         (getcwd): Just declare if present.  If not, declare as a macro
3191         using getwd, and declare getwd.
3192         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
3193         * main.c (main, log_working_directory): Use getcwd instead of getwd.
3195         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
3197         * make.h (SIGHANDLER, SIGNAL): Removed.
3198         (RETSIGTYPE): Define if not #define'd.
3199         * main.c (main): Use signal in place of SIGNAL.
3201         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
3203         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
3204         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
3206         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
3207         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
3209         * job.c (child_handler), commands.c (fatal_error_signal): Return
3210         RETSIGTYPE instead of int.
3211         * main.c (main): Declare fatal_error_signal and child_handler here
3212         to return RETSIGTYPE; removed top-level decl of former.
3214         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
3215         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
3217 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3219         * job.c [HAVE_WAITPID]: Test this instead of USG.
3220         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
3221         (GID_T): Don't #define.
3222         (search_path): Use gid_t instead of GID_T.
3223         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
3224         these individually instead of USG for all.
3225         * make.h (ctime): Don't declare.  #include time.h instead.
3226         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
3227         _POSIX_VERSION.
3228         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
3229         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
3231         * arscan.c: Removed #ifdef mess about string.h et al.
3232         Just #include make.h instead.
3233         * make.h (fstat, atol): Declare.
3235         * commands.c (fatal_error_signal): Don't use sigmask to check for
3236         propagated signals; use ||s instead.
3237         (PROPAGATED_SIGNAL_MASK): Removed.
3238         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
3240         * variable.c (variable_buffer, variable_buffer_length,
3241         initialize_variable_output, variable_output): Moved to expand.c;
3242         made all static.
3243         (struct output_state, save_variable_output,
3244         restore_variable_output): Removed.
3245         * expand.c (initialize_variable_output): Put a NUL at the beginning
3246         of the new buffer after allocating it.
3247         (allocated_variable_expand_for_file): Don't use
3248         {save,restore}_variable_output.  Do it by hand instead, keeping
3249         state on the stack instead of malloc'ing it.
3250         (allocated_variable_expand): Removed.
3251         * variable.h (allocated_variable_expand): Define here as macro.
3252         (variable_buffer_output, initialize_variable_output,
3253         save_variable_output, restore_variable_output): Removed decls.
3255         * read.c (conditional_line): For an if cmd, if any elt of the
3256         conditionals stack is ignoring, just push a new level that ignores
3257         and return 1; don't evaluate the condition.
3259 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3261         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
3263         * job.c (getdtablesize): Don't declare or #define if already #define'd.
3265 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3267         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
3268         export_all_variables.
3269         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
3271 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3273         * Version 3.62.13.
3275         * commands.c (set_file_variables): Calculate length for ^D and ?D
3276         individually, making sure to give them at least enough space for "./".
3278         * make.h [CRAY]: #define signal to bsdsignal.
3280         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
3281         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
3283         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
3284         wasn't defined by <ar.h>.
3286 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3288         * Version 3.62.12.
3290 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3292         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
3293         pattern_rules.
3295 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3297         * main.c (decode_switches): Initialize all the long_option elt members.
3299 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3301         * make.texinfo (Text Functions): Correct filter-out description.
3303 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3305         * compatMakefile (realclean): Don't remove backup files.
3307         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
3309 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3311         * Version 3.62.11.
3313 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3315         * job.c (reap_children): Don't die if wait returns EINTR.
3317 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3319         * job.c (reap_children): Always run the next command for a
3320         successful target.  If we are going to die, we don't want to leave
3321         the target partially made.
3323 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3325         * job.c (construct_command_argv_internal): After loop, if we only
3326         have one word, check it for being a shell command.
3328         * main.c (decode_switches): Allocate ARGC slots in other_args to
3329         begin with, so we never need to worry about growing it.
3330         If we get a non-option arg and POSIXLY_CORRECT is in the
3331         environment, break out of the loop.  After the loop, add all remaining
3332         args to other_args list.
3334         * main.c (decode_switches): For positive_int and floating switches
3335         when optarg is nil, use next arg if it looks right (start with a
3336         digit, or maybe decimal point for floating).
3338         * variable.c (define_automatic_variables): Always set SHELL to
3339         default if it comes from the environment.  Set its export bit.
3340         * make.texinfo (Environment): Document change.
3342 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3344         * Version 3.62.10.
3346         * compatMakefile (tags, TAGS): Use vars for cmds.
3347         (ETAGS, CTAGS): Define.
3349         * main.c (decode_switches): If a switches elt has a nil long_name,
3350         make the long option name elt be "".
3351         Fixed loop to not ignore all the options.
3353         * make.texinfo (Option Summary): Added long options.
3355         * main.c (switches): Changed -m's description to "-b".
3356         (decode_switches): When printing the usage message, don't print
3357         switches whose descriptions start with -.
3358         When constructing the list of names for switch -C, search the
3359         switches vector for switches whose descriptions are "-C".
3361         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
3362         Call -I --include-dir, not --include-path.
3363         (long_option_aliases): Added --new == -W, --assume-new == -W,
3364         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
3365         --makefile == -f.
3367         * main.c (switches): Removed bogus "silent" elt.
3368         (long_option_aliases): Define new var.
3369         (decode_switches): Add long_option_aliases onto the end of the long
3370         options vector created for getopt_long.
3371         Look through long_option_aliases for extra names to list
3372         in usage message.
3374 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3376         * main.c (log_working_directory): Fixed to properly not print the
3377         leaving message when we haven't printed the entering message.
3379 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3381         * main.c (struct command_switch): Added elts `long_name',
3382         `description', and `argdesc'.
3383         (switches): Added initializers for new members.
3384         (decode_switches): Rewritten to use getopt_long.
3385         * compatMakefile (GETOPT, GETOPT_SRC): Define.
3386         (objs, srcs): Include them.
3388         * job.c (child_died): Renamed to dead_children; made static.
3389         (child_handler): Increment dead_children instead of setting child_died.
3390         (reap_children): Decrement dead_children instead of clearing
3391         child_died.  The point of all this is to avoid printing "waiting
3392         for unfinished jobs" when we don't actually need to block.
3393         This happened when multiple SIGCHLDs before reap_children was called.
3395         * job.c (reap_children): If ERR is set, so we don't call start_job
3396         on the child being reaped, instead set its command_state to
3397         cs_finished.
3398         (reap_children, child_handler, new_job): I added several
3399         debugging printf's while fixing this.  I left them in if (debug_flag)
3400         because they may be useful for debugging this stuff again.
3402 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3404         * read.c (read_makefile): v_export is not 1.
3406 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3408         * Version 3.62.9.
3410         * variable.c (export_all_variables): New variable.
3411         (target_environment): Export variables whose `export' member is
3412         v_default if export_all_variables is set and their names are benign.
3413         * variable.h: Declare export_all_variables.
3414         * read.c (read_makefile): If export or unexport is given with no
3415         args, set or clear export_all_variables, respectively.
3417         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3418         so it isn't duplicated when we add it at the end.
3420 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3422         * Version 3.62.8.
3424         * variable.h (struct variable): Added new member `export'.
3425         * variable.c (define_variable_in_set): Initialize it to v_default.
3426         (target_environment): Don't check for .NOEXPORT.
3427         Export variables whose `export' member is v_default and that would
3428         have been exported under .NOEXPORT, and variables whose `export'
3429         member is v_export.
3430         (try_variable_definition): Return the variable defined.
3431         * variable.h (try_variable_definition): Changed decl.
3432         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3434 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3436         * main.c (main) [POSIX]: Reversed args to sigaddset.
3438 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3440         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3441         (start_job): Block signals before forking.
3442         (new_job): Unblock signals after putting the new child on the chain.
3443         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3444         int fatal_signal_mask.
3446         * load.c [sgi] (LDAV_CVT): Define.
3448 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3450         * Version 3.62.7.
3452         * load.c (load_average) [sgi]: Clear the high bit of the address
3453         from the symbol table before looking it up in kmem.
3455         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3456         (remake_file): No longer needed in message here.
3458         * main.c (die): Call reap_children with BLOCK==1.
3460 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3462         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3464 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3466         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3467         not to head of chain.  Extract next ptr before we might do
3468         freerule, and use that for next iteration.
3469         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3471 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3473         * job.c (child_error): Removed extra %s from error msg format.
3475         * Version 3.62.6.
3477         * job.c (reap_children): Don't start later commands in a sequence
3478         if ERR is nonzero.
3480         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3482         * job.c (reap_children): New function; work that used to be done in
3483         child_handler.
3484         (child_died): New global var.
3485         (child_handler): Now just sets child_died.
3486         (wait_for_children): Removed.
3487         (unknown_children_possible, block_signals, unblock_signals,
3488         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3489         (child_execute_job): Removed call to unblock_signals.
3490         (new_job): Removed calls to push_signals_blocked_p and
3491         pop_signals_blocked_p.
3492         * job.h: Declare reap_children, not wait_for_children.
3493         * commands.c (fatal_error_signal), job.c (new_job),
3494         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3495         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3496         Changed wait_for_children calls to reap_children.
3497         Some needed to be loops to wait for all children to die.
3498         * commands.c (fatal_error_signal), main.c (main,
3499         log_working_directory), function.c (expand_function): Removed calls
3500         to push_signals_blocked_p and pop_signals_blocked_p.
3501         * job.h: Removed decls.
3503         * job.h: Added copyright notice.
3505 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3507         * job.c (child_error): No *** for ignored error.
3509 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3511         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3512         avoid compiler warnings.
3514         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3515         blank.
3517 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3519         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3520         avoid compiler warnings.
3522         * remake.c (notice_finished_file): Run file_mtime on the also_make
3523         files, so vpath_search can happen.
3525         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3526         (alpha-files): Include test suite tar file.
3528 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3530         * Version 3.62.5.
3532 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3534         * remake.c (update_file, update_file_1): Do check_renamed on elts
3535         of dep chains when traversing them.  Something unrelated might have
3536         renamed one of the files the dep chain points to.
3538         * file.c (rename_file): If FILE has been renamed, follow its
3539         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3540         ones loses because they are not in the hash table, so the removal
3541         code loops infinitely.
3543         * read.c (read_all_makefiles): Clobber null terminator into
3544         MAKEFILES expansion, so string passed to read_makefile is properly
3545         terminated.
3547 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3549         * commands.c (set_file_variables): $* for archive member with
3550         explicit cmds is stem of member, not of whole `lib(member)'.
3552 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3554         * Version 3.62.4.
3556 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3558         * rule.c (new_pattern_rule): Rules are identical only if all their
3559         targets match (regardless of order).
3561 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3563         * remake.c (remake_file): Changed error "no way to make" to "no
3564         rule to make".  Fiat Hugh.
3566         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3567         behavior.
3569         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3570         target.
3572 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3574         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3575         environment to pass to child.
3576         * job.c (start_job): Pass it.
3578 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3580         * file.c (enter_file): Also strip ./s here, to get command-line
3581         target names.
3583         * remote-cstms.c: Add comment telling people to leave me alone.
3585         * compatMakefile (manpage install): Remove target before copying.
3587 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3589         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3590         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3592 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3594         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3595         Use vfork instead of fork.
3597 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3599         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3600         intermediate files.
3602         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3604 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3606         * Version 3.62.3.
3608 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3610         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3612 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3614         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3616         * read.c (record_files): Pass arg for %s in error msg.
3618         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3619         call.
3621 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3623         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3625 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3627         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3629 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3631         * Version 3.62.2.
3633 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3635         * job.c (construct_command_argv_internal): Correctly ignore
3636         whitespace after backslash-NL.
3638 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3640         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3642 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3644         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3645         allocate space so as not to clobber past the end of the old string.
3647         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3648         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3650 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3652         * make.h [VFORK_MISSING]: Use fork instead.
3653         * compatMakefile (defines): Document same.
3655         * job.c (construct_command_argv_internal): Don't create an empty
3656         arg if backslash-NL is at beginning of word.
3658 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3660         * main.c [DGUX]: Call setvbuf as for USGr3.
3662         * job.c (construct_command_argv_internal): Notice correctly that
3663         backslash-NL is the end of the arg (because it is replaced with a
3664         space).
3666 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3668         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3669         to default_shell before proceeding.
3671         * make.h [sgi]: No alloca.h, after all.
3673 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3675         * read.c (multi_glob): Cons up the chain of the results of glob
3676         from back to front, so it comes out in forward order.
3678         * job.c (construct_command_argv_internal): Don't eat char following
3679         backslash-NL.
3681 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3683         * Version 3.62.1.
3685         * default.c (default_variables) [ultrix]: GET=get, like USG.
3687         * job.c (construct_command_argv_internal): Remove tabs following
3688         backslash-NL combos in the input line, so they don't show up when
3689         that line is printed.
3691         * read.c (read_makefile): Don't collapse_continuations the line on
3692         input; do it on the copy we do remove_comments on.
3693         For rule lines, collapse_continuations the line after chopping
3694         ";cmds" off the end, so we don't eat conts in the cmds.
3695         Give error for ";cmds" with no rule.
3696         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3697         when constructing the line to recurse on for slow, too.
3699 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3701         * file.c (enter_file): Don't strip leading `./'s.
3702         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3703         * default.c (set_default_suffixes), function.c (string_glob),
3704         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3706         * default.c (default_variables) [_IBMR2]: FC=xlf
3708         * job.c (construct_command_argv_internal): Turn backslash-NL and
3709         following whitespace into a single space, rather than just eating
3710         the backslash.
3712         * make.texinfo (Copying): @include gpl.texinfo, rather than
3713         duplicating its contents.
3715 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3717         * job.c (construct_command_argv_internal): Make sure not to bother
3718         processing an empty line.
3720         * Version 3.62.0.
3722         * job.c (construct_command_argv_internal): Always recurse for slow;
3723         simple case didn't handle finding newlines.
3725 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3727         * job.c (construct_command_argv_internal): Set RESTP properly when
3728         slow; don't \ify past a newline.
3730 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3732         * make.h [sgi]: #include <alloca.h>.
3736 See ChangeLog.1 for earlier changes.