Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[make.git] / ChangeLog
blobe07560bc9b826fdeb1090215f99ede4784bf072c
1 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
3         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
4         modtime check.
5         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
7 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9         * configure.in: Require autoconf 2.10 or later.
11 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
13         * Version 3.74.6.
15         * GNUmakefile (win32files): New variable.
16         (distfiles): Add it.
17         * w32: Updated by Rob Tulloh.
19         * makefile.vms (LOADLIBES): Fix typo.
21 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
23         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
25         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
27         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
29         * Version 3.74.5.
31         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
33 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
35         * configure.in: Don't check for _sys_siglist.
36         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
37         no strsignal or sys_siglist.
39         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
40         same as `ifeq (a, b)'.
42         * job.c (reap_children): Don't call die if handling_fatal_signal.
44         * file.c (file_hash_enter): Allow renaming :: to : when latter is
45         non-target, or : to :: when former is non-target.
47         * job.c (start_job_command): Call block_sigs.
48         (block_sigs): New function, broken out of start_job_command.
49         (reap_children): Block fatal signals around removing dead child from
50         chain and adjusting job_slots_used.
51         * job.h: Declare block_sigs.
53         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
54         * main.c (main): Call remote_setup.
55         (die): Call remote_cleanup.
57         * job.c (reap_children): Quiescent value of shell_function_pid is
58         zero, not -1.
60         * main.c (print_version): Add 96 to copyright years.
62 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64         * read.c (find_char_unquote): Avoid calling strlen on every call
65         just to throw away the value most of the time.
67 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
69         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
70         no '=', regardless of ARGC.
71         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
72         word is short option, regardless of WORDS.
74 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
76         * makefile.vms: Set LOADLIBES.
77         * makefile.com (link_using_library): Fix typo.
79 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
81         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
82         long.
84 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
86         * dir.c: WIN32 does not support inode. For now, fully qualified
87         pathname along with st_mtime will be keys for files.
88         Fixed problem where vpath can be confused when files
89         are added to a directory after the directory has already been
90         read in. The code now attempts to reread the directory if it
91         discovers that the datestamp on the directory has changed since
92         it was cached by make. This problem only seems to occur on WIN32
93         right now so it is lumped under port #ifdef WIN32.
95         * function.c: WIN32: call subproc library (CreateProcess()) instead of
96         fork/exec.
98         * job.c: WIN32: Added the code to do fork/exec/waitpid style processing
99         on WIN32 systems via calls to subproc library.
101         * main.c: WIN32: Several things added here. First, there is code
102         for dealing with PATH and SHELL defaults. Make tries to figure
103         out if the user has %PATH% set in the environment and sets it to
104         %Path% if it is not set already. Make also looks to see if sh.exe
105         is anywhere to be found. Code path through job.c will change
106         based on existence of a working Bourne shell. The checking for
107         default shell is done twice: once before makefiles are read in
108         and again after. Fall back to MSDOS style execution mode if no sh.exe
109         is found. Also added some debug support that allows user to pause make
110         with -D switch and attach a debugger. This is especially useful for
111         debugging recursive calls to make where problems appear only in the
112         sub-make.
114         * make.h: WIN32: A few macros and header files for WIN32 support.
116         * misc.c: WIN32: Added a function end_of_token_w32() to assist
117         in parsing code in read.c.
119         * read.c: WIN32: Fixes similar to MSDOS which allow colon to
120         appear in filenames. Use of colon in filenames would otherwise
121         confuse make.
123         * remake.c: WIN32: Added include of io.h to eliminate compiler
124         warnings. Added some code to default LIBDIR if it is not set
125         on WIN32.
127         * variable.c: WIN32: Added support for detecting Path/PATH
128         and converting them to semicolon separated lists for make's
129         internal use. New function sync_Path_environment()
130         which is called in job.c and function.c before creating a new
131         process. Caller must set Path in environment since we don't
132         have fork() to do this for us.
134         * vpath.c: WIN32: Added detection for filenames containing
135         forward or backward slashes.
137         * NMakefile: WIN32: Visual C compatible makefile for use with nmake.
138         Use this to build GNU make the first time on Windows NT or Windows 95.
140         * README.WIN32: WIN32: Contains some helpful notes.
142         * build_w32.bat: WIN32: If you don't like nmake, use this the first
143         time you build GNU make on Windows NT or Windows 95.
145         * config.h.WIN32: WIN32 version of config.h
147         * subproc.bat: WIN32: A bat file used to build the
148         subproc library from the top-level NMakefile. Needed because
149         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
151         * w32/include/dirent.h
152         * w32/compat/dirent.c: WIN32: opendir, readdir, closedir, etc.
154         * w32/include/pathstuff.h: WIN32: used by files needed functions
155         defined in pathstuff.c (prototypes).
157         * w32/include/sub_proc.h: WIN32: prototypes for subproc.lib functions.
159         * w32/include/w32err.h: WIN32: prototypes for w32err.c.
161         * w32/pathstuff.c: WIN32: File and Path/Path conversion functions.
163         * w32/subproc/build.bat: WIN32: build script for subproc library
164         if you don't wish to use nmake.
166         * w32/subproc/NMakefile: WIN32: Visual C compatible makefile for use
167         with nmake. Used to build subproc library.
169         * w32/subproc/misc.c: WIN32: subproc library support code
170         * w32/subproc/proc.h: WIN32: subproc library support code
171         * w32/subproc/sub_proc.c: WIN32: subproc library source code
172         * w32/subproc/w32err.c: WIN32: subproc library support code
174 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
176         * Version 3.74.4.
178         * GNUmakefile (vmsfiles): Fix typo.
180         * GNUmakefile (amigafiles): Add amiga.h.
182 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
184         * dir.c: New function: amigafy() to fold filenames
185         Changes HASH() to HASHI() to fold filenames on Amiga.
186         Stringcompares use strieq() instead of streq()
187         The current directory on Amiga is "" instead of "."
188         * file.c: Likewise.
190         * amiga.c: New function wildcard_expansion(). Allows to use
191         Amiga wildcards with $(wildcard )
193         * amiga.h: New file. Prototypes for amiga.c
195         * function.c: Use special function wildcard_expansion() for
196         $(wildcard ) to allow Amiga wildcards
197         The current directory on Amiga is "" instead of "."
199         * job.c: No Pipes on Amiga, too
200         (load_too_high) Neither on Amiga
201         ENV variable on Amiga are in a special directory and are not
202         passed as third argument to main().
204         * job.h: No envp on Amiga
206         * make.h: Added HASHI(). This is the same as HASH() but converts
207         it's second parameter to lowercase on Amiga to fold filenames.
209         * main.c: (main), variable.c Changed handling of ENV-vars. Make
210         stores now the names of the variables only and reads their contents
211         when they are accessed to reflect that these variables are really
212         global (ie. they CAN change WHILE make runs !) This handling is
213         made in lookup_variable()
215         * Makefile.ami: renamed file.h to filedep.h
216         Updated dependencies
218         * read.c: "find_semicolon" is declared as static but never defined.
219         No difference between Makefile and makefile on Amiga; added
220         SMakefile to *default_makefiles[].
221         (read_makefile) SAS/C want's two_colon and pattern_percent be set
222         before use.
223         The current directory on Amiga is "" instead of "."
224         Strange #endif moved.
226         * README.Amiga: updated feature list
228         * SMakefile: Updated dependencies
230         * variable.c: Handling of ENV variable happens inside lookup_variable()
232 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
234         * variable.c (try_variable_definition): Count parens in lhs variable
235         refs to avoid seeing =/:=/+= inside a ref.
237 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
239         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
240         conditional.
242         * main.c (main): Use unsigned for fread return.
244         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
245         conflict issues.
246         * dep.h: Fix prototype.
248         * function.c (expand_function) [_AMIGA]: Fix some typos.
249         (patsubst_expand): Make len vars unsigned.
251         * GNUmakefile (globfiles): Add AmigaDOS support files.
252         (distfiles): Add $(amigafiles).
253         (amigafiles): New variable.
255 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
257         * Added Amiga support in commands.c, dir.c, function.c,
258         job.c, main.c, make.h, read.c, remake.c
259         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
260         * dir.c: Amiga has filenames with Upper- and Lowercase,
261         but "FileName" is the same as "filename". Added strieq()
262         which is use to compare filenames. This is like streq()
263         on all other systems. Also there is no such thing as
264         "." under AmigaDOS.
265         * function.c: On Amiga, the environment is not passed as envp,
266         there are no pipes and Amiga can't fork. Use my own function
267         to create a new child.
268         * job.c: default_shell is "" (The system automatically chooses
269         a shell for me). Have to use the same workaround as MSDOS for
270         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
271         known on Amiga. Cloned code to run children from MSDOS. Own
272         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
273         * main.c: Force stack to 20000 bytes. Read environment from ENV:
274         device. On Amiga, exec_command() does return, so I exit()
275         afterwards.
276         * make.h: Added strieq() to compare filenames.
277         * read.c: Amiga needs special extension to have passwd. Only
278         one include-dir. "Makefile" and "makefile" are the same.
279         Added "SMakefile".  Added special code to handle device names (xxx:)
280         and "./" in rules.
281         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
282         instead of "lib%s.a".
283         * main.c, rule.c, variable.c: Avoid floats at all costs.
284         * vpath.c: Get rid of as many alloca()s as possible.
286 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
288         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
290 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
292         * GNUmakefile (vmsfiles): New variable.
293         (distfiles): Include $(vmsfiles).
295 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
297         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
298         * make.h (PARAMS): New macro.
299         * config.h-vms: New file.
300         * makefile.com: New file.
301         * makefile.vms: New file.
302         * readme.vms: New file.
303         * vmsdir.h: New file.
304         * vmsfunctions.c: New file.
305         * vmsify.c: New file.
306         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
307         * ar.c: Added prototypes and changes for VMS.
308         * commands.c: Likewise.
309         * commands.h: Likewise.
310         * default.c: Likewise.
311         * dep.h: Likewise.
312         * dir.c: Likewise.
313         * expand.c: Likewise.
314         * file.c: Likewise.
315         * function.c: Likewise.
316         * implicit.c: Likewise.
317         * job.c: Likewise.
318         * job.h: Likewise.
319         * main.c: Likewise.
320         * make.h: Likewise.
321         * misc.c: Likewise.
322         * read.c: Likewise.
323         * remake.c: Likewise.
324         * remote-stub.c: Likewise.
325         * rule.c: Likewise.
326         * rule.h: Likewise.
327         * variable.c: Likewise.
328         * variable.h: Likewise.
329         * vpath.c: Likewise.
330         * compatMakefile (srcs): Rename file.h to filedef.h.
332 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
334         * remake.c (check_dep): For a secondary file, try implicit and
335         default rules if appropriate.
337 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
339         * remake.c (check_dep): If an intermediate file exists,
340         do consider its actual date.
342 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
344         * file.h (struct file): New field `secondary'.
345         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
346         (remove_intermediates): Don't delete .SECONDARY files.
348 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
350         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
352 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
354         * Version 3.74.3.
356         * remake.c (f_mtime): Move future modtime check before FILE is
357         clobbered by :: loop.
359         * dir.c: Use canonical code from autoconf manual for dirent include.
360         [_D_NAMLEN]: Redefine NAMLEN using this.
361         (dir_contents_file_exists_p): Use NAMLEN macro.
362         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
364         * compatMakefile (objs): Add missing backslash.
366 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
368         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
369         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
371         * remake.c (f_mtime): Check for future timestamps; give error and mark
372         file as "failed to update".
374 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
376         * job.c: Don't declare unblock_sigs; job.h already does.
378 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
380         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
382         * job.c (NGROUPS_MAX): Don't try to define this macro.
384 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
386         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
387         (objs, srcs): Include their values here instead of references.
389 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
391         * Version 3.74.2.
393         * job.c (reap_children): Call unblock_sigs after start_job_command.
395 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
397         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
398         Avoid & before function names to silence bogus sunos4 compiler.
400         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
402 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
404         * Version 3.74.1.
406         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
407         reallocating it!
409 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
411         * misc.c (collapse_continuations): Fix skipping of trailing \s so
412         it can never dereference before the beginning of the array.
414         * read.c (find_semicolon): Function removed.
415         (read_makefile): Don't use find_semicolon or remove_comments for
416         rule lines.  Use find_char_unquote directly and handle quoted comments
417         properly.
419         * default.c: Remove all [M_XENIX] code.
421         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
422         (D_NAMLEN): Macro removed.
423         (FAKE_DIR_ENTRY): New macro.
424         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
425         D_NAMLEN.
426         (read_dirstream): Return a struct dirent * for new glob interface.
427         (init_dir): Function removed.
428         (dir_setup_glob): New function.
429         * main.c (main): Don't call init_dir.
430         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
431         GLOB_ALTDIRFUNC flag.
433         * misc.c (safe_stat): Function removed.
434         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
435         safe_stat.
437 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
439         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
441         * main.c (log_working_directory): Made global.
442         Print entering msg only once.
443         * make.h (log_working_directory): Declare it.
444         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
445         nonzero.  Call log_working_directory.
446         * remake.c: Pass new arg in `message' calls.
447         * job.c (start_job_command): Pass new arg to `message'; fix
448         inverted test in that call.
450 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
452         * job.c (start_job_command): Use `message' to print the command,
453         and call it with null if the command is silent.
454         * remake.c (touch_file): Use message instead of printf.
456 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
458         * main.c (enter_command_line_file): Barf if NAME is "".
460 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
462         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
464 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
466         * configure.in: Don't check for getdtablesize.
467         * job.c (getdtablesize): Remove decls and macros.
469 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
471         * main.c (define_makeflags): Omit command line variable
472         definitions from MFLAGS value.
474         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
475         indicating a valid, but empty, archive.
477 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
479         * dir.c (file_impossible_p): Correctly reset FILENAME to name
480         within directory before hash search.
482         * job.c (child_error): Do nothing if IGNORED under -s.
484         * job.c (exec_command): Correctly use ARGV[0] for script name when
485         running shell directly.
487 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
489         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
490         dup'ing from them.  Don't try to close all excess descriptors;
491         getdtablesize might return a huge value.  Any open descriptors in
492         the parent should have FD_CLOEXEC set.
493         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
495 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
497         * read.c (read_all_makefiles): Properly append default makefiles
498         to the end of the `read_makefiles' chain.
500 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
502         * Version 3.74 released.
504 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
506         * Version 3.73.3.
508 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
510         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
511         install-info cmd.
513 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
515         * file.c (print_file): Grok update_status of 1 for -q.
517 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
519         * Version 3.73.2.
521 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
523         * file.c (remove_intermediates): Fix inverted test to bail under
524         -n for signal case.  Bail under -q or -t.
525         Skip files with update_status==-1.
527         * job.c (job_next_command): Skip empty lines.
528         (new_job): Don't test the return of job_next_command.
529         Just let start_waiting_job handle the case of empty commands.
531 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
533         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
535         * Version 3.73.1.
537 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
539         * remake.c (notice_finished_file): Set FILE->update_status to zero
540         if it's -1.
542 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
544         * Version 3.73 released.
546 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
548         * main.c (main): Fixed braino in assert.
550         * Version 3.72.13.
552 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
554         * main.c: Avoid string in assert expression.  Some systems are broken.
556 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
558         * main.c (main): Handle 1 and 2 returns from update_goal_chain
559         makefile run properly.
561         * Version 3.72.12.
563         * main.c (handle_non_switch_argument): New function, broken out of
564         decode_switches.
565         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
566         When getopt_long returns EOF, break the loop and handle remaining args
567         with a simple second loop.
569         * remake.c (remake_file): Set update_status to 2 instead of 1 for
570         no rule to make.  Mention parent (dependent) in error message.
571         (update_file_1): Handle FILE->update_status == 2 in -d printout.
572         * job.c (start_job_command, reap_children): Set update_status to 2
573         instead of 1 for failed commands.
575 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
577         * job.c (search_path): Function removed (was already #if 0'd out).
578         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
580 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
582         * configure.bat: Write @CPPFLAGS@ translation.
584 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
586         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
587         to not skip the elt immediately preceding `l(...'.
589 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
591         * Version 3.72.11.
593         * read.c (find_char_unquote): Make second arg a string of stop
594         chars instead of a single stop char.  Stop when any char in the
595         string is hit.  All callers changed.
596         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
597         instead of using two calls.  If the match is not a ; but a #,
598         return zero.
599         * misc.c: Changed find_char_unquote callers here too.
601         * Version 3.72.10.
603         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
604         __MSDOS__.
606         * GNUmakefile (globfiles): Add glob/configure.bat.
607         (distfiles): Add configh.dos, configure.bat.
609 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
611         Fixes for MS-DOS from DJ Delorie.
612         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
613         as separator in "C:\...".
614         * configh.dos (STDC_HEADERS): Define only if undefined.
615         (HAVE_SYS_PARAM_H): Don't define this.
616         (HAVE_STRERROR): Define this.
617         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
619         * Version 3.72.9.
621         * main.c (decode_switches): Reset optind to 1 instead of 0.
623 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
625         * main.c (decode_switches): If non-option arg is "-", ignore it.
627 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
629         * Version 3.72.8.
631 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
633         * Version 3.72.7.
635 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
637         * main.c (main): Pass missing arg to tmpnam.
639         * configure.in: Check for strsignal.
640         * job.c (child_error): Use strsignal.
641         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
643         * misc.c (strerror): Fix swapped args in sprintf.
645 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
647         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
649 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
651         * main.c (print_version): Add 95 to copyright years.
653         * Version 3.72.6.
655         * job.c (start_job_command): Remember to call notice_finished_file
656         under -n when not recursing.  To do this, consolidate that code
657         under the empty command case and goto there for the -n case.
659 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
661         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
662         declare it int.
664 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
666         * read.c (read_makefile): For bogus line starting with tab, ignore
667         it if blank after removing comments.
669         * main.c: Cast results of `alloca' to `char *'.
670         * expand.c: Likewise.
672 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
674         * Version 3.72.5.
676         * configure.in: Check for mktemp.
677         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
679         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
680         (_SC_OPEN_MAX)'.
681         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
682         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
683         using sysconf.
685 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
687         * remake.c (update_file_1): When !MUST_MAKE, don't set
688         FILE->update_status to zero before calling notice_finished_file.
689         (notice_finished_file): Touch only when FILE->update_status is zero.
690         (remake_file): Set FILE->update_status to zero after not calling
691         execute_file_command and deciding to touch instead.
693 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
695         * main.c (debug_signal_handler): New function; toggles debug_flag.
696         (main): Handle SIGUSR1 with that.
698 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
700         * compatMakefile (realclean): Remove Info files.
702 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
704         * Version 3.72.4.
706         * job.c (start_job_command): Save and restore environ around vfork
707         call.
708         (search_path): Function #if 0'd out.
709         (exec_command): Use execvp instead of search_path.
711         * expand.c (variable_expand): Rewrote computed variable name and
712         substitution reference handling to be simpler.  First expand the
713         entire text between the parens if it contains any $s, then examine
714         the result of that for subtitution references and do no further
715         expansion while parsing them.
717         * job.c (construct_command_argv_internal): Handle " quoting too,
718         when no backslash, $ or ` characters appear inside the quotes.
720         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
721         defined, just use int.
723 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
725         * default.c (default_variables) [__hpux]: Remove special
726         definition of ARFLAGS.  Existence of the `f' flag is not
727         consistent across HPUX versions; and one might be using GNU ar
728         anyway.
730         * compatMakefile (clean): Don't remove Info files.
732         * compatMakefile (check): Remove gratuitous target declaration.
734 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
736         * compatMakefile (ETAGS, CTAGS): Don't use -t.
738         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
740         * main.c (decode_switches): For --help, print usage to stdout.
742 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
744         * Version 3.72.3.
746         * remake.c (update_file_1): Do set_command_state (FILE,
747         cs_not_started) only if old state was deps_running.
749 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
751         * job.c (start_waiting_job): Use set_command_state.
753         * build.template (CPPFLAGS): New variable.
754         (prefix, exec_prefix): Set from @...@.
755         (compilation loop): Pass $CPPFLAGS to compiler.
757         * GNUmakefile (build.sh.in): Make it executable.
759         * GNUmakefile (globfiles): Add configure.in, configure.
761         * Version 3.72.2.
763         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
765         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
767         * configure.in: Don't check for ranlib.
769 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
771         * remake.c (notice_finished_file): Only mark also_make's as
772         updated if really ran cmds.
774 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
776         * configure.in: Put dnls before random whitespace.
778 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
780         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
781         (RANLIB): Variable removed.
782         (prefix, exec_prefix): Set these from @...@.
783         (.c.o): Use $(CPPFLAGS).
784         (glob/libglob.a): Don't pass down variables to sub-make.
785         glob/Makefile should be configured properly by configure.
786         (distclean): Remove config.log and config.cache (autoconf stuff).
788 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
790         * acconfig.h: Add #undef HAVE_UNION_WAIT.
791         * configure.in: Converted to Autoconf v2.
792         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
793         of DIRENT, SYSDIR, NDIR.
794         * build.sh.in (prefix, exec_prefix): Set these from @...@.
795         (CPPFLAGS): New variable, set from @CPPFLAGS@.
796         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
797         * install.sh: File renamed to install-sh.
799         * main.c (define_makeflags): When no flags, set WORDS to zero.
801 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
803         * Version 3.72.1.
805         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
806         empty.
808 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
810         * Version 3.72.
812 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
814         * Version 3.71.5.
816         * job.c (start_job_command): When ARGV is nil, only set
817         update_state and call notice_finished_file if job_next_command
818         returns zero.
820         * job.c (start_job_command): Call notice_finished_file for empty
821         command line.
823 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
825         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
826         COMMANDS_NOERROR.
828 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
830         * Version 3.71.4.
832 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
834         * file.c (snap_deps): Set command_flags bits in all :: entries.
836 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
838         * make.h (posix_pedantic): Declare it.
839         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
840         snap_deps.
841         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
842         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
843         command_flags and don't set -i.  Likewise .SILENT.
844         * job.c (start_job_command): In FLAGS initialization, OR in
845         CHILD->file->command_flags.
846         * file.h (struct file): New member `command_flags'.
848 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
850         * main.c (switches): Bump flag values for --no-print-directory and
851         --warn-undefined-variables, so neither is 1 (which indicates a
852         nonoption argument).
854 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
856         * main.c (main): Add missing code in .IGNORE test.
858 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
860         * variable.c (define_automatic_variables): Define +D and +F.
862 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
864         * main.c (main): Define hidden automatic variable with command
865         vars, and MAKEOVERRIDES to a reference to that.
866         (define_makeflags): If posix_pedantic, write a reference to that
867         instead.
869 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
871         * main.c (posix_pedantic): New variable.
872         (main): Set posix_pedantic if .POSIX is a target.
873         Fix .IGNORE and .SILENT checks to require is_target.
875         * commands.c (set_file_variables): Define new automatic variable
876         $+, like $^ but before calling uniquize_deps.
878         * job.c (reap_children): Call delete_child_targets for non-signal
879         error if .DELETE_ON_ERROR is a target.
881 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
883         * Version 3.71.3.
885 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
887         * job.c (reap_children): Don't change C->file->command_state when
888         dying.  Test it only after calling start_job_command for a new
889         command line.  When no more cmds, just set C->file->update_status.
890         (start_job_command): When the last line is empty or under -n, set
891         C->file->update_status.
892         (start_waiting_job): Grok cs_not_started after start_job_command
893         as success.
894         (new_job): Set C->file->update_status when there are no cmds.
895         (job_next_command): When out of lines, don't set
896         CHILD->file->update_status or CHILD->file->command_state.
898         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
899         if nonzero, also double $s.
900         (main): Define MAKEOVERRIDES from command_variables here.
901         (define_makeflags): Don't use command_variables here; instead write a
902         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
904         * dir.c [__MSDOS__]: Fixed typo.
906         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
908 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
910         * remake.c: Include <assert.h> and use assert instead of printfs
911         and abort.
913         * main.c (decode_switches): Loop until optind hits ARGC, not just
914         until getopt_long returns EOF.  Initialize C to zero before loop;
915         in loop if C is EOF, set optarg from ARGV[optind++], else call
916         getopt_long.
917         (decode_env_switches): Use variable_expand instead of
918         allocated_variable_expand.  Allocate a fresh buffer to copy split
919         words into; scan characters by hand to break words and
920         debackslashify.
921         (shell_quote): New function.
922         (define_makeflags): Allocate doubled space for switch args, and command
923         variable names and values; use shell_quote to quote those things.
925 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
927         * Version 3.71.2.
929         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
931         * main.c (decode_switches): The non-option return from getopt is
932         1, not 0.
933         (command_variables): New type and variable.
934         (decode_switches, decode_env_switches): After making a variable
935         definition, record the struct variable pointer in the
936         command_variables chain.
937         (define_makeflags): If ALL, write variable definitions for
938         command_variables.
940         * main.c (other_args): Variable removed.
941         (goals, lastgoal): New static variables (moved from auto in main).
942         (main): Don't process OTHER_ARGS at all.
943         Don't set variable MAKEOVERRIDES at all; define MAKE to just
944         $(MAKE_COMMAND).
945         (init_switches): Prepend a - {return in order} instead of a +
946         {require order}.
947         (decode_switches): Don't set OTHER_ARGS at all.
948         Grok '\0' return from getopt_long as non-option argument; try
949         variable definition and (if !ENV) enter goal targets here.
950         (decode_env_switches): Use allocated_variable_expand to store value.
951         Use find_next_token to simplify word-splitting loop.  Don't
952         prepend a dash to uninterpreted value.  Instead, if split into
953         only one word, try variable definition and failing that prepend a
954         dash to the word and pass it to decode_switches as a single arg.
956 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
958         * remake.c (notice_finished_file): Only recheck modtimes if
959         FILE->command_state was cs_running on entry (meaning the commands
960         actually just ran).
961         (update_file_1): Whenever we set FILE->update_status, call
962         notice_finished_file instead of just set_command_state.
963         * job.c (start_job_command): Whenever we set
964         CHILD->file->update_status, call notice_finished_file instead of
965         just set_command_state.
967 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
969         * default.c: Add missing ".
971         * job.c: Changed all assignments of command_state members to calls
972         to set_command_state.
973         * remake.c: Likewise.
974         * file.c (set_command_state): New function.
975         * file.h: Declare set_command_state.
977         * main.c (init_switches): Put a + first in options.
979 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
981         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
982         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
983         * main.c (directory_before_chdir): New variable, moved out of main
984         (was local).
985         (main) [__MSDOS__]: Look for \ or : to delimit last component of
986         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
987         (die): Change back to `directory_before_chdir' before dying.
988         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
989         [__MSDOS__] and not.
990         * job.c [__MSDOS__]: Include <process.h>.
991         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
992         dos_batch_file): New variables.
993         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
994         (unblock_sigs) [__MSDOS__]: Do nothing.
995         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
996         (load_too_high) [__MSDOS__]: Always return true.
997         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
998         Use PATH_SEPARATOR_CHAR instead of ':'.
999         (construct_command_argv_internal) [__MSDOS__]: Wholly different
1000         values for sh_chars and sh_cmds.  Wholly new code to handle shell
1001         scripts.
1002         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
1003         implementation.
1004         * dir.c [__MSDOS__] (dosify): New function.
1005         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
1006         process the result instead of FILENAME itself.
1007         (file_impossible_p) [__MSDOS__]: Likewise.
1008         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
1009         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
1010         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
1011         `bison -y', and LEX to `flex'.
1012         * configure.bat, configh.dos: New files.
1013         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
1014         intermediates and exit.
1016         * commands.c (set_file_variables): Add parens in length
1017         computation in .SUFFIXES dep loop to quiet compiler warning.  From
1018         Jim Meyering.
1020         * read.c (read_makefile): Free FILENAME if we allocated it.  From
1021         Jim Meyering.
1023 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1025         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
1026         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
1027         * read.c (construct_include_path): Use safe_stat in place of stat.
1028         * job.c (search_path): Use safe_stat in place of stat.
1029         * dir.c (find_directory): Use safe_stat in place of stat.
1030         * commands.c (delete_target): Use safe_stat in place of stat.
1031         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
1032         * remake.c (name_mtime): Use safe_stat in place of stat.
1033         (touch_file) [EINTR]: Do EINTR looping around fstat.
1035 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1037         * read.c (read_makefile): Check for a shell command first, and
1038         then strip leading tabs before further checking if it's not a
1039         shell command line.
1041         * make.h [__arm]: Undefine POSIX.
1042         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
1043         functions that return int.
1045         * job.c (construct_command_argv_internal): After swallowing a
1046         backslash-newline combination, if INSTRING is set goto string_char
1047         (new label) for normal INSTRING handling code.
1049 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1051         * configure.in: Don't check for sys_siglist and _sys_siglist with
1052         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
1054 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1056         * Version 3.71.1 released.
1058         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
1059         _POSIX_VERSION for these declarations.
1061         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
1062         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
1064 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1066         * Version 3.71 released.
1068         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
1069         and [HAVE_SETGID].  Every system has those, and configure doesn't
1070         check for them.
1072         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
1074         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
1075         getloadavg.c.
1076         (loadavg.c): Link or copy it from getloadavg.c.
1077         (distclean): Remove loadavg.c.
1079 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1081         * Version 3.70.4.
1083         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
1084         and HAVE_SETEGID.
1086         * default.c (default_terminal_rules): In SCCS rules, put
1087         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
1088         only before the file name.
1089         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
1091 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1093         * job.c (construct_command_argv_internal): Swallow
1094         backslash-newline combinations inside '' strings too.
1096 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1098         * read.c (do_define): Call collapse_continuations on each line
1099         before all else.
1101 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1103         * job.c (construct_command_argv_internal): Notice newline inside
1104         '' string when RESTP is non-null.
1106 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1108         * Version 3.70.3.
1110         * remake.c (update_goal_chain): Reset FILE to G->file after the
1111         double-colon loop so it is never null for following code.
1113         * read.c (read_makefile): Fix `override define' parsing to skip
1114         whitespace after `define' properly.
1116         * compatMakefile (srcdir): Define as @srcdir@; don't reference
1117         $(VPATH).
1118         (glob/Makefile): New target.
1120 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1122         * Version 3.70.2.
1124         * misc.c (remove_comments): Use find_char_unquote.
1125         * make.h (find_char_unquote): Declare it.
1126         * read.c (find_char_unquote): New function, generalized from
1127         find_percent.
1128         (find_percent, find_semicolon, parse_file_seq): Use that.
1130 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1132         * implicit.c (pattern_search): Always allocate new storage for
1133         FILE->stem.  It is not safe to store STEM's address because it
1134         might be auto storage.
1136         * configure.in: Check for seteuid and setegid.
1137         * misc.c [HAVE_SETEUID]: Declare seteuid.
1138         [HAVE_SETEGID]: Declare setegid.
1139         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
1140         [HAVE_SETEGID]: Use setegid.
1142         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
1143         to preserve whether it's 2 for error or 1 for -q trigger.  When
1144         STATUS gets nonzero and -q is set, always stop immediately.
1145         * main.c (main, decode_switches): Die with 2 for errors.
1146         (main): Accept 2 return from update_goal_chain and die with that.
1147         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
1148         answer.
1149         * job.c (reap_children): Die with 2 for error.
1150         (start_job_command): Set update_status to 2 for error.  Set it to
1151         1 when we would run a command and question_flag is set.
1153         * read.c (read_makefile): Don't mark makefiles as precious.  Just
1154         like other targets, they can be left inconsistent and in need of
1155         remaking by aborted commands.
1157         * read.c (read_makefile): Write no error msg for -include file.
1159 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1161         * commands.c (fatal_error_signal): Don't unblock signals.
1163         * file.h (struct file): Change member `double_colon' from flag to
1164         `struct file *'.
1165         * read.c (record_files): Set double_colon pointer instead of flag.
1166         * main.c (main): When disqualifying makefiles for updating, use
1167         double_colon pointer to find all entries for a file.
1168         * file.c (enter_file): If there is already a double-colon entry
1169         for the file, set NEW->double_colon to that pointer.
1170         (file_hash_enter): Use FILE->double_colon to find all entries to
1171         set name.
1172         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
1173         (update_file): Use FILE->double_colon pointer to find all entries.
1174         (f_mtime): Likewise.
1175         (notice_finished_file): Propagate mtime change to all entries.
1177         * variable.c (try_variable_definition): Return after abort.
1179 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1181         * read.c (read_makefile): Remove unused variable.
1182         (parse_file_seq): When removing an elt that is just `)', properly
1183         fix up the previous elt's next pointer.
1185 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
1187         * configure.in: Do AC_SET_MAKE.
1188         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
1190 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1192         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
1193         the search string is the empty string, find a match at the end of
1194         each word (using end_of_token in place of sindex).
1196         * misc.c (end_of_token): Don't treat backslashes specially; you
1197         can no longer escape blanks with backslashes in export, unexport,
1198         and vpath.  This was never documented anyway.
1200 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1202         * read.c (read_makefile): Variable name for `define' is not just
1203         first token; use whole rest of line and strip trailing blanks.
1205 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1207         * Version 3.70.1.
1209         * read.c (read_makefile): Add -d msg stating args.
1211         * read.c (read_makefile): Use isspace to skip over leading
1212         whitespace, and explicitly avoid skipping over tabs.  Don't want
1213         to skip just spaces though; formfeeds et al should be skipped.
1215         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
1217         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
1218         sizeof ar_name for max length to compare.
1220         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
1221         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
1223         * main.c (main): Call user_access after setting `program', in case
1224         it needs to use it in an error message.
1226         * read.c (read_makefile): Ignore an empty line starting with a tab.
1228 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1230         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
1231         AC_COMPILE_CHECK that is now its contents.
1233 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1235         * make.h: #undef strerror after #include <string.h>.
1236         [! ANSI_STRING]: Declare strerror.
1238 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1240         * misc.c (strerror): #undef any macro before function definition.
1242 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1244         * variable.c (try_variable_definition): Calculate BEG before loop
1245         to strip blanks by decrementing END.  Don't decr END to before BEG.
1247         * read.c (read_makefile): Skip over leading space characters, but
1248         not tabs, after removing continuations and comments (it used to
1249         use isspace).
1251 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1253         * variable.c (define_automatic_variables): In $(@D) et al, use
1254         patsubst to remove trailing slash.
1256         * commands.c (delete_target): New function, broken out of
1257         delete_child_targets.  Check for archive members and give special msg.
1258         (delete_child_targets): Use delete_target.
1260 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1262         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
1263         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
1265 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1267         * GNUmakefile (tarfiles): Omit make-doc.
1268         (make-$(version).tar): Include make.info*.
1270 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1272         * compatMakefile (configure, config.h.in): Comment out rules.
1274 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1276         * compatMakefile (binprefix, manprefix): New variables.
1277         (instname): Variable removed.
1278         (install): Use $({bin,man}prefix)make in place of $(instname).
1279         File targets likewised renamed.
1281 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1283         * Version 3.70 released.
1285 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1287         * Version 3.69.3.
1289         * read.c (parse_file_seq): Inside multi-word archive ref
1290         translation loop, check NEW1==0 at end and break out of the loop.
1292         * GNUmakefile (make-$(version).tar): Distribute install.sh.
1293         * install.sh: New file.
1295         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
1296         cmds outside subshell parens, to avoid "command not found" msgs
1297         from the shell.
1299 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1301         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
1302         Redirect output & error from get to /dev/null.
1303         Fix reversed sense of test.
1305 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1307         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
1308         braces inside if condition command; some shells lose.
1310 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1312         * Version 3.69.2.
1314         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
1315         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
1317         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
1319 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1321         * main.c (main): Cast result of pointer arith to unsigned int
1322         before passing to define_variable for envars.  Matters when
1323         sizeof(unsigned)!=sizeof(ptrdiff_t).
1325 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1327         * configure.in: Add new check for SCCS_GET_MINUS_G.
1328         * config.h.in: Add #undef SCCS_GET_MINUS_G.
1329         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
1330         place of `-G $@' in SCCS commands.
1331         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
1332         to "-G$@".
1334         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
1335         (so it goes in config.status), rather than afterward.
1337         * ar.c (ar_member_date): Don't call enter_file on the archive file
1338         if it doesn't exist (by file_exists_p).
1340         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
1341         with `$$dir/make.info' in install-info invocation (oops).
1343         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
1344         we do not unlink and free PATH.
1346         * file.c (print_file_data_base): Fix inverted calculation for
1347         average files per hash bucket.
1349         * read.c (readline): When we see a NUL, give only a warning and
1350         synthesize a newline to terminate the building line (used to
1351         fatal).  Move fgets call into the loop condition, and after the
1352         loop test ferror (used to test !feof in the loop).
1354 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1356         * configure.in: Check for strerror in AC_HAVE_FUNCS.
1358 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1360         Differentiate different flavors of missing makefile error msgs,
1361         removing gratuitous `fopen: ' and giving caller for included makefiles.
1362         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
1363         (perror_with_name, pfatal_with_name): Use strerror instead of
1364         replicating its functionality.
1365         * read.c (read_makefile): Return int instead of void.
1366         (read_all_makefiles, read_makefile): Change callers to notice zero
1367         return and give error msg.
1369 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1371         * Version 3.69.1.
1373         * default.c: Put `-G $@' before $< in SCCS cmds.
1375 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1377         * read.c (read_makefile): After trying a variable defn, notice if
1378         the line begins with a tab, and diagnose an error.
1380 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1382         * Version 3.69.
1384 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1386         * Version 3.68.10.
1388         * implicit.c (try_implicit_rule): Look for a normal rule before an
1389         archive rule.
1391 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1393         * function.c (expand_function: `sort'): Double NWORDS when it
1394         overflows, instead of adding five.
1396         * compatMakefile (clean): Remove loadavg.
1398 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1400         * Version 3.68.9.
1402         * file.h (NEW_MTIME): Define new macro.
1403         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
1404         current time returned from system.  Removed variable NOW.
1405         * remake.c (notice_finished_file): Use NEW_MTIME in place of
1406         current time here too.
1408 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1410         * Version 3.68.8.
1412         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1413         cmds and !DEPS_CHANGED unless also !NOEXIST.
1415 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1417         * read.c (parse_file_seq): When converting multi-word archive
1418         refs, ignore a word beginning with a '('.
1420 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1422         * configure.in: Check for sys/timeb.h.
1423         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1425 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1427         * Version 3.68.7.
1429         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
1430         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
1431         TARGNAME to initialize PERCENTS[0].
1433 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1435         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1436         Remove AC_USG; it is no longer used.
1438         * file.c (print_file): New function, broken out of
1439         print_file_data_base.
1440         (print_file_data_base): Call it.
1441         * rule.c (print_rule): New function, broken out of
1442         print_rule_data_base.
1443         (print_rule_data_base): Call it.
1445 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1447         * default.c (install_default_suffix_rules): New function, broken
1448         out of install_default_implicit_rules.
1449         (install_default_implicit_rules): Move suffix rule code there.
1450         * make.h: Declare install_default_suffix_rules.
1451         * main.c (main): Call install_default_suffix_rules before reading
1452         makefiles.  Move convert_to_pattern call before
1453         install_default_implicit_rules.
1455         * job.h (struct child): Make `pid' member type `pid_t' instead of
1456         `int'.
1458         * compatMakefile (RANLIB): New variable, set by configure.
1459         (glob/libglob.a): Pass RANLIB value down to submake.
1461         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1462         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1463         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1464         defined but NOFILES_MAX is, define it to be that.
1466 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1468         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1469         is distributed.
1471 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1473         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1475 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1477         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1478         is another symbol for | in some shells.
1479         * main.c (main): Add it to CMD_DEFS quoting list as well.
1481 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1483         * job.c (construct_command_argv_internal): Remove '=' from
1484         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1485         first word without an unquoted '='.
1487         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1489 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1491         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1493         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1495         * commands.c (delete_child_targets): Don't delete phony files.
1497         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1498         see a `+' at the beginning of the command line.
1500 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1502         * Version 3.68.6.
1504 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1506         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1508 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1510         * expand.c (variable_expand): Fatal on an unterminated reference.
1512 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1514         * Version 3.68.5.
1516         * variable.c (define_automatic_variables): Define new o_default
1517         variable `MAKE_VERSION' from version_string and remote_description.
1519         * make.h (version_string, remote_description): Declare these here.
1520         * main.c: Don't declare version_string.
1521         (print_version): Don't declare remote_description.
1523 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1525         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1526         before restoring the old pointer.
1528 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1530         * compatMakefile ($(objs)): Depend on config.h.
1532         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1534         * configure.in: Touch stamp-config after AC_OUTPUT.
1536 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1538         * Version 3.68.4.
1540 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1542         * make.h: Include <config.h> instead of "config.h".
1544 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1546         * main.c (main): Make all variables interned from ENVP be v_export.
1547         * variable.c (try_variable_definition): In v_default case, don't
1548         check for an o_file variable that `getenv' finds.
1550         * job.c (reap_children): New local variable ANY_LOCAL; set it
1551         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1553         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1555         * function.c (expand_function): #if 0 out freeing of ENVP since it
1556         is environ.
1558 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1560         * Version 3.68.3.
1562         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1563         * job.c (reap_children): Scan the chain for remote children and
1564         never call remote_status if there are none.
1566         * function.c (expand_function: `shell'): #if 0 out calling
1567         target_environment; just set ENVP to environ instead.
1569         * job.c (reap_children): Check for negative return from
1570         remote_status and fatal for it.
1571         When blocking local child wait returns 0, then try a blocking call
1572         to remote_status.
1574 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1576         * compatMakefile (clean): Delete make.info* and make.dvi here.
1577         (distclean): Not here.
1579         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1580         compilers that don't like enum values used as ints.
1582 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1584         * compatMakefile (loadavg): Add $(LOADLIBES).
1586 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1588         * Version 3.68.2.
1590         * compatMakefile (loadavg, check-loadavg): New targets.
1591         (check): Depend on check-loadavg.
1593         * compatMakefile (glob/libglob.a): Depend on config.h.
1595         * misc.c (log_access): Write to stderr instead of stdout.
1597 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1599         * Version 3.68.1.
1601 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1603         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1604         <unistd.h> #ifdef HAVE_UNISTD_H.
1606         * compatMakefile (.PHONY): Put after `all' et al.
1608         * configure.in: Add AC_IRIX_SUN.
1610 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1612         * Version 3.68.
1614 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1616         * Version 3.67.8.
1618 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1620         * Version 3.67.7.
1622         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1623         Run install-info script if present.
1625 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1627         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1629         * configure.in: Add AC_STAT_MACROS_BROKEN.
1631 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1633         * Version 3.67.6.
1635         * read.c (read_makefile): Recognize directive `-include', like
1636         `include' but sets RM_DONTCARE flag.
1638         * variable.c (target_environment): If FILE is nil, use
1639         current_variable_set_list in place of FILE->variables.
1640         * function.c (expand_function: `shell'): Get an environment for
1641         the child from target_environment instead of using environ.
1643         * dep.h: Declare read_all_makefiles here.
1644         (RM_*): Define new enum constants.
1645         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1646         Treat it as a bit mask containing RM_*.
1647         (read_all_makefiles): For default makefiles, set D->changed to
1648         RM_DONTCARE instead of 1.
1649         * main.c: Don't declare read_all_makefiles here.
1650         (main): Check `changed' member of read_makefiles elts for RM_*
1651         flags instead of specific integer values.
1653 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1655         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1657 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1659         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1660         as well as VPATH.
1661         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1662         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1664         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1665         PERCENTS, whose storage is not consumed by create_pattern_rule.
1667         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1669 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1671         * Version 3.67.5.
1673         * rule.c (max_pattern_targets): New variable.
1674         (count_implicit_rule_limits): Compute its value.
1675         * rule.h: Declare it.
1676         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1677         times bigger.  Move adding new TRYRULES elt inside the inner
1678         targets loop, so each matching target gets its own elt in MATCHES
1679         and CHECKED_LASTSLASH.
1681         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1682         instead of just `file' in error msg.
1684 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1686         * job.c (construct_command_argv): Turn off
1687         --warn-undefined-variables around expansion of SHELL and IFS.
1688         * read.c (tilde_expand): Likewise for HOME.
1689         (read_all_makefiles): Likewise for MAKEFILES.
1690         * vpath.c (build_vpath_lists): Likewise for VPATH.
1692         * main.c (warn_undefined_variables_flag): New flag variable.
1693         (switches): Add --warn-undefined-variables.
1694         * make.h (warn_undefined_variables_flag): Declare it.
1695         * expand.c (warn_undefined): New function.
1696         (reference_variable): Call it if the variable is undefined.
1697         (variable_expand): In substitution ref, call warn_undefined if the
1698         variable is undefined.
1700         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1701         `%.tex: %.w %.ch' rules.
1702         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1703         (default_suffixes): Add `.ch'.
1705 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1707         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1708         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1709         and `.w.tex'.
1711 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1713         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1715 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1717         * Version 3.67.4.
1719         * read.c (multi_glob): Don't free OLD and OLD->name in the
1720         FOUND!=0 fork.  Use new block-local variable F instead of
1721         clobbering OLD.
1723         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1724         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1725         contains no metacharacters.
1727 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1729         * ar.c (ar_glob{_match,_alphacompare}): New function.
1731         * dep.h [! NO_ARCHIVES]: Declare it.
1732         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1734         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1735         multi_glob (which doesn't take a 3rd arg).
1736         * rule.c (install_pattern_rule): Likewise.
1737         * default.c (set_default_suffixes): Here too.
1738         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1740         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1741         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1743 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1745         * compatMakefile (installdirs): Actually pass directory names.
1746         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1747         if it fails, echo a warning msg, but don't make the rule fail.
1749         * read.c (tilde_expand): New function, broken out of tilde_expand.
1750         (multi_glob): Call it.
1751         (construct_include_path): Expand ~ in directory names.
1752         * dep.h: Declare tilde_expand.
1753         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1754         (main): Expand ~ in -C args.
1755         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1757 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1759         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1761         * main.c (main): Put result of alloca in temporary variable with
1762         simple assignment, to make SGI compiler happy.
1764 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1766         * Version 3.67.3.
1768         * main.c (main): Before re-execing, remove intermediate files, and
1769         print the data base under -p.  Sexier debugging message.
1771         * implicit.c (pattern_search): Allocate an extra copy of the name
1772         of a winning intermediate file when putting it in FOUND_FILES.
1774 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1776         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1777         multi_glob (which doesn't take a 3rd arg).
1779         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1780         chars within D_NAMLEN that are NULs.
1782         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1783         into `other_args'.
1784         For string switch, don't savestring `optarg'.
1785         (main): Don't free elts of makefiles->list that are "-".
1786         Use alloca'd rather than savestring'd storage for elts of
1787         makefiles->list that are temporary file names.
1788         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1789         * file.c (enter_file): Don't strip `./'s.
1790         * main.c (enter_command_line_file): New function.
1791         (main): Use it in place of enter_file for command-line goals from
1792         other_files, and for old_files and new_files.
1794 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1796         * Version 3.67.2.
1798         * compatMakefile (.SUFFIXES): Add .info.
1799         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1800         else in $srcdir.  Use basename to remove dir name from installed name.
1802 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1804         * implicit.c (pattern_search): When interning FOUND_FILES, try
1805         lookup_file first; if found, free the storage for our copy of the name.
1807 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1809         * Version 3.67.1.
1811         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1812         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1814 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1816         * rule.c (convert_suffix_rule): New function.
1817         (convert_to_pattern): Use it instead of doing all the work here
1818         several times.
1819         For target suffix `.a', generate both the archive magic rule and
1820         the normal rule.
1822         * compatMakefile (distclean): Remove stamp-config.
1824 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1826         * Version 3.67.
1828         * file.c (remove_intermediates): Don't write extra space after `rm'.
1830         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1831         (print_usage_flag): New variable.
1832         (switches: --help): Make type `flag', to set print_usage_flag.
1833         (init_switches): Remove `usage_and_exit' case.
1834         (decode_switches): Likewise.
1835         (decode_switches): Print usage if print_usage_flag is set.
1836         When printing usage, die with status of BAD.
1837         (main): Die with 0 if print_version_flag.
1839 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1841         * Version 3.66.
1843 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1845         * compatMakefile (installdirs): New target.
1846         (install): Depend on it.
1848 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1850         * Version 3.65.2.
1852 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1854         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1855         set LASTPATH to PATH, not NEXT.
1857         * dir.c (read_dirstream): Break out of loop after incrementing
1858         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1859         dereference DS->contents->files[DIRFILE_BUCKETS].
1861         * read.c (read_makefile): Clear no_targets after reading a
1862         targetful rule line.
1864         * main.c (main): If print_version_flag is set, exit after printing
1865         the version.
1866         (switches): Change --version docstring to say it exits.
1868         * make.h [butterfly]: #undef POSIX.
1870 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1872         * Version 3.65.1.
1874         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1875         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1877         * function.c (handle_function): Use fatal instead of
1878         makefile_fatal when reading_filename is nil.
1880         * configure.in: Add AC_GETGROUPS_T.
1881         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1883 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1885         * Version 3.65.
1887 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1889         * function.c (handle_function): Fatal for unmatched paren.
1891 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1893         * Version 3.64.3.
1895         * commands.c (handling_fatal_signal): New variable.
1896         (fatal_error_signal): Set it.
1897         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1898         * make.h: Declare handling_fatal_signal.
1900         * expand.c (reference_variable): New function, snippet of code
1901         broken out of simple-reference case of variable_expand.
1902         (variable_expand): Use it for simple refs.
1903         (variable_expand): When checking for a computed variable name,
1904         notice a colon that comes before the final CLOSEPAREN.  Expand
1905         only up to the colon, and then replace the pending text with a
1906         copy containing the expanded name and fall through to subst ref
1907         handling.
1908         (variable_expand): Don't bother expanding the name if a colon
1909         appears before the first $.
1910         (expand_argument): Use alloca instead of savestring.
1911         (variable_expand): For subst ref, expand both sides of = before
1912         passing to [pat]subst_expand.  Use find_percent instead of lindex
1913         to check the lhs for a %.
1915 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1917         * Version 3.64.2.
1919 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1921         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1923         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1924         not to multi_glob.
1926 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1928         * Version 3.64.1.
1930         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1931         we read the member name in any of the fashions that allow it to be
1932         arbitrarily long.  Pass its negation to FUNCTION.
1933         (describe_member): Take TRUNCATED from ar_scan and print it.
1934         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1935         the first sizeof (struct ar_hdr.ar_name) chars.
1936         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1937         * ar.c (ar_member_date_1): Likewise.
1939 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1941         * job.c (reap_children): Before calling start_job_command to start
1942         the next command line, reset C->remote by calling start_remote_job_p.
1944 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1946         * arscan.c (ar_scan): New local var NAMEMAP.
1947         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1948         flag IS_NAMEMAP.  When extracting the member name, always put a
1949         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1950         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1951         like " /N", get full name from NAMEMAP+N.
1952         Else if NAME looks like "#1/N", read N chars from the
1953         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1954         the elt's data into alloca'd NAMEMAP.
1955         (ar_name_equal): #if 0 truncating code.
1957         * make.h: Don't declare vfork at all.  It returns int anyway,
1958         unless <unistd.h> declared it; and we conflicted with some systems.
1960         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1961         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1962         define it to something like "-no-print-directory".
1963         Use %g format instead of %f for floating-valued things.
1965 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1967         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1968         to change remote-%.dep to remote-stub.dep.
1970 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1972         * Version 3.64.
1974 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1976         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1978         * Version 3.63.8.
1980 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1982         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1983         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1984         else to "get".
1985         * default.c (default_variables): Set GET to macro SCCS_GET.
1987         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1988         if nonzero.  I hope this is the last time this argument is added
1989         or removed.
1990         (read_makefile): Pass it 1 when parsing include file names.
1991         Pass it 1 when parsing target file names.
1992         Pass it 1 when parsing static pattern target pattern names.
1993         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1994         * default.c (set_default_suffixes): Pass it 1 when parsing
1995         default_suffixes.
1996         * function.c (string_glob): Pass it 0 here.
1998 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2000         * misc.c (log_access): New function.
2001         ({init,user,make,child}_access): Call it.
2002         (child_access): Abort if !access_inited.
2004         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
2005         single-letter option.
2006         (init_switches, decode_switches, define_makeflags): An option with
2007         no single-letter version is no longer indicated by a value of -1;
2008         instead a value that is !isalnum.
2009         (init_switches): Don't put such switches into the string, only
2010         into the long_option table.
2012         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
2014         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
2015         bsdcc defined WIF* to use union wait.
2017         * main.c (struct command_switch): Change member `c' to type int.
2018         (switches): Make const.
2019         (decode_switches): Use `const struct command_switch *'.
2020         (define_makeflags): Likewise.
2022         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
2024 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2026         * Version 3.63.7.
2028         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
2029         Removed AC_MEMORY_H.
2030         * make.h [USG, NeXT]: Don't test these.
2031         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
2032         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
2033         [! ANSI_STRING]: Put decls of bcopy et al here.
2034         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
2035         [HAVE_SIGSETMASK]: Test this rather than USG.
2036         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
2037         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
2038         It doesn't hurt to do both if they are both defined, and testing
2039         USG is useless.
2040         * dir.c: Rationalize directory header conditionals.
2041         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
2043         * default.c (default_suffixes): Add `.txinfo'.
2044         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
2046         * variable.c (try_variable_definition): Replace RECURSIVE flag
2047         with enum FLAVOR, which can be simple, recursive, or append.
2048         Recognize += as append flavor.  Set new variable VALUE in a switch
2049         on FLAVOR.  For append flavor, prepend the variable's old value.
2050         If the variable was previously defined recursive, set FLAVOR to
2051         recursive; if it was defined simple, expand the new value before
2052         appending it to the old value.  Pass RECURSIVE flag to
2053         define_variable iff FLAVOR == recursive.
2055         * variable.c (try_variable_definition): Use alloca and bcopy for
2056         NAME, instead of savestring.  Might as well use stack storage
2057         since we free it immediately anyway.
2059 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2061         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
2063         * main.c (define_makeflags): Rename `struct flag' member `switch'
2064         to `cs', which is not a reserved word.
2066 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2068         * job.c (new_job): Call start_waiting_jobs first thing.
2069         (start_waiting_job): Changed return type from void to int.
2070         Return 0 when putting the child on the waiting_jobs chain.
2071         (start_waiting_jobs): Don't check load and job_slots here.
2072         Always take a job off the chain and call start_waiting_job on it;
2073         give up and return when start_waiting_job returns zero.
2075         * main.c (define_makeflags: struct flag): Change member `char c' to
2076         `struct command_switch *switch'.
2077         (ADD_FLAG): Set that to CS instead of CS->c.
2078         If CS->c is -1, increment FLAGSLEN for the long name.
2079         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
2080         the long name instead.
2082         * compatMakefile (stamp-config): New target of old config.h rule.
2083         Touch stamp-config after running config.status.
2084         (config.h): Just depend on stamp-config, and have empty commands.
2086 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2088         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
2090         * configure.in (AC_HAVE_FUNCS): Check for psignal.
2092 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2094         * main.c (long_option_aliases): Remove "new"; it is already an
2095         unambiguous prefix of "new-file".
2097 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2099         * Version 3.63.6.
2101 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2103         * vpath.c (selective_vpath_search): When adding the
2104         name-within-directory at the end of NAME, and we don't add a
2105         slash, don't copy FILENAME in one char too far into NAME.
2107         * variable.c (define_automatic_variables): Find default_shell's
2108         length with strlen, not numerology.
2110 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2112         * main.c (define_makeflags): Add the elts of a string option in
2113         reverse order, so they come out right when reversed again.
2115 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2117         * compatMakefile (make.info): Use `-o make.info'.
2119 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2121         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
2122         reflect new use.
2123         (objs): Replace remote.o with remote-$(REMOTE).o.
2124         (srcs): Replace remote.c with remote-$(REMOTE).c.
2125         (remote.o): Rule removed.
2127         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
2128         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
2129         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
2130         * build.template (REMOTE): New var; set to @REMOTE@.
2131         (objs): Add remote-${REMOTE}.o.
2133 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2135         * Version 3.63.5.
2137         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
2138         "Rejecting impossible" -d msg.
2140         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
2141         mod'd values there; never mod {OLD,NEW}HASH.
2143 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2145         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
2147         * compatMakefile (VPATH): Set this to @srcdir@.
2148         (srcdir): Set this to $(VPATH).
2150         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
2151         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
2152         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
2154         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
2156         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
2158 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2160         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
2161         as the sed delimiter char.
2163 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2165         * Version 3.63.4.
2167         * rule.h (struct rule): Removed `subdir' member.
2168         * rule.c (new_pattern_rule): No need to clear it.
2169         (count_implicit_rule_limits): Set the `changed' flag in each dep
2170         that refers to a nonexistent directory.  No longer set rule-global
2171         `subdir' flag with that information.
2172         (print_rule_data_base): Don't record info on `subdir' flags.
2174         * implicit.c (pattern_search): Check the DEP->changed flag rather
2175         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
2176         if it is set, the file might exist even though the DEP->changed
2177         flag is set.
2179         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
2180         name arg to dir_file_exists_p to check for existence of directory.
2182         * implicit.c (pattern_search): Inside dep-finding loop, set
2183         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
2184         rather than computing it anew.
2186         * commands.c (set_file_variables): Must alloca space for PERCENT
2187         and copy it, to avoid leaving the trailing `)' in the value.
2189         * misc.c (remove_comments): Fixed backslash-checking loop
2190         condition to allow it to look at the first char on the line.
2191         P2 >= LINE, not P2 > LINE.
2193         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
2194         $@, rm $@.old and mv $@ to $@.old.
2196         * variable.c (try_variable_definition): Take new args FILENAME and
2197         LINENO.  Fatal if the variable name is empty.
2198         * read.c (read_makefile): Change callers.
2199         * main.c (main): Likewise.
2201         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
2202         that configure will replace with the group owning /dev/kmem.
2204 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2206         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
2207         selective_vpath_search.
2208         (selective_vpath_search): Take second arg MTIME_PTR.
2209         If the dir cache thinks a file exists, stat it to make sure, and
2210         put the modtime in *MTIME_PTR.
2211         * remake.c (library_search): Take second arg MTIME_PTR.
2212         When we find a match, record its mtime there.
2213         Pass MTIME_PTR through to vpath_search to do same.
2214         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
2215         store it in FILE->last_mtime if set nonzero.
2216         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
2218         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
2219         so globbing looks somewhere it will find things.
2221         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
2222         not `$(srcdir)/make.info*'; no need to use basename.
2224 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2226         * Version 3.63.3.
2228         * compatMakefile (install): Add missing ;\s.
2230         Make -, @, and + prefixes on a pre-expanded command line affect
2231         all lines in the expansion, not just the first.
2232         * commands.h (struct commands): Replace `lines_recurse' member
2233         with `lines_flags'.
2234         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
2235         that flag byte.
2236         * commands.c (chop_commands): Set `lines_flags' instead of
2237         `lines_recurse'.  Record not only + but also @ and - prefixes.
2238         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
2239         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
2240         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
2241         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
2242         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
2243         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
2245         * remake.c (update_goal_chain): Set G->file to its prev after
2246         checking for G being finished, since that check needs to examine
2247         G->file.
2249         * configure.in (union wait check) [HAVE_WAITPID]: Try using
2250         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
2251         don't work together, we should not use union wait.
2253         * Version 3.63.2.
2255         * remake.c (update_goal_chain): When G->file->updated, move
2256         G->file to its prev.  We aren't finished until G->file is nil.
2258 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2260         * main.c (starting_directory): New global variable.
2261         (main): Set it to cwd after doing -Cs.
2262         (log_working_directory): Use it, rather than computing each time.
2263         * make.h: Declare it.
2265         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
2267         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
2268         ARGV, rather than LEN words plus one byte.
2270 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2272         * compatMakefile ($(bindir)/$(instname)): Put - before
2273         install_setgid command line, so its failure won't be an error.
2274         (infodir): New variable.
2275         (install): Depend on $(infodir)/$(instname).info.
2276         ($(infodir)/$(instname).info): New target.
2278         * read.c (read_makefile): If FILENAMES is nil when we see a line
2279         starting with a tab, don't treat it as a command.  Just fall
2280         through, rather than giving an error.
2282         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
2283         command line, don't clear it before continuing.  We want
2284         subsequent command lines to be ignored as well.
2286         * job.c (new_job): Before expanding each command line, collapse
2287         backslash-newline combinations that are inside var or fn references.
2289 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2291         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
2293         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
2295         * job.c [POSIX] (unblock_sigs): Made global.
2296         [!POSIX] (unblock_sigs): Move defns to job.h.
2297         * job.h [POSIX] (unblock_sigs): Declare.
2299 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2301         * read.c (read_makefile): In vpath parsing, after finding the
2302         pattern token, take entire rest of line as the search path, not
2303         just the next token.
2305         * compatMakefile (remote.o): Depend on remote-*.c.
2307 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2309         * commands.c (set_file_variables): Don't define any F or D versions.
2310         * variable.c (define_automatic_variables): Define them here as
2311         recursively-expanded variables that use the dir and notdir funcs.
2313         * variable.c (target_environment): In v_default case, don't export
2314         o_default or o_automatic variables.
2316         * configure.in (union wait check): Remove ` and ' inside C code;
2317         they confuse the shell script.
2319 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2321         * Version 3.63.1.
2323         * vpath.c (construct_vpath_list): When skipping further processing
2324         of an elt that is ".", don't also skip the code that pushes P past
2325         the next separator.
2327         * compatMakefile (distclean): Don't remove make-*.
2329         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
2330         defined.  If one cannot use WEXITSTATUS with a `union wait'
2331         argument, we don't want to believe the system has `union wait' at all.
2333         * remake.c (update_file): Do nothing to print "up to date" msgs.
2334         (update_goal_chain): Do it here instead.
2335         Use the `changed' flag of each goal's `struct dep' to keep track
2336         of whether files_remade (now commands_started) changed around a
2337         call to update_file for that goal.
2338         When a goal is finished, and its file's update_status is zero (i.e.,
2339         success or nothing done), test the `changed' flag and give an "up
2340         to date" msg iff it is clear.
2341         * make.h (files_remade): Renamed to commands_started.
2342         * remake.c: Changed defn.
2343         (update_goal_chain): Changed uses.
2344         * job.c (start_job_command): Increment commands_started here.
2345         (reap_children): Not here.
2347         * remake.c (update_goal_chain): Don't do anything with files'
2348         `prev' members.  update_file now completely handles this.
2350         * variable.c (target_environment): Don't expand recursive
2351         variables if they came from the environment.
2353         * main.c (define_makeflags): For flags with omitted optional args,
2354         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
2355         so stored cannot have more flags appended to the same word.
2357 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2359         * variable.c (print_variable_set): In vars/bucket calculation,
2360         don't spuriously multiply by 100.
2362         * Version 3.63.
2364         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
2365         Don't define if already defined.
2367         * remake.c (update_file): Don't keep track of the command_state before
2368         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
2369         and don't test it to decide to print the "is up to date" msg.
2370         Testing for files_remade having changed should always be sufficient.
2371         The old method lost when we are called in the goal chain run on a
2372         makefile, because the makefile's command_state is already
2373         `cs_finished' from the makefile chain run.
2375         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
2377         * configure.in: Rewrote wait checking.
2378         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
2379         Use AC_HAVE_FUNCS to check for waitpid and wait3.
2380         Use a compile check to test just for `union wait'.
2381         * job.c: Rewrote conditionals accordingly.
2382         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
2383         [HAVE_WAIT3]: Likewise.
2384         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
2386         * configure.in: Set CFLAGS and LDFLAGS before all checks.
2388         * dir.c: Add static forward decls of {open,read}_dirstream.
2390 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2392         * Version 3.62.31.
2394         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
2396         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
2397         * build.template (CFLAGS, LDFLAGS): Same here.
2398         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
2399         Set them to -g if not defined in the environment.
2401         * remake.c (library_search): Use LIBNAME consistently, setting it
2402         only once, to be the passed name sans `-l'.
2403         Pass new var FILE to be modified by vpath_search.
2405 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2407         * Version 3.62.30.
2409         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
2410         job_slots.
2412         * configure.in: Add AC_CONST for the sake of getopt.
2414         * read.c (read_makefile): Continue after parsing `override'
2415         directive, rather than falling through to lossage.
2416         Check for EOL or blank after "override define".
2418         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2420 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2422         * Version 3.62.29.
2424         * main.c (define_makeflags): After writing everything into
2425         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2426         just wrote " -".  Always terminate the string at *P.
2428         * remake.c (library_search): When constructing names in std dirs,
2429         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2430         buffer we are writing into!).
2432 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2434         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2435         define" when IGNORING is true.
2437         * compatMakefile (distclean): Remove config.status and build.sh.
2439 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2441         * Version 3.62.28.
2443         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2444         (char *).
2446         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2448         * variable.c (define_automatic_variables): Override SHELL value for
2449         origin o_env_override as well as o_env.
2451         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
2452         add the names of the glob objects (w/subdir) to %objs%.
2453         * build.template (globobjs): Removed.
2454         Take basename of $objs before linking.
2456 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2458         * Version 3.62.27.
2460         * configure.in (AC_OUTPUT): Also edit build.sh.
2461         * build.template: New file.
2462         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2463         (make-$(version).tar.Z): Depend on build.sh.in.
2465         * main.c (die): Call print_data_base if -p.
2466         (main): Don't call it here.
2468         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2469         into -DHAVE_CONFIG_H.
2471 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2473         * Version 3.62.26.
2475         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2476         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2477         * compatMakefile (install_setgid): New var, set by configure.
2478         (install): Install setgid $(group) only if $(install_setgid) is true.
2480 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2482         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2483         message saying that load limits are not supported.
2485         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2486         not try to use PATH's next link after freeing PATH.
2488         * main.c (define_makeflags): Rewritten; now handles string-valued
2489         option, and has no arbitrary limits.
2490         (switches): Set `toenv' flag for -I and -v.
2492         * main.c (decode_env_switches): Cast return value of alloca to char *.
2494         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2495         setre[gu]id in place of set[gu]id.
2497 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2499         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2500         origin o_default.
2502         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2503         Testing STDC_HEADERS should be sufficient.
2505         * job.h: Declare start_waiting_jobs.
2507         * read.c (read_makefile): Add missing parens in if stmt that find
2508         conditional directives.
2510         * main.c (main): Declare init_dir.
2511         * implicit.c (pattern_search): Always use two % specs in a
2512         DEBUGP2, and always pass two non-nil args.
2513         Cast field width args to int.
2514         Add missing parens in !RULE->subdir if stmt.
2515         * function.c (expand_function, patsubst_expand): Add parens around
2516         assignments inside `while' stmts.
2517         * commands.c (print_commands): Cast field width args to int.
2519         * read.c (do_define): Cast return value of alloca to (char *).
2521         * main.c (init_switches): New function, broken out of decode_switches.
2522         (decode_switches): Take new arg ENV.  If set, ignore non-option
2523         args; print no error msgs; ignore options with clear `env' flags.
2524         (decode_env_switches): Rewritten to chop envar value into words
2525         and pass them to decode_switches.
2526         (switches): Set `env' flag for -I and -v.
2528         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2530 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2532         * Version 3.62.25.
2534         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2535         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2536         we don't need these anyway.
2538         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2539         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2540         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2541         but its set[gu]id functions aren't; its setre[gu]id functions work.
2543         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2545         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2547         * configure.in: Call AC_PROG_CC.
2548         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2550         * compatMakefile: Add .NOEXPORT magic target.
2552 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2554         * main.c (print_version): Updated copyright to include 93.
2556 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2558         * make.h [_AIX]: Don't declare alloca.
2560 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2562         * Version 3.62.24.
2564         * compatMakefile (objs): Add signame.o.
2565         (srcs): Add signame.[ch].
2567         * compatMakefile (srcs): Add config.h.in.
2568         (remote.o): Add -I. before -I$(srcdir).
2570 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2572         * Version 3.62.23.
2574         * read.c (readline): Fatal when LEN==0, indicating a line starting
2575         with a NUL.
2576         (readline): Take new arg LINENO, for use in error msg.
2577         (read_makefile, do_define): Pass it.
2579         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2580         (.c.o): Add -I. before -I$(srcdir).
2582 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2584         * read.c (read_makefile): Accept and ignore a rule with no targets.
2586         * compatMakefile (ALLOCA_SRC): New variable.
2587         (srcs): Include its value.
2589         * read.c (struct conditional): Renamed member `max_ignoring' to
2590         `allocated'; added new member `seen_else'.
2591         (conditional_line): Initialize seen_else flag when starting an `if...';
2592         set it when we see an `else'; fatal if set when we see `else'.
2593         (read_makefile): Fatal "missing `endif'" if there are any pending
2594         conditionals, not just if we are still ignoring.
2596 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2598         * compatMakefile (manext): Set to 1, not l.
2599         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2601         * file.c (file_hash_enter): Don't call uniquize_deps here.
2602         * read.c (record_files): Likewise.
2603         * implicit.c (pattern_search): Likewise.
2604         * commands.c (set_file_variables): Call it only here.
2606         * default.c (default_variables) [__convex__]: FC=fc.
2608         * variable.c (target_environment): Expand the values of recursively
2609         expanded variables when putting them into the environment.
2610         * expand.c (recursively_expand): Made global.
2611         * make.h (recursively_expand): Declare it.
2613         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2614         when a dep's command_state is cs_running or cs_deps_running.
2616         * read.c (read_makefile): Changed error msg for spurious cmds to
2617         not say "first target".
2619 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2621         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2622         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2623         * compatMakefile (config.h, configure, config.h.in): New rules.
2624         (defines): Removed @DEFS@.
2626 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2628         * compatMakefile (realclean): Just depend on distclean; no cmds.
2629         (distclean): Do what realclean did before; also remove Makefile and
2630         config.h; don't remove configure.
2631         (info, dvi): New targets; depend on make.{info,dvi}.
2632         (doc): Removed target.
2633         (MAKEINFO, TEXI2DVI): New vars.
2634         (make.info, make.dvi): Use them instead of explicit cmds.
2636 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2638         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2640 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2642         * main.c (long_option_aliases): Add --new-file alias for -W.
2644         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2645         to CXXFLAGS.
2647         * read.c (do_define): Expand the variable name before using it.
2649         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2650         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2652         * remake.c (library_search): Search for libNAME.a in cwd; look in
2653         vpath before looking in standard dirs, not after.
2654         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2656 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2658         * default.c (default_pattern_rules, default_terminal_rules): Added
2659         brackets around initializers.
2661         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2662         (try_variable_definition): Expand the name before defining the var.
2664         * job.c (init_siglist): Removed function.
2665         Removed decl of `sys_siglist'.
2666         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2667         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2668         only under these conditions.
2669         * main.c (main): Don't declare init_siglist.
2670         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2672 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2674         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2675         nil; instead just set it to MOREDEPS.
2677 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2679         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2680         loop that sets MAXELEM.
2682 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2684         * Version 3.62.22.
2686 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2688         * job.c (start_job_command): Under -n, increment files_remade after
2689         processing (i.e., printing) all command lines.
2691 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2693         * read.c (record_files): Append new deps if this rule has no
2694         commands; prepend them to existing deps if this rule has no commands.
2696         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2698         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2699         (read_makefile): Changed callers.
2700         * function.c (string_glob): Likewise.
2701         * rule.c (install_pattern_rule): Likewise.
2703 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2705         * remake.c (files_remade): Made global.
2706         (notice_finished_file): Don't increment files_remade here; this
2707         function gets called in many situations where no remaking was in
2708         fact done.
2709         * job.c (reap_children): Do it here instead, when we know that
2710         actual commands have been run for the file.
2711         * make.h (files_remade): Declare it.
2713 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2715         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2716         separate elts in the search path.
2718         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2719         The search path can contain spaces now.
2721 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2723         * compatMakefile (check): New target; no-op.
2725         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2726         testing for OLDHASH==0 but before using the value.
2727         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2728         to file_hash_enter.
2730         * file.c (rename_file): Notice when OLDFILE->cmds came from
2731         default.c, and don't try to print ->filename in that case.
2733 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2735         * remake.c (update_file): Don't process F->also_make here.
2736         (notice_finished_file): Don't process FILE->also_make if no attempt
2737         to update FILE was actually made.
2738         Fixed to call f_mtime directly to refresh their modtimes.
2740 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2742         * read.c (find_percent): Don't increment P again after skipping
2743         an escaped %.
2745         * expand.c (variable_expand): In call to patsubst_expand, don't
2746         find `%'s ourselves; let that function do it.
2748         * read.c (read_makefile: record_waiting_files): Don't call
2749         record_files if FILENAMES is nil.
2750         (read_makefile): All alternatives in the parsing, except for rule
2751         lines, fall through to the end of the loop.  At the end of the
2752         loop, do record_waiting_files so we notice later spurious cmds.
2754 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2756         * variable.c (define_automatic_variables): Free old value of SHELL
2757         before replacing it.
2759 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2761         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2763         * dir.c (open_dirstream): Cast return value to __ptr_t.
2765         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2767         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2768         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2769         Define as (get_path_max ()).
2770         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2771         [! PATH_MAX] (get_path_max): Declare fn.
2772         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2774 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2776         * Version 3.62.21.
2778         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2779         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2780         SYS_SIGLIST_DECLARED.
2782         * dir.c (file_impossible): When initializing DIR->contents, set
2783         DIR->contents->dirstream to nil.
2785         * compatMakefile (GLOB): Define new variable.
2786         (objs): Use it, rather than glob/libglob.a explicitly.
2788         * read.c (parse_file_seq): When stripping "./", handle cases like
2789         ".///foo" and "./////".
2790         * file.c (lookup_file, enter_file): Likewise.
2792 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2794         * dir.c (struct dirstream, {open,read}_dirstream): New
2795         data type and functions to read a directory sequentially.
2796         (init_dir): New function to hook it into glob.
2797         * main.c (main): Call init_dir.
2799         * compatMakefile (objs): Added glob/libglob.a.
2800         * configure.in: Remove code to test for glob.
2802 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2804         * read.c (record_files): Generalized test for NAME pointing
2805         somewhere into F->name.
2807         * variable.c (define_variable_in_set): Free old value when replacing.
2809         * read.c (do_define): Free the linebuffer before returning.
2810         (record_files): When clearing .SUFFIXES deps, free their data.
2811         (multi_glob): Free OLD and its data when replacing it with results
2812         of glob run.
2814         * commands.c (set_file_variables): Use alloca in place of xmalloc
2815         for temp space for $^, $?, et al.
2817         * dir.c (struct directory): New member `contents' replaces `files'
2818         and `dirstream'.
2819         (struct directory_contents): New type.
2820         (directories_contents): New hash table.
2821         (dir_struct_file_exists_p): Take a struct directory_contents.
2822         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2823         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2824         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2825         (dir_file_exists_p, find_directory): Change all callers.
2826         (file_impossible): Use DIR->contents, initializing it if nil.
2827         (print_dir_data_base): Use DIR->contents, and print out device and
2828         inode numbers with each directory.
2830         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2831         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2832         (DIRFILE_BUCKETS): Decrease to 107.
2833         (find_directory): Allocate and zero a multiple of
2834         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2835         (dir_struct_file_exists_p): New function, nearly all code from
2836         dir_file_exists_p.
2837         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2838         * vpath.c (selective_vpath_search): Remove redundant
2839         dir_file_exists_p call.
2841         * configure.in: Comment out glob check; always use our code.
2843 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2845         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2846         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2847         do have it.
2849 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2851         * main.c (main): Don't do -w automatically if -s.
2853 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2855         * main.c (printed_version): Move variable inside print_version.
2856         (print_version): Return immediately if printed_version is set.
2857         (die): Don't test printed_version here.
2858         (decode_switches): Under -v, do print_version before giving usage.
2859         (DESCRIPTION_COLUMN): New macro.
2860         (decode_switches): Use it when printing the usage message.
2861         Leave at least two spaces between options and their descriptions.
2863 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2865         * Version 3.62.20.
2867 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2869         * read.c (read_makefile): Save errno value from trying to open
2870         FILENAME, and restore it before erring; otherwise we get the errno
2871         value from the last elt of the search path.
2873 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2875         * main.c (long_option_aliases): Add --stop for -S.
2877         * read.c (word1eq): Do strncmp before dereferencing someplace that
2878         may be out in space.
2880 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2882         * remake.c (notice_finished_file): If all the command lines were
2883         recursive, don't do the touching.
2885         * job.c (start_job_command): Don't check for + here.
2886         * commands.c (chop_commands): Do it here instead.
2888         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2890 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2892         * compatMakefile (objs): Include $(ALLOCA).
2894         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2896 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2898         * read.c (default_include_directories): Add INCLUDEDIR first.
2899         * compatMakefile (includedir): Define.
2900         (defines): Add -D for INCLUDEDIR="$(includedir)".
2902         * read.c (read_makefile): Grok multiple files in `include';
2903         globbing too.
2905         * remake.c (library_search): New function.
2906         (library_file_mtime): Remove function.
2907         (f_mtime): Use library_search instead of library_file_mtime.
2908         * compatMakefile (libdir): Define.
2909         (defines): Add -D for LIBDIR="$(libdir)".
2910         * make.texinfo (Libraries/Search): Document change.
2912         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2914 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2916         * Version 3.62.19.
2918         * main.c (main): Set command_state to cs_finished for temp files
2919         made for stdin makefiles.
2921         * main.c (decode_switches): Don't tell getopt to return non-option
2922         args in order.
2923         Ignore an argument of `-'.
2925 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2927         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2928         the command line and go to the next.
2929         (notice_finished_file): Under -t, touch FILE.
2930         * remake.c (remake_file): Don't touch it here.
2932 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2934         * function.c (pattern_matches): Use temporary for strlen (WORD)
2935         instead of two function calls.
2937         * compatMakefile (LOAD_AVG): Remove variable and comments.
2939 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2941         * make.texinfo (Running): Node renamed to `make Invocation'.
2943 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2945         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2946         NAMELEN != MEMLEN.
2948 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2950         * Version 3.62.18.
2952         * main.c: Don't #include <time.h>; make.h already does.
2954 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2956         * implicit.c (pattern_search): Fixed copying of suffix when building
2957         also_make elts.
2959         * function.c (expand_function: `shell'): Make sure BUFFER is
2960         null-terminated before replacing newlines.
2962         * compatMakefile (mandir): Use man$(manext), not always manl.
2964 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2966         * rule.c (new_pattern_rule): Not static.
2967         * rule.h: Declare it.
2969         * file.c (file_hash_enter): New function, most code from rename_file.
2970         (rename_file): Call it.
2971         * file.h (file_hash_enter): Declare it.
2973         * dep.h: Doc fix.
2975 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2977         * main.c (decode_switches): Handle usage_and_exit when building
2978         long options vector.
2980         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2981         (default_variables): Define CHECKOUT,v (hairy).
2983         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2984         sys_siglist to _sys_siglist.
2986 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2988         * NEWS: Add header and tail copyright info like Emacs NEWS.
2990         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2991         bcopy if already #define'd.
2992         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2993         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2995         * make.h [_AIX]: #pragma alloca first thing.
2997         * job.c (start_waiting_job): Set the command_state to cs_running
2998         when we queue a job on waiting_jobs.
3000 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3002         * variable.c (define_automatic_variables): Use "" instead of nil
3003         for empty value.
3005 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3007         * Version 3.62.17.
3009         * main.c (struct command_switch.type): Add alternative usage_and_exit.
3010         (command_switches): Add -h/--help.
3012 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3014         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
3015         * README.template: Mention NEWS.
3016         * CHANGES: Renamed to NEWS.
3018         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
3020 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3022         * main.c (main): Set -o files' command_states to cs_finished.
3024         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
3025         when tossing a rule.
3027         * main.c (main): Use alloca only in simple local var assignment,
3028         for braindead SGI compiler.
3030         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
3031         inconsistent with the number computed when listing them.
3033 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3035         * commands.c (set_file_variables): For $? and $^ elts that are archive
3036         member refs, use member name only.
3038 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3040         * variable.h (struct variable.export): Add new alternative v_ifset.
3041         * variable.c (target_environment): Check for it.
3042         (define_automatic_variables): Set it for MAKEFILES.
3044 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3046         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
3047         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
3048         (distclean, mostlyclean): New targets.
3050 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3052         * Version 3.62.16.
3054         * compatMakefile (config.status): Remove rule.
3056         * job.c (start_waiting_job): Free C after using C->file, not before.
3058 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3060         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
3061         HAVE_* instead of #ifndef *_MISSING.
3062         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
3064 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3066         * main.c (main): makelevel>0 or -C implies -w.
3068 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3070         * file.c, job.c, function.c: Don't #include <errno.h>.
3071         make.h: Do it here instead.
3072         * arscan.c (ar_member_touch): Don't declare errno.
3074 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3076         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
3078         * remake.c (update_file): If commands or deps are running after
3079         update_file_1 returns, break out of the :: rule (->prev) loop and
3080         just return.
3082         * job.c (job_next_command): New function; code from start_job.
3083         (start_job_command): Renamed from start_job.  Call job_next_command
3084         and recurse for empty command lines and -n.
3085         (start_waiting_job): Call start_job_command, not start_job.
3086         (new_job): Call job_next_command to prime the child structure, and
3087         then call start_waiting_job.
3088         (reap_children): Use job_next_command and start_job_command.
3089         (start_waiting_job): Call start_remote_job_p here, and store its
3090         result in C->remote.  If zero, check the load average and
3091         maybe put C on waiting_jobs.
3092         (start_job_command): Test CHILD->remote rather than calling
3093         start_remote_job_p.  Don't do load avg checking at all here.
3095         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
3096         SIGSEGV, SIGFPE or SIGTRAP.
3098         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
3099         configure will set it in glob/Makefile.
3101 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3103         * dir.c [DIRENT] (direct): Don't define to dirent.
3104         [! DIRENT] (direct): Define to dirent.
3105         (dir_file_exists_p): Use struct dirent instead of struct direct.
3107         * make.h (getcwd): No space between macro and ( for args!
3109         * job.c (start_job): Don't put the job on waiting_jobs if
3110         job_slots_used==0.
3112         * make.texinfo (Missing): Shortened title.
3114 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3116         * file.c (remove_intermediates): Print "rm" commands under -n.
3118 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3120         * Version 3.62.15.
3122 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3124         * arscan.c [M_UNIX]: #undef M_XENIX.
3126 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3128         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
3130 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3132         * compatMakefile (getloadavg.o): Removed special rule.
3133         (CFLAGS): Don't include $(defines).
3134         (.c.o): Define suffix rule.
3135         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
3136         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
3138         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
3140         * make.h (max): Removed.
3141         * expand.c (variable_buffer_output): Don't use it.
3143         * compatMakefile (INSTALL): Define.
3144         (Makefile): New rule to make from Makefile.in.
3145         (srcdir): Define.
3146         (VPATH): Define.
3147         (getloadavg.o, remote.o): Use autoconf $foo< hack.
3149         * commands.c (fatal_error_signal): Removed return.
3151 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3153         * Version 3.62.14.
3155         * make.texinfo (Summary): New node.
3156         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
3158         * variable.c (max): Moved to make.h.
3160         * compatMakefile (objs, srcs): Added ar & arscan.
3162         * job.c (start_waiting_job): New function, 2nd half of new_job.
3163         (new_job): Call it.
3164         (start_waiting_jobs): New function.
3165         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
3166         of the main loop.
3167         * compatMakefile (objs, srcs): Removed load, added getloadavg.
3169 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3171         * job.c (load_too_high): New function.  Uses getloadavg.
3172         (waiting_jobs): New variable.
3173         (start_job): Don't call wait_to_start_job.  Instead, if
3174         load_too_high returns nonzero, add the child to the
3175         `waiting_jobs' chain and return without starting the job.
3177 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3179         * expand.c (variable_buffer_output): Made global again.
3180         * variable.h: And declare it.
3182         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
3183         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
3184         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
3185         for a slash in the archive at run time.
3186         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
3187         cope with trailing-slash and non-trailing-slash archives.
3189         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
3190         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
3192         * load.c (load_average) [sgi]: Use sysmp call.
3194         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
3195         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
3197         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
3198         (vfork, VFORK_NAME): Don't define.
3199         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
3201         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
3202         the each file.  Rearranged PATH_MAX hacking.
3203         * job.c: Rearranged NGROUPS_MAX hacking.
3205         * remake.c (fstat, time): Don't declare.
3207         * compatMakefile (defines): Value is @DEFS@.
3208         (LOADLIBES): Value is @LIBS@.
3209         (extras): Value is @LIBOBJS@.
3210         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
3211         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
3213         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
3215         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
3216         (getcwd): Just declare if present.  If not, declare as a macro
3217         using getwd, and declare getwd.
3218         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
3219         * main.c (main, log_working_directory): Use getcwd instead of getwd.
3221         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
3223         * make.h (SIGHANDLER, SIGNAL): Removed.
3224         (RETSIGTYPE): Define if not #define'd.
3225         * main.c (main): Use signal in place of SIGNAL.
3227         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
3229         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
3230         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
3232         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
3233         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
3235         * job.c (child_handler), commands.c (fatal_error_signal): Return
3236         RETSIGTYPE instead of int.
3237         * main.c (main): Declare fatal_error_signal and child_handler here
3238         to return RETSIGTYPE; removed top-level decl of former.
3240         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
3241         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
3243 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3245         * job.c [HAVE_WAITPID]: Test this instead of USG.
3246         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
3247         (GID_T): Don't #define.
3248         (search_path): Use gid_t instead of GID_T.
3249         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
3250         these individually instead of USG for all.
3251         * make.h (ctime): Don't declare.  #include time.h instead.
3252         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
3253         _POSIX_VERSION.
3254         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
3255         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
3257         * arscan.c: Removed #ifdef mess about string.h et al.
3258         Just #include make.h instead.
3259         * make.h (fstat, atol): Declare.
3261         * commands.c (fatal_error_signal): Don't use sigmask to check for
3262         propagated signals; use ||s instead.
3263         (PROPAGATED_SIGNAL_MASK): Removed.
3264         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
3266         * variable.c (variable_buffer, variable_buffer_length,
3267         initialize_variable_output, variable_output): Moved to expand.c;
3268         made all static.
3269         (struct output_state, save_variable_output,
3270         restore_variable_output): Removed.
3271         * expand.c (initialize_variable_output): Put a NUL at the beginning
3272         of the new buffer after allocating it.
3273         (allocated_variable_expand_for_file): Don't use
3274         {save,restore}_variable_output.  Do it by hand instead, keeping
3275         state on the stack instead of malloc'ing it.
3276         (allocated_variable_expand): Removed.
3277         * variable.h (allocated_variable_expand): Define here as macro.
3278         (variable_buffer_output, initialize_variable_output,
3279         save_variable_output, restore_variable_output): Removed decls.
3281         * read.c (conditional_line): For an if cmd, if any elt of the
3282         conditionals stack is ignoring, just push a new level that ignores
3283         and return 1; don't evaluate the condition.
3285 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3287         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
3289         * job.c (getdtablesize): Don't declare or #define if already #define'd.
3291 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3293         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
3294         export_all_variables.
3295         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
3297 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3299         * Version 3.62.13.
3301         * commands.c (set_file_variables): Calculate length for ^D and ?D
3302         individually, making sure to give them at least enough space for "./".
3304         * make.h [CRAY]: #define signal to bsdsignal.
3306         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
3307         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
3309         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
3310         wasn't defined by <ar.h>.
3312 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3314         * Version 3.62.12.
3316 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3318         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
3319         pattern_rules.
3321 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3323         * main.c (decode_switches): Initialize all the long_option elt members.
3325 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3327         * make.texinfo (Text Functions): Correct filter-out description.
3329 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3331         * compatMakefile (realclean): Don't remove backup files.
3333         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
3335 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3337         * Version 3.62.11.
3339 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3341         * job.c (reap_children): Don't die if wait returns EINTR.
3343 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3345         * job.c (reap_children): Always run the next command for a
3346         successful target.  If we are going to die, we don't want to leave
3347         the target partially made.
3349 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3351         * job.c (construct_command_argv_internal): After loop, if we only
3352         have one word, check it for being a shell command.
3354         * main.c (decode_switches): Allocate ARGC slots in other_args to
3355         begin with, so we never need to worry about growing it.
3356         If we get a non-option arg and POSIXLY_CORRECT is in the
3357         environment, break out of the loop.  After the loop, add all remaining
3358         args to other_args list.
3360         * main.c (decode_switches): For positive_int and floating switches
3361         when optarg is nil, use next arg if it looks right (start with a
3362         digit, or maybe decimal point for floating).
3364         * variable.c (define_automatic_variables): Always set SHELL to
3365         default if it comes from the environment.  Set its export bit.
3366         * make.texinfo (Environment): Document change.
3368 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3370         * Version 3.62.10.
3372         * compatMakefile (tags, TAGS): Use vars for cmds.
3373         (ETAGS, CTAGS): Define.
3375         * main.c (decode_switches): If a switches elt has a nil long_name,
3376         make the long option name elt be "".
3377         Fixed loop to not ignore all the options.
3379         * make.texinfo (Option Summary): Added long options.
3381         * main.c (switches): Changed -m's description to "-b".
3382         (decode_switches): When printing the usage message, don't print
3383         switches whose descriptions start with -.
3384         When constructing the list of names for switch -C, search the
3385         switches vector for switches whose descriptions are "-C".
3387         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
3388         Call -I --include-dir, not --include-path.
3389         (long_option_aliases): Added --new == -W, --assume-new == -W,
3390         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
3391         --makefile == -f.
3393         * main.c (switches): Removed bogus "silent" elt.
3394         (long_option_aliases): Define new var.
3395         (decode_switches): Add long_option_aliases onto the end of the long
3396         options vector created for getopt_long.
3397         Look through long_option_aliases for extra names to list
3398         in usage message.
3400 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3402         * main.c (log_working_directory): Fixed to properly not print the
3403         leaving message when we haven't printed the entering message.
3405 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3407         * main.c (struct command_switch): Added elts `long_name',
3408         `description', and `argdesc'.
3409         (switches): Added initializers for new members.
3410         (decode_switches): Rewritten to use getopt_long.
3411         * compatMakefile (GETOPT, GETOPT_SRC): Define.
3412         (objs, srcs): Include them.
3414         * job.c (child_died): Renamed to dead_children; made static.
3415         (child_handler): Increment dead_children instead of setting child_died.
3416         (reap_children): Decrement dead_children instead of clearing
3417         child_died.  The point of all this is to avoid printing "waiting
3418         for unfinished jobs" when we don't actually need to block.
3419         This happened when multiple SIGCHLDs before reap_children was called.
3421         * job.c (reap_children): If ERR is set, so we don't call start_job
3422         on the child being reaped, instead set its command_state to
3423         cs_finished.
3424         (reap_children, child_handler, new_job): I added several
3425         debugging printf's while fixing this.  I left them in if (debug_flag)
3426         because they may be useful for debugging this stuff again.
3428 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3430         * read.c (read_makefile): v_export is not 1.
3432 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3434         * Version 3.62.9.
3436         * variable.c (export_all_variables): New variable.
3437         (target_environment): Export variables whose `export' member is
3438         v_default if export_all_variables is set and their names are benign.
3439         * variable.h: Declare export_all_variables.
3440         * read.c (read_makefile): If export or unexport is given with no
3441         args, set or clear export_all_variables, respectively.
3443         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3444         so it isn't duplicated when we add it at the end.
3446 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3448         * Version 3.62.8.
3450         * variable.h (struct variable): Added new member `export'.
3451         * variable.c (define_variable_in_set): Initialize it to v_default.
3452         (target_environment): Don't check for .NOEXPORT.
3453         Export variables whose `export' member is v_default and that would
3454         have been exported under .NOEXPORT, and variables whose `export'
3455         member is v_export.
3456         (try_variable_definition): Return the variable defined.
3457         * variable.h (try_variable_definition): Changed decl.
3458         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3460 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3462         * main.c (main) [POSIX]: Reversed args to sigaddset.
3464 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3466         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3467         (start_job): Block signals before forking.
3468         (new_job): Unblock signals after putting the new child on the chain.
3469         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3470         int fatal_signal_mask.
3472         * load.c [sgi] (LDAV_CVT): Define.
3474 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3476         * Version 3.62.7.
3478         * load.c (load_average) [sgi]: Clear the high bit of the address
3479         from the symbol table before looking it up in kmem.
3481         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3482         (remake_file): No longer needed in message here.
3484         * main.c (die): Call reap_children with BLOCK==1.
3486 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3488         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3490 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3492         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3493         not to head of chain.  Extract next ptr before we might do
3494         freerule, and use that for next iteration.
3495         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3497 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3499         * job.c (child_error): Removed extra %s from error msg format.
3501         * Version 3.62.6.
3503         * job.c (reap_children): Don't start later commands in a sequence
3504         if ERR is nonzero.
3506         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3508         * job.c (reap_children): New function; work that used to be done in
3509         child_handler.
3510         (child_died): New global var.
3511         (child_handler): Now just sets child_died.
3512         (wait_for_children): Removed.
3513         (unknown_children_possible, block_signals, unblock_signals,
3514         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3515         (child_execute_job): Removed call to unblock_signals.
3516         (new_job): Removed calls to push_signals_blocked_p and
3517         pop_signals_blocked_p.
3518         * job.h: Declare reap_children, not wait_for_children.
3519         * commands.c (fatal_error_signal), job.c (new_job),
3520         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3521         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3522         Changed wait_for_children calls to reap_children.
3523         Some needed to be loops to wait for all children to die.
3524         * commands.c (fatal_error_signal), main.c (main,
3525         log_working_directory), function.c (expand_function): Removed calls
3526         to push_signals_blocked_p and pop_signals_blocked_p.
3527         * job.h: Removed decls.
3529         * job.h: Added copyright notice.
3531 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3533         * job.c (child_error): No *** for ignored error.
3535 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3537         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3538         avoid compiler warnings.
3540         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3541         blank.
3543 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3545         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3546         avoid compiler warnings.
3548         * remake.c (notice_finished_file): Run file_mtime on the also_make
3549         files, so vpath_search can happen.
3551         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3552         (alpha-files): Include test suite tar file.
3554 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3556         * Version 3.62.5.
3558 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3560         * remake.c (update_file, update_file_1): Do check_renamed on elts
3561         of dep chains when traversing them.  Something unrelated might have
3562         renamed one of the files the dep chain points to.
3564         * file.c (rename_file): If FILE has been renamed, follow its
3565         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3566         ones loses because they are not in the hash table, so the removal
3567         code loops infinitely.
3569         * read.c (read_all_makefiles): Clobber null terminator into
3570         MAKEFILES expansion, so string passed to read_makefile is properly
3571         terminated.
3573 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3575         * commands.c (set_file_variables): $* for archive member with
3576         explicit cmds is stem of member, not of whole `lib(member)'.
3578 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3580         * Version 3.62.4.
3582 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3584         * rule.c (new_pattern_rule): Rules are identical only if all their
3585         targets match (regardless of order).
3587 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3589         * remake.c (remake_file): Changed error "no way to make" to "no
3590         rule to make".  Fiat Hugh.
3592         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3593         behavior.
3595         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3596         target.
3598 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3600         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3601         environment to pass to child.
3602         * job.c (start_job): Pass it.
3604 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3606         * file.c (enter_file): Also strip ./s here, to get command-line
3607         target names.
3609         * remote-cstms.c: Add comment telling people to leave me alone.
3611         * compatMakefile (manpage install): Remove target before copying.
3613 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3615         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3616         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3618 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3620         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3621         Use vfork instead of fork.
3623 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3625         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3626         intermediate files.
3628         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3630 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3632         * Version 3.62.3.
3634 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3636         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3638 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3640         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3642         * read.c (record_files): Pass arg for %s in error msg.
3644         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3645         call.
3647 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3649         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3651 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3653         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3655 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3657         * Version 3.62.2.
3659 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3661         * job.c (construct_command_argv_internal): Correctly ignore
3662         whitespace after backslash-NL.
3664 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3666         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3668 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3670         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3671         allocate space so as not to clobber past the end of the old string.
3673         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3674         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3676 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3678         * make.h [VFORK_MISSING]: Use fork instead.
3679         * compatMakefile (defines): Document same.
3681         * job.c (construct_command_argv_internal): Don't create an empty
3682         arg if backslash-NL is at beginning of word.
3684 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3686         * main.c [DGUX]: Call setvbuf as for USGr3.
3688         * job.c (construct_command_argv_internal): Notice correctly that
3689         backslash-NL is the end of the arg (because it is replaced with a
3690         space).
3692 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3694         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3695         to default_shell before proceeding.
3697         * make.h [sgi]: No alloca.h, after all.
3699 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3701         * read.c (multi_glob): Cons up the chain of the results of glob
3702         from back to front, so it comes out in forward order.
3704         * job.c (construct_command_argv_internal): Don't eat char following
3705         backslash-NL.
3707 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3709         * Version 3.62.1.
3711         * default.c (default_variables) [ultrix]: GET=get, like USG.
3713         * job.c (construct_command_argv_internal): Remove tabs following
3714         backslash-NL combos in the input line, so they don't show up when
3715         that line is printed.
3717         * read.c (read_makefile): Don't collapse_continuations the line on
3718         input; do it on the copy we do remove_comments on.
3719         For rule lines, collapse_continuations the line after chopping
3720         ";cmds" off the end, so we don't eat conts in the cmds.
3721         Give error for ";cmds" with no rule.
3722         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3723         when constructing the line to recurse on for slow, too.
3725 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3727         * file.c (enter_file): Don't strip leading `./'s.
3728         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3729         * default.c (set_default_suffixes), function.c (string_glob),
3730         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3732         * default.c (default_variables) [_IBMR2]: FC=xlf
3734         * job.c (construct_command_argv_internal): Turn backslash-NL and
3735         following whitespace into a single space, rather than just eating
3736         the backslash.
3738         * make.texinfo (Copying): @include gpl.texinfo, rather than
3739         duplicating its contents.
3741 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3743         * job.c (construct_command_argv_internal): Make sure not to bother
3744         processing an empty line.
3746         * Version 3.62.0.
3748         * job.c (construct_command_argv_internal): Always recurse for slow;
3749         simple case didn't handle finding newlines.
3751 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3753         * job.c (construct_command_argv_internal): Set RESTP properly when
3754         slow; don't \ify past a newline.
3756 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3758         * make.h [sgi]: #include <alloca.h>.
3762 See ChangeLog.1 for earlier changes.