autoconf
[make.git] / ChangeLog
blob08a6b5f7f702fd96e8071020baf73ad3042b7f3c
1 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3         * Version 3.74.2.
5         * job.c (reap_children): Call unblock_sigs after start_job_command.
7 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
9         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
10         Avoid & before function names to silence bogus sunos4 compiler.
12         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
14 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
16         * Version 3.74.1.
18         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
19         reallocating it!
21 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
23         * misc.c (collapse_continuations): Fix skipping of trailing \s so
24         it can never dereference before the beginning of the array.
26         * read.c (find_semicolon): Function removed.
27         (read_makefile): Don't use find_semicolon or remove_comments for
28         rule lines.  Use find_char_unquote directly and handle quoted comments
29         properly.
31         * default.c: Remove all [M_XENIX] code.
33         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
34         (D_NAMLEN): Macro removed.
35         (FAKE_DIR_ENTRY): New macro.
36         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
37         D_NAMLEN.
38         (read_dirstream): Return a struct dirent * for new glob interface.
39         (init_dir): Function removed.
40         (dir_setup_glob): New function.
41         * main.c (main): Don't call init_dir.
42         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
43         GLOB_ALTDIRFUNC flag.
45         * misc.c (safe_stat): Function removed.
46         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
47         safe_stat.
49 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
51         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
53         * main.c (log_working_directory): Made global.
54         Print entering msg only once.
55         * make.h (log_working_directory): Declare it.
56         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
57         nonzero.  Call log_working_directory.
58         * remake.c: Pass new arg in `message' calls.
59         * job.c (start_job_command): Pass new arg to `message'; fix
60         inverted test in that call.
62 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
64         * job.c (start_job_command): Use `message' to print the command,
65         and call it with null if the command is silent.
66         * remake.c (touch_file): Use message instead of printf.
68 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
70         * main.c (enter_command_line_file): Barf if NAME is "".
72 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
74         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
76 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
78         * configure.in: Don't check for getdtablesize.
79         * job.c (getdtablesize): Remove decls and macros.
81 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
83         * main.c (define_makeflags): Omit command line variable
84         definitions from MFLAGS value.
86         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
87         indicating a valid, but empty, archive.
89 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
91         * dir.c (file_impossible_p): Correctly reset FILENAME to name
92         within directory before hash search.
94         * job.c (child_error): Do nothing if IGNORED under -s.
96         * job.c (exec_command): Correctly use ARGV[0] for script name when
97         running shell directly.
99 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
101         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
102         dup'ing from them.  Don't try to close all excess descriptors;
103         getdtablesize might return a huge value.  Any open descriptors in
104         the parent should have FD_CLOEXEC set.
105         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
107 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
109         * read.c (read_all_makefiles): Properly append default makefiles
110         to the end of the `read_makefiles' chain.
112 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
114         * Version 3.74 released.
116 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
118         * Version 3.73.3.
120 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
122         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
123         install-info cmd.
125 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
127         * file.c (print_file): Grok update_status of 1 for -q.
129 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
131         * Version 3.73.2.
133 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
135         * file.c (remove_intermediates): Fix inverted test to bail under
136         -n for signal case.  Bail under -q or -t.
137         Skip files with update_status==-1.
139         * job.c (job_next_command): Skip empty lines.
140         (new_job): Don't test the return of job_next_command.
141         Just let start_waiting_job handle the case of empty commands.
143 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
145         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
147         * Version 3.73.1.
149 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
151         * remake.c (notice_finished_file): Set FILE->update_status to zero
152         if it's -1.
154 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
156         * Version 3.73 released.
158 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
160         * main.c (main): Fixed braino in assert.
162         * Version 3.72.13.
164 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
166         * main.c: Avoid string in assert expression.  Some systems are broken.
168 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
170         * main.c (main): Handle 1 and 2 returns from update_goal_chain
171         makefile run properly.
173         * Version 3.72.12.
175         * main.c (handle_non_switch_argument): New function, broken out of
176         decode_switches.
177         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
178         When getopt_long returns EOF, break the loop and handle remaining args
179         with a simple second loop.
181         * remake.c (remake_file): Set update_status to 2 instead of 1 for
182         no rule to make.  Mention parent (dependent) in error message.
183         (update_file_1): Handle FILE->update_status == 2 in -d printout.
184         * job.c (start_job_command, reap_children): Set update_status to 2
185         instead of 1 for failed commands.
187 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
189         * job.c (search_path): Function removed (was already #if 0'd out).
190         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
192 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
194         * configure.bat: Write @CPPFLAGS@ translation.
196 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
198         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
199         to not skip the elt immediately preceding `l(...'.
201 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
203         * Version 3.72.11.
205         * read.c (find_char_unquote): Make second arg a string of stop
206         chars instead of a single stop char.  Stop when any char in the
207         string is hit.  All callers changed.
208         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
209         instead of using two calls.  If the match is not a ; but a #,
210         return zero.
211         * misc.c: Changed find_char_unquote callers here too.
213         * Version 3.72.10.
215         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
216         __MSDOS__.
218         * GNUmakefile (globfiles): Add glob/configure.bat.
219         (distfiles): Add configh.dos, configure.bat.
221 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
223         Fixes for MS-DOS from DJ Delorie.
224         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
225         as separator in "C:\...".
226         * configh.dos (STDC_HEADERS): Define only if undefined.
227         (HAVE_SYS_PARAM_H): Don't define this.
228         (HAVE_STRERROR): Define this.
229         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
231         * Version 3.72.9.
233         * main.c (decode_switches): Reset optind to 1 instead of 0.
235 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
237         * main.c (decode_switches): If non-option arg is "-", ignore it.
239 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
241         * Version 3.72.8.
243 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
245         * Version 3.72.7.
247 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
249         * main.c (main): Pass missing arg to tmpnam.
251         * configure.in: Check for strsignal.
252         * job.c (child_error): Use strsignal.
253         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
255         * misc.c (strerror): Fix swapped args in sprintf.
257 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
259         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
261 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
263         * main.c (print_version): Add 95 to copyright years.
265         * Version 3.72.6.
267         * job.c (start_job_command): Remember to call notice_finished_file
268         under -n when not recursing.  To do this, consolidate that code
269         under the empty command case and goto there for the -n case.
271 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
273         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
274         declare it int.
276 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
278         * read.c (read_makefile): For bogus line starting with tab, ignore
279         it if blank after removing comments.
281         * main.c: Cast results of `alloca' to `char *'.
282         * expand.c: Likewise.
284 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
286         * Version 3.72.5.
288         * configure.in: Check for mktemp.
289         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
291         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
292         (_SC_OPEN_MAX)'.
293         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
294         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
295         using sysconf.
297 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
299         * remake.c (update_file_1): When !MUST_MAKE, don't set
300         FILE->update_status to zero before calling notice_finished_file.
301         (notice_finished_file): Touch only when FILE->update_status is zero.
302         (remake_file): Set FILE->update_status to zero after not calling
303         execute_file_command and deciding to touch instead.
305 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
307         * main.c (debug_signal_handler): New function; toggles debug_flag.
308         (main): Handle SIGUSR1 with that.
310 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
312         * compatMakefile (realclean): Remove Info files.
314 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
316         * Version 3.72.4.
318         * job.c (start_job_command): Save and restore environ around vfork
319         call.
320         (search_path): Function #if 0'd out.
321         (exec_command): Use execvp instead of search_path.
323         * expand.c (variable_expand): Rewrote computed variable name and
324         substitution reference handling to be simpler.  First expand the
325         entire text between the parens if it contains any $s, then examine
326         the result of that for subtitution references and do no further
327         expansion while parsing them.
329         * job.c (construct_command_argv_internal): Handle " quoting too,
330         when no backslash, $ or ` characters appear inside the quotes.
332         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
333         defined, just use int.
335 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
337         * default.c (default_variables) [__hpux]: Remove special
338         definition of ARFLAGS.  Existence of the `f' flag is not
339         consistent across HPUX versions; and one might be using GNU ar
340         anyway.
342         * compatMakefile (clean): Don't remove Info files.
344         * compatMakefile (check): Remove gratuitous target declaration.
346 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
348         * compatMakefile (ETAGS, CTAGS): Don't use -t.
350         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
352         * main.c (decode_switches): For --help, print usage to stdout.
354 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
356         * Version 3.72.3.
358         * remake.c (update_file_1): Do set_command_state (FILE,
359         cs_not_started) only if old state was deps_running.
361 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
363         * job.c (start_waiting_job): Use set_command_state.
365         * build.template (CPPFLAGS): New variable.
366         (prefix, exec_prefix): Set from @...@.
367         (compilation loop): Pass $CPPFLAGS to compiler.
369         * GNUmakefile (build.sh.in): Make it executable.
371         * GNUmakefile (globfiles): Add configure.in, configure.
373         * Version 3.72.2.
375         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
377         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
379         * configure.in: Don't check for ranlib.
381 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
383         * remake.c (notice_finished_file): Only mark also_make's as
384         updated if really ran cmds.
386 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
388         * configure.in: Put dnls before random whitespace.
390 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
392         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
393         (RANLIB): Variable removed.
394         (prefix, exec_prefix): Set these from @...@.
395         (.c.o): Use $(CPPFLAGS).
396         (glob/libglob.a): Don't pass down variables to sub-make.
397         glob/Makefile should be configured properly by configure.
398         (distclean): Remove config.log and config.cache (autoconf stuff).
400 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
402         * acconfig.h: Add #undef HAVE_UNION_WAIT.
403         * configure.in: Converted to Autoconf v2.
404         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
405         of DIRENT, SYSDIR, NDIR.
406         * build.sh.in (prefix, exec_prefix): Set these from @...@.
407         (CPPFLAGS): New variable, set from @CPPFLAGS@.
408         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
409         * install.sh: File renamed to install-sh.
411         * main.c (define_makeflags): When no flags, set WORDS to zero.
413 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
415         * Version 3.72.1.
417         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
418         empty.
420 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
422         * Version 3.72.
424 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
426         * Version 3.71.5.
428         * job.c (start_job_command): When ARGV is nil, only set
429         update_state and call notice_finished_file if job_next_command
430         returns zero.
432         * job.c (start_job_command): Call notice_finished_file for empty
433         command line.
435 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
437         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
438         COMMANDS_NOERROR.
440 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
442         * Version 3.71.4.
444 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
446         * file.c (snap_deps): Set command_flags bits in all :: entries.
448 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
450         * make.h (posix_pedantic): Declare it.
451         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
452         snap_deps.
453         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
454         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
455         command_flags and don't set -i.  Likewise .SILENT.
456         * job.c (start_job_command): In FLAGS initialization, OR in
457         CHILD->file->command_flags.
458         * file.h (struct file): New member `command_flags'.
460 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
462         * main.c (switches): Bump flag values for --no-print-directory and
463         --warn-undefined-variables, so neither is 1 (which indicates a
464         nonoption argument).
466 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
468         * main.c (main): Add missing code in .IGNORE test.
470 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
472         * variable.c (define_automatic_variables): Define +D and +F.
474 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
476         * main.c (main): Define hidden automatic variable with command
477         vars, and MAKEOVERRIDES to a reference to that.
478         (define_makeflags): If posix_pedantic, write a reference to that
479         instead.
481 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
483         * main.c (posix_pedantic): New variable.
484         (main): Set posix_pedantic if .POSIX is a target.
485         Fix .IGNORE and .SILENT checks to require is_target.
487         * commands.c (set_file_variables): Define new automatic variable
488         $+, like $^ but before calling uniquize_deps.
490         * job.c (reap_children): Call delete_child_targets for non-signal
491         error if .DELETE_ON_ERROR is a target.
493 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
495         * Version 3.71.3.
497 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
499         * job.c (reap_children): Don't change C->file->command_state when
500         dying.  Test it only after calling start_job_command for a new
501         command line.  When no more cmds, just set C->file->update_status.
502         (start_job_command): When the last line is empty or under -n, set
503         C->file->update_status.
504         (start_waiting_job): Grok cs_not_started after start_job_command
505         as success.
506         (new_job): Set C->file->update_status when there are no cmds.
507         (job_next_command): When out of lines, don't set
508         CHILD->file->update_status or CHILD->file->command_state.
510         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
511         if nonzero, also double $s.
512         (main): Define MAKEOVERRIDES from command_variables here.
513         (define_makeflags): Don't use command_variables here; instead write a
514         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
516         * dir.c [__MSDOS__]: Fixed typo.
518         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
520 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
522         * remake.c: Include <assert.h> and use assert instead of printfs
523         and abort.
525         * main.c (decode_switches): Loop until optind hits ARGC, not just
526         until getopt_long returns EOF.  Initialize C to zero before loop;
527         in loop if C is EOF, set optarg from ARGV[optind++], else call
528         getopt_long.
529         (decode_env_switches): Use variable_expand instead of
530         allocated_variable_expand.  Allocate a fresh buffer to copy split
531         words into; scan characters by hand to break words and
532         debackslashify.
533         (shell_quote): New function.
534         (define_makeflags): Allocate doubled space for switch args, and command
535         variable names and values; use shell_quote to quote those things.
537 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
539         * Version 3.71.2.
541         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
543         * main.c (decode_switches): The non-option return from getopt is
544         1, not 0.
545         (command_variables): New type and variable.
546         (decode_switches, decode_env_switches): After making a variable
547         definition, record the struct variable pointer in the
548         command_variables chain.
549         (define_makeflags): If ALL, write variable definitions for
550         command_variables.
552         * main.c (other_args): Variable removed.
553         (goals, lastgoal): New static variables (moved from auto in main).
554         (main): Don't process OTHER_ARGS at all.
555         Don't set variable MAKEOVERRIDES at all; define MAKE to just
556         $(MAKE_COMMAND).
557         (init_switches): Prepend a - {return in order} instead of a +
558         {require order}.
559         (decode_switches): Don't set OTHER_ARGS at all.
560         Grok '\0' return from getopt_long as non-option argument; try
561         variable definition and (if !ENV) enter goal targets here.
562         (decode_env_switches): Use allocated_variable_expand to store value.
563         Use find_next_token to simplify word-splitting loop.  Don't
564         prepend a dash to uninterpreted value.  Instead, if split into
565         only one word, try variable definition and failing that prepend a
566         dash to the word and pass it to decode_switches as a single arg.
568 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
570         * remake.c (notice_finished_file): Only recheck modtimes if
571         FILE->command_state was cs_running on entry (meaning the commands
572         actually just ran).
573         (update_file_1): Whenever we set FILE->update_status, call
574         notice_finished_file instead of just set_command_state.
575         * job.c (start_job_command): Whenever we set
576         CHILD->file->update_status, call notice_finished_file instead of
577         just set_command_state.
579 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
581         * default.c: Add missing ".
583         * job.c: Changed all assignments of command_state members to calls
584         to set_command_state.
585         * remake.c: Likewise.
586         * file.c (set_command_state): New function.
587         * file.h: Declare set_command_state.
589         * main.c (init_switches): Put a + first in options.
591 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
593         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
594         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
595         * main.c (directory_before_chdir): New variable, moved out of main
596         (was local).
597         (main) [__MSDOS__]: Look for \ or : to delimit last component of
598         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
599         (die): Change back to `directory_before_chdir' before dying.
600         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
601         [__MSDOS__] and not.
602         * job.c [__MSDOS__]: Include <process.h>.
603         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
604         dos_batch_file): New variables.
605         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
606         (unblock_sigs) [__MSDOS__]: Do nothing.
607         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
608         (load_too_high) [__MSDOS__]: Always return true.
609         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
610         Use PATH_SEPARATOR_CHAR instead of ':'.
611         (construct_command_argv_internal) [__MSDOS__]: Wholly different
612         values for sh_chars and sh_cmds.  Wholly new code to handle shell
613         scripts.
614         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
615         implementation.
616         * dir.c [__MSDOS__] (dosify): New function.
617         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
618         process the result instead of FILENAME itself.
619         (file_impossible_p) [__MSDOS__]: Likewise.
620         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
621         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
622         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
623         `bison -y', and LEX to `flex'.
624         * configure.bat, configh.dos: New files.
625         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
626         intermediates and exit.
628         * commands.c (set_file_variables): Add parens in length
629         computation in .SUFFIXES dep loop to quiet compiler warning.  From
630         Jim Meyering.
632         * read.c (read_makefile): Free FILENAME if we allocated it.  From
633         Jim Meyering.
635 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
637         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
638         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
639         * read.c (construct_include_path): Use safe_stat in place of stat.
640         * job.c (search_path): Use safe_stat in place of stat.
641         * dir.c (find_directory): Use safe_stat in place of stat.
642         * commands.c (delete_target): Use safe_stat in place of stat.
643         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
644         * remake.c (name_mtime): Use safe_stat in place of stat.
645         (touch_file) [EINTR]: Do EINTR looping around fstat.
647 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
649         * read.c (read_makefile): Check for a shell command first, and
650         then strip leading tabs before further checking if it's not a
651         shell command line.
653         * make.h [__arm]: Undefine POSIX.
654         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
655         functions that return int.
657         * job.c (construct_command_argv_internal): After swallowing a
658         backslash-newline combination, if INSTRING is set goto string_char
659         (new label) for normal INSTRING handling code.
661 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
663         * configure.in: Don't check for sys_siglist and _sys_siglist with
664         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
666 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
668         * Version 3.71.1 released.
670         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
671         _POSIX_VERSION for these declarations.
673         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
674         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
676 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
678         * Version 3.71 released.
680         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
681         and [HAVE_SETGID].  Every system has those, and configure doesn't
682         check for them.
684         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
686         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
687         getloadavg.c.
688         (loadavg.c): Link or copy it from getloadavg.c.
689         (distclean): Remove loadavg.c.
691 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
693         * Version 3.70.4.
695         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
696         and HAVE_SETEGID.
698         * default.c (default_terminal_rules): In SCCS rules, put
699         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
700         only before the file name.
701         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
703 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
705         * job.c (construct_command_argv_internal): Swallow
706         backslash-newline combinations inside '' strings too.
708 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
710         * read.c (do_define): Call collapse_continuations on each line
711         before all else.
713 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
715         * job.c (construct_command_argv_internal): Notice newline inside
716         '' string when RESTP is non-null.
718 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
720         * Version 3.70.3.
722         * remake.c (update_goal_chain): Reset FILE to G->file after the
723         double-colon loop so it is never null for following code.
725         * read.c (read_makefile): Fix `override define' parsing to skip
726         whitespace after `define' properly.
728         * compatMakefile (srcdir): Define as @srcdir@; don't reference
729         $(VPATH).
730         (glob/Makefile): New target.
732 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
734         * Version 3.70.2.
736         * misc.c (remove_comments): Use find_char_unquote.
737         * make.h (find_char_unquote): Declare it.
738         * read.c (find_char_unquote): New function, generalized from
739         find_percent.
740         (find_percent, find_semicolon, parse_file_seq): Use that.
742 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
744         * implicit.c (pattern_search): Always allocate new storage for
745         FILE->stem.  It is not safe to store STEM's address because it
746         might be auto storage.
748         * configure.in: Check for seteuid and setegid.
749         * misc.c [HAVE_SETEUID]: Declare seteuid.
750         [HAVE_SETEGID]: Declare setegid.
751         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
752         [HAVE_SETEGID]: Use setegid.
754         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
755         to preserve whether it's 2 for error or 1 for -q trigger.  When
756         STATUS gets nonzero and -q is set, always stop immediately.
757         * main.c (main, decode_switches): Die with 2 for errors.
758         (main): Accept 2 return from update_goal_chain and die with that.
759         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
760         answer.
761         * job.c (reap_children): Die with 2 for error.
762         (start_job_command): Set update_status to 2 for error.  Set it to
763         1 when we would run a command and question_flag is set.
765         * read.c (read_makefile): Don't mark makefiles as precious.  Just
766         like other targets, they can be left inconsistent and in need of
767         remaking by aborted commands.
769         * read.c (read_makefile): Write no error msg for -include file.
771 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
773         * commands.c (fatal_error_signal): Don't unblock signals.
775         * file.h (struct file): Change member `double_colon' from flag to
776         `struct file *'.
777         * read.c (record_files): Set double_colon pointer instead of flag.
778         * main.c (main): When disqualifying makefiles for updating, use
779         double_colon pointer to find all entries for a file.
780         * file.c (enter_file): If there is already a double-colon entry
781         for the file, set NEW->double_colon to that pointer.
782         (file_hash_enter): Use FILE->double_colon to find all entries to
783         set name.
784         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
785         (update_file): Use FILE->double_colon pointer to find all entries.
786         (f_mtime): Likewise.
787         (notice_finished_file): Propagate mtime change to all entries.
789         * variable.c (try_variable_definition): Return after abort.
791 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
793         * read.c (read_makefile): Remove unused variable.
794         (parse_file_seq): When removing an elt that is just `)', properly
795         fix up the previous elt's next pointer.
797 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
799         * configure.in: Do AC_SET_MAKE.
800         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
802 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
804         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
805         the search string is the empty string, find a match at the end of
806         each word (using end_of_token in place of sindex).
808         * misc.c (end_of_token): Don't treat backslashes specially; you
809         can no longer escape blanks with backslashes in export, unexport,
810         and vpath.  This was never documented anyway.
812 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
814         * read.c (read_makefile): Variable name for `define' is not just
815         first token; use whole rest of line and strip trailing blanks.
817 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
819         * Version 3.70.1.
821         * read.c (read_makefile): Add -d msg stating args.
823         * read.c (read_makefile): Use isspace to skip over leading
824         whitespace, and explicitly avoid skipping over tabs.  Don't want
825         to skip just spaces though; formfeeds et al should be skipped.
827         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
829         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
830         sizeof ar_name for max length to compare.
832         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
833         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
835         * main.c (main): Call user_access after setting `program', in case
836         it needs to use it in an error message.
838         * read.c (read_makefile): Ignore an empty line starting with a tab.
840 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
842         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
843         AC_COMPILE_CHECK that is now its contents.
845 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
847         * make.h: #undef strerror after #include <string.h>.
848         [! ANSI_STRING]: Declare strerror.
850 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
852         * misc.c (strerror): #undef any macro before function definition.
854 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
856         * variable.c (try_variable_definition): Calculate BEG before loop
857         to strip blanks by decrementing END.  Don't decr END to before BEG.
859         * read.c (read_makefile): Skip over leading space characters, but
860         not tabs, after removing continuations and comments (it used to
861         use isspace).
863 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
865         * variable.c (define_automatic_variables): In $(@D) et al, use
866         patsubst to remove trailing slash.
868         * commands.c (delete_target): New function, broken out of
869         delete_child_targets.  Check for archive members and give special msg.
870         (delete_child_targets): Use delete_target.
872 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
874         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
875         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
877 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
879         * GNUmakefile (tarfiles): Omit make-doc.
880         (make-$(version).tar): Include make.info*.
882 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
884         * compatMakefile (configure, config.h.in): Comment out rules.
886 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
888         * compatMakefile (binprefix, manprefix): New variables.
889         (instname): Variable removed.
890         (install): Use $({bin,man}prefix)make in place of $(instname).
891         File targets likewised renamed.
893 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
895         * Version 3.70 released.
897 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
899         * Version 3.69.3.
901         * read.c (parse_file_seq): Inside multi-word archive ref
902         translation loop, check NEW1==0 at end and break out of the loop.
904         * GNUmakefile (make-$(version).tar): Distribute install.sh.
905         * install.sh: New file.
907         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
908         cmds outside subshell parens, to avoid "command not found" msgs
909         from the shell.
911 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
913         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
914         Redirect output & error from get to /dev/null.
915         Fix reversed sense of test.
917 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
919         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
920         braces inside if condition command; some shells lose.
922 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
924         * Version 3.69.2.
926         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
927         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
929         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
931 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
933         * main.c (main): Cast result of pointer arith to unsigned int
934         before passing to define_variable for envars.  Matters when
935         sizeof(unsigned)!=sizeof(ptrdiff_t).
937 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
939         * configure.in: Add new check for SCCS_GET_MINUS_G.
940         * config.h.in: Add #undef SCCS_GET_MINUS_G.
941         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
942         place of `-G $@' in SCCS commands.
943         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
944         to "-G$@".
946         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
947         (so it goes in config.status), rather than afterward.
949         * ar.c (ar_member_date): Don't call enter_file on the archive file
950         if it doesn't exist (by file_exists_p).
952         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
953         with `$$dir/make.info' in install-info invocation (oops).
955         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
956         we do not unlink and free PATH.
958         * file.c (print_file_data_base): Fix inverted calculation for
959         average files per hash bucket.
961         * read.c (readline): When we see a NUL, give only a warning and
962         synthesize a newline to terminate the building line (used to
963         fatal).  Move fgets call into the loop condition, and after the
964         loop test ferror (used to test !feof in the loop).
966 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
968         * configure.in: Check for strerror in AC_HAVE_FUNCS.
970 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
972         Differentiate different flavors of missing makefile error msgs,
973         removing gratuitous `fopen: ' and giving caller for included makefiles.
974         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
975         (perror_with_name, pfatal_with_name): Use strerror instead of
976         replicating its functionality.
977         * read.c (read_makefile): Return int instead of void.
978         (read_all_makefiles, read_makefile): Change callers to notice zero
979         return and give error msg.
981 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
983         * Version 3.69.1.
985         * default.c: Put `-G $@' before $< in SCCS cmds.
987 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
989         * read.c (read_makefile): After trying a variable defn, notice if
990         the line begins with a tab, and diagnose an error.
992 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
994         * Version 3.69.
996 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
998         * Version 3.68.10.
1000         * implicit.c (try_implicit_rule): Look for a normal rule before an
1001         archive rule.
1003 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1005         * function.c (expand_function: `sort'): Double NWORDS when it
1006         overflows, instead of adding five.
1008         * compatMakefile (clean): Remove loadavg.
1010 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1012         * Version 3.68.9.
1014         * file.h (NEW_MTIME): Define new macro.
1015         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
1016         current time returned from system.  Removed variable NOW.
1017         * remake.c (notice_finished_file): Use NEW_MTIME in place of
1018         current time here too.
1020 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1022         * Version 3.68.8.
1024         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1025         cmds and !DEPS_CHANGED unless also !NOEXIST.
1027 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1029         * read.c (parse_file_seq): When converting multi-word archive
1030         refs, ignore a word beginning with a '('.
1032 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1034         * configure.in: Check for sys/timeb.h.
1035         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1037 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1039         * Version 3.68.7.
1041         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
1042         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
1043         TARGNAME to initialize PERCENTS[0].
1045 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1047         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1048         Remove AC_USG; it is no longer used.
1050         * file.c (print_file): New function, broken out of
1051         print_file_data_base.
1052         (print_file_data_base): Call it.
1053         * rule.c (print_rule): New function, broken out of
1054         print_rule_data_base.
1055         (print_rule_data_base): Call it.
1057 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1059         * default.c (install_default_suffix_rules): New function, broken
1060         out of install_default_implicit_rules.
1061         (install_default_implicit_rules): Move suffix rule code there.
1062         * make.h: Declare install_default_suffix_rules.
1063         * main.c (main): Call install_default_suffix_rules before reading
1064         makefiles.  Move convert_to_pattern call before
1065         install_default_implicit_rules.
1067         * job.h (struct child): Make `pid' member type `pid_t' instead of
1068         `int'.
1070         * compatMakefile (RANLIB): New variable, set by configure.
1071         (glob/libglob.a): Pass RANLIB value down to submake.
1073         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1074         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1075         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1076         defined but NOFILES_MAX is, define it to be that.
1078 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1080         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1081         is distributed.
1083 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1085         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1087 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1089         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1090         is another symbol for | in some shells.
1091         * main.c (main): Add it to CMD_DEFS quoting list as well.
1093 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1095         * job.c (construct_command_argv_internal): Remove '=' from
1096         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1097         first word without an unquoted '='.
1099         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1101 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1103         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1105         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1107         * commands.c (delete_child_targets): Don't delete phony files.
1109         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1110         see a `+' at the beginning of the command line.
1112 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1114         * Version 3.68.6.
1116 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1118         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1120 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1122         * expand.c (variable_expand): Fatal on an unterminated reference.
1124 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1126         * Version 3.68.5.
1128         * variable.c (define_automatic_variables): Define new o_default
1129         variable `MAKE_VERSION' from version_string and remote_description.
1131         * make.h (version_string, remote_description): Declare these here.
1132         * main.c: Don't declare version_string.
1133         (print_version): Don't declare remote_description.
1135 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1137         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1138         before restoring the old pointer.
1140 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1142         * compatMakefile ($(objs)): Depend on config.h.
1144         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1146         * configure.in: Touch stamp-config after AC_OUTPUT.
1148 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1150         * Version 3.68.4.
1152 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1154         * make.h: Include <config.h> instead of "config.h".
1156 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1158         * main.c (main): Make all variables interned from ENVP be v_export.
1159         * variable.c (try_variable_definition): In v_default case, don't
1160         check for an o_file variable that `getenv' finds.
1162         * job.c (reap_children): New local variable ANY_LOCAL; set it
1163         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1165         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1167         * function.c (expand_function): #if 0 out freeing of ENVP since it
1168         is environ.
1170 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1172         * Version 3.68.3.
1174         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1175         * job.c (reap_children): Scan the chain for remote children and
1176         never call remote_status if there are none.
1178         * function.c (expand_function: `shell'): #if 0 out calling
1179         target_environment; just set ENVP to environ instead.
1181         * job.c (reap_children): Check for negative return from
1182         remote_status and fatal for it.
1183         When blocking local child wait returns 0, then try a blocking call
1184         to remote_status.
1186 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1188         * compatMakefile (clean): Delete make.info* and make.dvi here.
1189         (distclean): Not here.
1191         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1192         compilers that don't like enum values used as ints.
1194 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1196         * compatMakefile (loadavg): Add $(LOADLIBES).
1198 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1200         * Version 3.68.2.
1202         * compatMakefile (loadavg, check-loadavg): New targets.
1203         (check): Depend on check-loadavg.
1205         * compatMakefile (glob/libglob.a): Depend on config.h.
1207         * misc.c (log_access): Write to stderr instead of stdout.
1209 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1211         * Version 3.68.1.
1213 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1215         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1216         <unistd.h> #ifdef HAVE_UNISTD_H.
1218         * compatMakefile (.PHONY): Put after `all' et al.
1220         * configure.in: Add AC_IRIX_SUN.
1222 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1224         * Version 3.68.
1226 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1228         * Version 3.67.8.
1230 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1232         * Version 3.67.7.
1234         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1235         Run install-info script if present.
1237 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1239         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1241         * configure.in: Add AC_STAT_MACROS_BROKEN.
1243 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1245         * Version 3.67.6.
1247         * read.c (read_makefile): Recognize directive `-include', like
1248         `include' but sets RM_DONTCARE flag.
1250         * variable.c (target_environment): If FILE is nil, use
1251         current_variable_set_list in place of FILE->variables.
1252         * function.c (expand_function: `shell'): Get an environment for
1253         the child from target_environment instead of using environ.
1255         * dep.h: Declare read_all_makefiles here.
1256         (RM_*): Define new enum constants.
1257         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1258         Treat it as a bit mask containing RM_*.
1259         (read_all_makefiles): For default makefiles, set D->changed to
1260         RM_DONTCARE instead of 1.
1261         * main.c: Don't declare read_all_makefiles here.
1262         (main): Check `changed' member of read_makefiles elts for RM_*
1263         flags instead of specific integer values.
1265 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1267         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1269 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1271         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1272         as well as VPATH.
1273         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1274         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1276         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1277         PERCENTS, whose storage is not consumed by create_pattern_rule.
1279         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1281 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1283         * Version 3.67.5.
1285         * rule.c (max_pattern_targets): New variable.
1286         (count_implicit_rule_limits): Compute its value.
1287         * rule.h: Declare it.
1288         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1289         times bigger.  Move adding new TRYRULES elt inside the inner
1290         targets loop, so each matching target gets its own elt in MATCHES
1291         and CHECKED_LASTSLASH.
1293         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1294         instead of just `file' in error msg.
1296 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1298         * job.c (construct_command_argv): Turn off
1299         --warn-undefined-variables around expansion of SHELL and IFS.
1300         * read.c (tilde_expand): Likewise for HOME.
1301         (read_all_makefiles): Likewise for MAKEFILES.
1302         * vpath.c (build_vpath_lists): Likewise for VPATH.
1304         * main.c (warn_undefined_variables_flag): New flag variable.
1305         (switches): Add --warn-undefined-variables.
1306         * make.h (warn_undefined_variables_flag): Declare it.
1307         * expand.c (warn_undefined): New function.
1308         (reference_variable): Call it if the variable is undefined.
1309         (variable_expand): In substitution ref, call warn_undefined if the
1310         variable is undefined.
1312         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1313         `%.tex: %.w %.ch' rules.
1314         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1315         (default_suffixes): Add `.ch'.
1317 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1319         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1320         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1321         and `.w.tex'.
1323 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1325         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1327 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1329         * Version 3.67.4.
1331         * read.c (multi_glob): Don't free OLD and OLD->name in the
1332         FOUND!=0 fork.  Use new block-local variable F instead of
1333         clobbering OLD.
1335         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1336         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1337         contains no metacharacters.
1339 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1341         * ar.c (ar_glob{_match,_alphacompare}): New function.
1343         * dep.h [! NO_ARCHIVES]: Declare it.
1344         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1346         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1347         multi_glob (which doesn't take a 3rd arg).
1348         * rule.c (install_pattern_rule): Likewise.
1349         * default.c (set_default_suffixes): Here too.
1350         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1352         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1353         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1355 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1357         * compatMakefile (installdirs): Actually pass directory names.
1358         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1359         if it fails, echo a warning msg, but don't make the rule fail.
1361         * read.c (tilde_expand): New function, broken out of tilde_expand.
1362         (multi_glob): Call it.
1363         (construct_include_path): Expand ~ in directory names.
1364         * dep.h: Declare tilde_expand.
1365         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1366         (main): Expand ~ in -C args.
1367         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1369 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1371         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1373         * main.c (main): Put result of alloca in temporary variable with
1374         simple assignment, to make SGI compiler happy.
1376 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1378         * Version 3.67.3.
1380         * main.c (main): Before re-execing, remove intermediate files, and
1381         print the data base under -p.  Sexier debugging message.
1383         * implicit.c (pattern_search): Allocate an extra copy of the name
1384         of a winning intermediate file when putting it in FOUND_FILES.
1386 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1388         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1389         multi_glob (which doesn't take a 3rd arg).
1391         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1392         chars within D_NAMLEN that are NULs.
1394         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1395         into `other_args'.
1396         For string switch, don't savestring `optarg'.
1397         (main): Don't free elts of makefiles->list that are "-".
1398         Use alloca'd rather than savestring'd storage for elts of
1399         makefiles->list that are temporary file names.
1400         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1401         * file.c (enter_file): Don't strip `./'s.
1402         * main.c (enter_command_line_file): New function.
1403         (main): Use it in place of enter_file for command-line goals from
1404         other_files, and for old_files and new_files.
1406 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1408         * Version 3.67.2.
1410         * compatMakefile (.SUFFIXES): Add .info.
1411         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1412         else in $srcdir.  Use basename to remove dir name from installed name.
1414 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1416         * implicit.c (pattern_search): When interning FOUND_FILES, try
1417         lookup_file first; if found, free the storage for our copy of the name.
1419 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1421         * Version 3.67.1.
1423         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1424         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1426 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1428         * rule.c (convert_suffix_rule): New function.
1429         (convert_to_pattern): Use it instead of doing all the work here
1430         several times.
1431         For target suffix `.a', generate both the archive magic rule and
1432         the normal rule.
1434         * compatMakefile (distclean): Remove stamp-config.
1436 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1438         * Version 3.67.
1440         * file.c (remove_intermediates): Don't write extra space after `rm'.
1442         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1443         (print_usage_flag): New variable.
1444         (switches: --help): Make type `flag', to set print_usage_flag.
1445         (init_switches): Remove `usage_and_exit' case.
1446         (decode_switches): Likewise.
1447         (decode_switches): Print usage if print_usage_flag is set.
1448         When printing usage, die with status of BAD.
1449         (main): Die with 0 if print_version_flag.
1451 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1453         * Version 3.66.
1455 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1457         * compatMakefile (installdirs): New target.
1458         (install): Depend on it.
1460 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1462         * Version 3.65.2.
1464 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1466         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1467         set LASTPATH to PATH, not NEXT.
1469         * dir.c (read_dirstream): Break out of loop after incrementing
1470         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1471         dereference DS->contents->files[DIRFILE_BUCKETS].
1473         * read.c (read_makefile): Clear no_targets after reading a
1474         targetful rule line.
1476         * main.c (main): If print_version_flag is set, exit after printing
1477         the version.
1478         (switches): Change --version docstring to say it exits.
1480         * make.h [butterfly]: #undef POSIX.
1482 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1484         * Version 3.65.1.
1486         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1487         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1489         * function.c (handle_function): Use fatal instead of
1490         makefile_fatal when reading_filename is nil.
1492         * configure.in: Add AC_GETGROUPS_T.
1493         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1495 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1497         * Version 3.65.
1499 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1501         * function.c (handle_function): Fatal for unmatched paren.
1503 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1505         * Version 3.64.3.
1507         * commands.c (handling_fatal_signal): New variable.
1508         (fatal_error_signal): Set it.
1509         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1510         * make.h: Declare handling_fatal_signal.
1512         * expand.c (reference_variable): New function, snippet of code
1513         broken out of simple-reference case of variable_expand.
1514         (variable_expand): Use it for simple refs.
1515         (variable_expand): When checking for a computed variable name,
1516         notice a colon that comes before the final CLOSEPAREN.  Expand
1517         only up to the colon, and then replace the pending text with a
1518         copy containing the expanded name and fall through to subst ref
1519         handling.
1520         (variable_expand): Don't bother expanding the name if a colon
1521         appears before the first $.
1522         (expand_argument): Use alloca instead of savestring.
1523         (variable_expand): For subst ref, expand both sides of = before
1524         passing to [pat]subst_expand.  Use find_percent instead of lindex
1525         to check the lhs for a %.
1527 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1529         * Version 3.64.2.
1531 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1533         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1535         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1536         not to multi_glob.
1538 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1540         * Version 3.64.1.
1542         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1543         we read the member name in any of the fashions that allow it to be
1544         arbitrarily long.  Pass its negation to FUNCTION.
1545         (describe_member): Take TRUNCATED from ar_scan and print it.
1546         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1547         the first sizeof (struct ar_hdr.ar_name) chars.
1548         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1549         * ar.c (ar_member_date_1): Likewise.
1551 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1553         * job.c (reap_children): Before calling start_job_command to start
1554         the next command line, reset C->remote by calling start_remote_job_p.
1556 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1558         * arscan.c (ar_scan): New local var NAMEMAP.
1559         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1560         flag IS_NAMEMAP.  When extracting the member name, always put a
1561         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1562         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1563         like " /N", get full name from NAMEMAP+N.
1564         Else if NAME looks like "#1/N", read N chars from the
1565         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1566         the elt's data into alloca'd NAMEMAP.
1567         (ar_name_equal): #if 0 truncating code.
1569         * make.h: Don't declare vfork at all.  It returns int anyway,
1570         unless <unistd.h> declared it; and we conflicted with some systems.
1572         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1573         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1574         define it to something like "-no-print-directory".
1575         Use %g format instead of %f for floating-valued things.
1577 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1579         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1580         to change remote-%.dep to remote-stub.dep.
1582 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1584         * Version 3.64.
1586 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1588         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1590         * Version 3.63.8.
1592 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1594         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1595         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1596         else to "get".
1597         * default.c (default_variables): Set GET to macro SCCS_GET.
1599         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1600         if nonzero.  I hope this is the last time this argument is added
1601         or removed.
1602         (read_makefile): Pass it 1 when parsing include file names.
1603         Pass it 1 when parsing target file names.
1604         Pass it 1 when parsing static pattern target pattern names.
1605         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1606         * default.c (set_default_suffixes): Pass it 1 when parsing
1607         default_suffixes.
1608         * function.c (string_glob): Pass it 0 here.
1610 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1612         * misc.c (log_access): New function.
1613         ({init,user,make,child}_access): Call it.
1614         (child_access): Abort if !access_inited.
1616         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1617         single-letter option.
1618         (init_switches, decode_switches, define_makeflags): An option with
1619         no single-letter version is no longer indicated by a value of -1;
1620         instead a value that is !isalnum.
1621         (init_switches): Don't put such switches into the string, only
1622         into the long_option table.
1624         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1626         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1627         bsdcc defined WIF* to use union wait.
1629         * main.c (struct command_switch): Change member `c' to type int.
1630         (switches): Make const.
1631         (decode_switches): Use `const struct command_switch *'.
1632         (define_makeflags): Likewise.
1634         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1636 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1638         * Version 3.63.7.
1640         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1641         Removed AC_MEMORY_H.
1642         * make.h [USG, NeXT]: Don't test these.
1643         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1644         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1645         [! ANSI_STRING]: Put decls of bcopy et al here.
1646         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1647         [HAVE_SIGSETMASK]: Test this rather than USG.
1648         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1649         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1650         It doesn't hurt to do both if they are both defined, and testing
1651         USG is useless.
1652         * dir.c: Rationalize directory header conditionals.
1653         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1655         * default.c (default_suffixes): Add `.txinfo'.
1656         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1658         * variable.c (try_variable_definition): Replace RECURSIVE flag
1659         with enum FLAVOR, which can be simple, recursive, or append.
1660         Recognize += as append flavor.  Set new variable VALUE in a switch
1661         on FLAVOR.  For append flavor, prepend the variable's old value.
1662         If the variable was previously defined recursive, set FLAVOR to
1663         recursive; if it was defined simple, expand the new value before
1664         appending it to the old value.  Pass RECURSIVE flag to
1665         define_variable iff FLAVOR == recursive.
1667         * variable.c (try_variable_definition): Use alloca and bcopy for
1668         NAME, instead of savestring.  Might as well use stack storage
1669         since we free it immediately anyway.
1671 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1673         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1675         * main.c (define_makeflags): Rename `struct flag' member `switch'
1676         to `cs', which is not a reserved word.
1678 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1680         * job.c (new_job): Call start_waiting_jobs first thing.
1681         (start_waiting_job): Changed return type from void to int.
1682         Return 0 when putting the child on the waiting_jobs chain.
1683         (start_waiting_jobs): Don't check load and job_slots here.
1684         Always take a job off the chain and call start_waiting_job on it;
1685         give up and return when start_waiting_job returns zero.
1687         * main.c (define_makeflags: struct flag): Change member `char c' to
1688         `struct command_switch *switch'.
1689         (ADD_FLAG): Set that to CS instead of CS->c.
1690         If CS->c is -1, increment FLAGSLEN for the long name.
1691         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1692         the long name instead.
1694         * compatMakefile (stamp-config): New target of old config.h rule.
1695         Touch stamp-config after running config.status.
1696         (config.h): Just depend on stamp-config, and have empty commands.
1698 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1700         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1702         * configure.in (AC_HAVE_FUNCS): Check for psignal.
1704 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1706         * main.c (long_option_aliases): Remove "new"; it is already an
1707         unambiguous prefix of "new-file".
1709 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1711         * Version 3.63.6.
1713 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1715         * vpath.c (selective_vpath_search): When adding the
1716         name-within-directory at the end of NAME, and we don't add a
1717         slash, don't copy FILENAME in one char too far into NAME.
1719         * variable.c (define_automatic_variables): Find default_shell's
1720         length with strlen, not numerology.
1722 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1724         * main.c (define_makeflags): Add the elts of a string option in
1725         reverse order, so they come out right when reversed again.
1727 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1729         * compatMakefile (make.info): Use `-o make.info'.
1731 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1733         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1734         reflect new use.
1735         (objs): Replace remote.o with remote-$(REMOTE).o.
1736         (srcs): Replace remote.c with remote-$(REMOTE).c.
1737         (remote.o): Rule removed.
1739         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1740         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1741         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1742         * build.template (REMOTE): New var; set to @REMOTE@.
1743         (objs): Add remote-${REMOTE}.o.
1745 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1747         * Version 3.63.5.
1749         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1750         "Rejecting impossible" -d msg.
1752         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
1753         mod'd values there; never mod {OLD,NEW}HASH.
1755 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1757         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1759         * compatMakefile (VPATH): Set this to @srcdir@.
1760         (srcdir): Set this to $(VPATH).
1762         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
1763         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
1764         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1766         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1768         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1770 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1772         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1773         as the sed delimiter char.
1775 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1777         * Version 3.63.4.
1779         * rule.h (struct rule): Removed `subdir' member.
1780         * rule.c (new_pattern_rule): No need to clear it.
1781         (count_implicit_rule_limits): Set the `changed' flag in each dep
1782         that refers to a nonexistent directory.  No longer set rule-global
1783         `subdir' flag with that information.
1784         (print_rule_data_base): Don't record info on `subdir' flags.
1786         * implicit.c (pattern_search): Check the DEP->changed flag rather
1787         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
1788         if it is set, the file might exist even though the DEP->changed
1789         flag is set.
1791         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1792         name arg to dir_file_exists_p to check for existence of directory.
1794         * implicit.c (pattern_search): Inside dep-finding loop, set
1795         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1796         rather than computing it anew.
1798         * commands.c (set_file_variables): Must alloca space for PERCENT
1799         and copy it, to avoid leaving the trailing `)' in the value.
1801         * misc.c (remove_comments): Fixed backslash-checking loop
1802         condition to allow it to look at the first char on the line.
1803         P2 >= LINE, not P2 > LINE.
1805         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1806         $@, rm $@.old and mv $@ to $@.old.
1808         * variable.c (try_variable_definition): Take new args FILENAME and
1809         LINENO.  Fatal if the variable name is empty.
1810         * read.c (read_makefile): Change callers.
1811         * main.c (main): Likewise.
1813         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1814         that configure will replace with the group owning /dev/kmem.
1816 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1818         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1819         selective_vpath_search.
1820         (selective_vpath_search): Take second arg MTIME_PTR.
1821         If the dir cache thinks a file exists, stat it to make sure, and
1822         put the modtime in *MTIME_PTR.
1823         * remake.c (library_search): Take second arg MTIME_PTR.
1824         When we find a match, record its mtime there.
1825         Pass MTIME_PTR through to vpath_search to do same.
1826         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1827         store it in FILE->last_mtime if set nonzero.
1828         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1830         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1831         so globbing looks somewhere it will find things.
1833         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1834         not `$(srcdir)/make.info*'; no need to use basename.
1836 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1838         * Version 3.63.3.
1840         * compatMakefile (install): Add missing ;\s.
1842         Make -, @, and + prefixes on a pre-expanded command line affect
1843         all lines in the expansion, not just the first.
1844         * commands.h (struct commands): Replace `lines_recurse' member
1845         with `lines_flags'.
1846         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1847         that flag byte.
1848         * commands.c (chop_commands): Set `lines_flags' instead of
1849         `lines_recurse'.  Record not only + but also @ and - prefixes.
1850         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1851         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1852         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1853         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1854         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1855         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1857         * remake.c (update_goal_chain): Set G->file to its prev after
1858         checking for G being finished, since that check needs to examine
1859         G->file.
1861         * configure.in (union wait check) [HAVE_WAITPID]: Try using
1862         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
1863         don't work together, we should not use union wait.
1865         * Version 3.63.2.
1867         * remake.c (update_goal_chain): When G->file->updated, move
1868         G->file to its prev.  We aren't finished until G->file is nil.
1870 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1872         * main.c (starting_directory): New global variable.
1873         (main): Set it to cwd after doing -Cs.
1874         (log_working_directory): Use it, rather than computing each time.
1875         * make.h: Declare it.
1877         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1879         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1880         ARGV, rather than LEN words plus one byte.
1882 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1884         * compatMakefile ($(bindir)/$(instname)): Put - before
1885         install_setgid command line, so its failure won't be an error.
1886         (infodir): New variable.
1887         (install): Depend on $(infodir)/$(instname).info.
1888         ($(infodir)/$(instname).info): New target.
1890         * read.c (read_makefile): If FILENAMES is nil when we see a line
1891         starting with a tab, don't treat it as a command.  Just fall
1892         through, rather than giving an error.
1894         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1895         command line, don't clear it before continuing.  We want
1896         subsequent command lines to be ignored as well.
1898         * job.c (new_job): Before expanding each command line, collapse
1899         backslash-newline combinations that are inside var or fn references.
1901 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1903         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1905         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1907         * job.c [POSIX] (unblock_sigs): Made global.
1908         [!POSIX] (unblock_sigs): Move defns to job.h.
1909         * job.h [POSIX] (unblock_sigs): Declare.
1911 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1913         * read.c (read_makefile): In vpath parsing, after finding the
1914         pattern token, take entire rest of line as the search path, not
1915         just the next token.
1917         * compatMakefile (remote.o): Depend on remote-*.c.
1919 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1921         * commands.c (set_file_variables): Don't define any F or D versions.
1922         * variable.c (define_automatic_variables): Define them here as
1923         recursively-expanded variables that use the dir and notdir funcs.
1925         * variable.c (target_environment): In v_default case, don't export
1926         o_default or o_automatic variables.
1928         * configure.in (union wait check): Remove ` and ' inside C code;
1929         they confuse the shell script.
1931 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1933         * Version 3.63.1.
1935         * vpath.c (construct_vpath_list): When skipping further processing
1936         of an elt that is ".", don't also skip the code that pushes P past
1937         the next separator.
1939         * compatMakefile (distclean): Don't remove make-*.
1941         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1942         defined.  If one cannot use WEXITSTATUS with a `union wait'
1943         argument, we don't want to believe the system has `union wait' at all.
1945         * remake.c (update_file): Do nothing to print "up to date" msgs.
1946         (update_goal_chain): Do it here instead.
1947         Use the `changed' flag of each goal's `struct dep' to keep track
1948         of whether files_remade (now commands_started) changed around a
1949         call to update_file for that goal.
1950         When a goal is finished, and its file's update_status is zero (i.e.,
1951         success or nothing done), test the `changed' flag and give an "up
1952         to date" msg iff it is clear.
1953         * make.h (files_remade): Renamed to commands_started.
1954         * remake.c: Changed defn.
1955         (update_goal_chain): Changed uses.
1956         * job.c (start_job_command): Increment commands_started here.
1957         (reap_children): Not here.
1959         * remake.c (update_goal_chain): Don't do anything with files'
1960         `prev' members.  update_file now completely handles this.
1962         * variable.c (target_environment): Don't expand recursive
1963         variables if they came from the environment.
1965         * main.c (define_makeflags): For flags with omitted optional args,
1966         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
1967         so stored cannot have more flags appended to the same word.
1969 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1971         * variable.c (print_variable_set): In vars/bucket calculation,
1972         don't spuriously multiply by 100.
1974         * Version 3.63.
1976         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
1977         Don't define if already defined.
1979         * remake.c (update_file): Don't keep track of the command_state before
1980         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
1981         and don't test it to decide to print the "is up to date" msg.
1982         Testing for files_remade having changed should always be sufficient.
1983         The old method lost when we are called in the goal chain run on a
1984         makefile, because the makefile's command_state is already
1985         `cs_finished' from the makefile chain run.
1987         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
1989         * configure.in: Rewrote wait checking.
1990         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
1991         Use AC_HAVE_FUNCS to check for waitpid and wait3.
1992         Use a compile check to test just for `union wait'.
1993         * job.c: Rewrote conditionals accordingly.
1994         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
1995         [HAVE_WAIT3]: Likewise.
1996         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
1998         * configure.in: Set CFLAGS and LDFLAGS before all checks.
2000         * dir.c: Add static forward decls of {open,read}_dirstream.
2002 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2004         * Version 3.62.31.
2006         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
2008         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
2009         * build.template (CFLAGS, LDFLAGS): Same here.
2010         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
2011         Set them to -g if not defined in the environment.
2013         * remake.c (library_search): Use LIBNAME consistently, setting it
2014         only once, to be the passed name sans `-l'.
2015         Pass new var FILE to be modified by vpath_search.
2017 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2019         * Version 3.62.30.
2021         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
2022         job_slots.
2024         * configure.in: Add AC_CONST for the sake of getopt.
2026         * read.c (read_makefile): Continue after parsing `override'
2027         directive, rather than falling through to lossage.
2028         Check for EOL or blank after "override define".
2030         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2032 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2034         * Version 3.62.29.
2036         * main.c (define_makeflags): After writing everything into
2037         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2038         just wrote " -".  Always terminate the string at *P.
2040         * remake.c (library_search): When constructing names in std dirs,
2041         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2042         buffer we are writing into!).
2044 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2046         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2047         define" when IGNORING is true.
2049         * compatMakefile (distclean): Remove config.status and build.sh.
2051 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2053         * Version 3.62.28.
2055         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2056         (char *).
2058         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2060         * variable.c (define_automatic_variables): Override SHELL value for
2061         origin o_env_override as well as o_env.
2063         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
2064         add the names of the glob objects (w/subdir) to %objs%.
2065         * build.template (globobjs): Removed.
2066         Take basename of $objs before linking.
2068 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2070         * Version 3.62.27.
2072         * configure.in (AC_OUTPUT): Also edit build.sh.
2073         * build.template: New file.
2074         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2075         (make-$(version).tar.Z): Depend on build.sh.in.
2077         * main.c (die): Call print_data_base if -p.
2078         (main): Don't call it here.
2080         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2081         into -DHAVE_CONFIG_H.
2083 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2085         * Version 3.62.26.
2087         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2088         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2089         * compatMakefile (install_setgid): New var, set by configure.
2090         (install): Install setgid $(group) only if $(install_setgid) is true.
2092 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2094         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2095         message saying that load limits are not supported.
2097         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2098         not try to use PATH's next link after freeing PATH.
2100         * main.c (define_makeflags): Rewritten; now handles string-valued
2101         option, and has no arbitrary limits.
2102         (switches): Set `toenv' flag for -I and -v.
2104         * main.c (decode_env_switches): Cast return value of alloca to char *.
2106         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2107         setre[gu]id in place of set[gu]id.
2109 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2111         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2112         origin o_default.
2114         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2115         Testing STDC_HEADERS should be sufficient.
2117         * job.h: Declare start_waiting_jobs.
2119         * read.c (read_makefile): Add missing parens in if stmt that find
2120         conditional directives.
2122         * main.c (main): Declare init_dir.
2123         * implicit.c (pattern_search): Always use two % specs in a
2124         DEBUGP2, and always pass two non-nil args.
2125         Cast field width args to int.
2126         Add missing parens in !RULE->subdir if stmt.
2127         * function.c (expand_function, patsubst_expand): Add parens around
2128         assignments inside `while' stmts.
2129         * commands.c (print_commands): Cast field width args to int.
2131         * read.c (do_define): Cast return value of alloca to (char *).
2133         * main.c (init_switches): New function, broken out of decode_switches.
2134         (decode_switches): Take new arg ENV.  If set, ignore non-option
2135         args; print no error msgs; ignore options with clear `env' flags.
2136         (decode_env_switches): Rewritten to chop envar value into words
2137         and pass them to decode_switches.
2138         (switches): Set `env' flag for -I and -v.
2140         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2142 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2144         * Version 3.62.25.
2146         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2147         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2148         we don't need these anyway.
2150         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2151         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2152         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2153         but its set[gu]id functions aren't; its setre[gu]id functions work.
2155         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2157         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2159         * configure.in: Call AC_PROG_CC.
2160         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2162         * compatMakefile: Add .NOEXPORT magic target.
2164 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2166         * main.c (print_version): Updated copyright to include 93.
2168 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2170         * make.h [_AIX]: Don't declare alloca.
2172 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2174         * Version 3.62.24.
2176         * compatMakefile (objs): Add signame.o.
2177         (srcs): Add signame.[ch].
2179         * compatMakefile (srcs): Add config.h.in.
2180         (remote.o): Add -I. before -I$(srcdir).
2182 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2184         * Version 3.62.23.
2186         * read.c (readline): Fatal when LEN==0, indicating a line starting
2187         with a NUL.
2188         (readline): Take new arg LINENO, for use in error msg.
2189         (read_makefile, do_define): Pass it.
2191         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2192         (.c.o): Add -I. before -I$(srcdir).
2194 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2196         * read.c (read_makefile): Accept and ignore a rule with no targets.
2198         * compatMakefile (ALLOCA_SRC): New variable.
2199         (srcs): Include its value.
2201         * read.c (struct conditional): Renamed member `max_ignoring' to
2202         `allocated'; added new member `seen_else'.
2203         (conditional_line): Initialize seen_else flag when starting an `if...';
2204         set it when we see an `else'; fatal if set when we see `else'.
2205         (read_makefile): Fatal "missing `endif'" if there are any pending
2206         conditionals, not just if we are still ignoring.
2208 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2210         * compatMakefile (manext): Set to 1, not l.
2211         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2213         * file.c (file_hash_enter): Don't call uniquize_deps here.
2214         * read.c (record_files): Likewise.
2215         * implicit.c (pattern_search): Likewise.
2216         * commands.c (set_file_variables): Call it only here.
2218         * default.c (default_variables) [__convex__]: FC=fc.
2220         * variable.c (target_environment): Expand the values of recursively
2221         expanded variables when putting them into the environment.
2222         * expand.c (recursively_expand): Made global.
2223         * make.h (recursively_expand): Declare it.
2225         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2226         when a dep's command_state is cs_running or cs_deps_running.
2228         * read.c (read_makefile): Changed error msg for spurious cmds to
2229         not say "first target".
2231 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2233         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2234         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2235         * compatMakefile (config.h, configure, config.h.in): New rules.
2236         (defines): Removed @DEFS@.
2238 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2240         * compatMakefile (realclean): Just depend on distclean; no cmds.
2241         (distclean): Do what realclean did before; also remove Makefile and
2242         config.h; don't remove configure.
2243         (info, dvi): New targets; depend on make.{info,dvi}.
2244         (doc): Removed target.
2245         (MAKEINFO, TEXI2DVI): New vars.
2246         (make.info, make.dvi): Use them instead of explicit cmds.
2248 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2250         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2252 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2254         * main.c (long_option_aliases): Add --new-file alias for -W.
2256         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2257         to CXXFLAGS.
2259         * read.c (do_define): Expand the variable name before using it.
2261         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2262         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2264         * remake.c (library_search): Search for libNAME.a in cwd; look in
2265         vpath before looking in standard dirs, not after.
2266         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2268 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2270         * default.c (default_pattern_rules, default_terminal_rules): Added
2271         brackets around initializers.
2273         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2274         (try_variable_definition): Expand the name before defining the var.
2276         * job.c (init_siglist): Removed function.
2277         Removed decl of `sys_siglist'.
2278         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2279         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2280         only under these conditions.
2281         * main.c (main): Don't declare init_siglist.
2282         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2284 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2286         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2287         nil; instead just set it to MOREDEPS.
2289 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2291         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2292         loop that sets MAXELEM.
2294 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2296         * Version 3.62.22.
2298 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2300         * job.c (start_job_command): Under -n, increment files_remade after
2301         processing (i.e., printing) all command lines.
2303 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2305         * read.c (record_files): Append new deps if this rule has no
2306         commands; prepend them to existing deps if this rule has no commands.
2308         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2310         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2311         (read_makefile): Changed callers.
2312         * function.c (string_glob): Likewise.
2313         * rule.c (install_pattern_rule): Likewise.
2315 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2317         * remake.c (files_remade): Made global.
2318         (notice_finished_file): Don't increment files_remade here; this
2319         function gets called in many situations where no remaking was in
2320         fact done.
2321         * job.c (reap_children): Do it here instead, when we know that
2322         actual commands have been run for the file.
2323         * make.h (files_remade): Declare it.
2325 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2327         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2328         separate elts in the search path.
2330         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2331         The search path can contain spaces now.
2333 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2335         * compatMakefile (check): New target; no-op.
2337         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2338         testing for OLDHASH==0 but before using the value.
2339         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2340         to file_hash_enter.
2342         * file.c (rename_file): Notice when OLDFILE->cmds came from
2343         default.c, and don't try to print ->filename in that case.
2345 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2347         * remake.c (update_file): Don't process F->also_make here.
2348         (notice_finished_file): Don't process FILE->also_make if no attempt
2349         to update FILE was actually made.
2350         Fixed to call f_mtime directly to refresh their modtimes.
2352 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2354         * read.c (find_percent): Don't increment P again after skipping
2355         an escaped %.
2357         * expand.c (variable_expand): In call to patsubst_expand, don't
2358         find `%'s ourselves; let that function do it.
2360         * read.c (read_makefile: record_waiting_files): Don't call
2361         record_files if FILENAMES is nil.
2362         (read_makefile): All alternatives in the parsing, except for rule
2363         lines, fall through to the end of the loop.  At the end of the
2364         loop, do record_waiting_files so we notice later spurious cmds.
2366 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2368         * variable.c (define_automatic_variables): Free old value of SHELL
2369         before replacing it.
2371 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2373         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2375         * dir.c (open_dirstream): Cast return value to __ptr_t.
2377         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2379         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2380         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2381         Define as (get_path_max ()).
2382         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2383         [! PATH_MAX] (get_path_max): Declare fn.
2384         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2386 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2388         * Version 3.62.21.
2390         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2391         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2392         SYS_SIGLIST_DECLARED.
2394         * dir.c (file_impossible): When initializing DIR->contents, set
2395         DIR->contents->dirstream to nil.
2397         * compatMakefile (GLOB): Define new variable.
2398         (objs): Use it, rather than glob/libglob.a explicitly.
2400         * read.c (parse_file_seq): When stripping "./", handle cases like
2401         ".///foo" and "./////".
2402         * file.c (lookup_file, enter_file): Likewise.
2404 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2406         * dir.c (struct dirstream, {open,read}_dirstream): New
2407         data type and functions to read a directory sequentially.
2408         (init_dir): New function to hook it into glob.
2409         * main.c (main): Call init_dir.
2411         * compatMakefile (objs): Added glob/libglob.a.
2412         * configure.in: Remove code to test for glob.
2414 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2416         * read.c (record_files): Generalized test for NAME pointing
2417         somewhere into F->name.
2419         * variable.c (define_variable_in_set): Free old value when replacing.
2421         * read.c (do_define): Free the linebuffer before returning.
2422         (record_files): When clearing .SUFFIXES deps, free their data.
2423         (multi_glob): Free OLD and its data when replacing it with results
2424         of glob run.
2426         * commands.c (set_file_variables): Use alloca in place of xmalloc
2427         for temp space for $^, $?, et al.
2429         * dir.c (struct directory): New member `contents' replaces `files'
2430         and `dirstream'.
2431         (struct directory_contents): New type.
2432         (directories_contents): New hash table.
2433         (dir_struct_file_exists_p): Take a struct directory_contents.
2434         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2435         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2436         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2437         (dir_file_exists_p, find_directory): Change all callers.
2438         (file_impossible): Use DIR->contents, initializing it if nil.
2439         (print_dir_data_base): Use DIR->contents, and print out device and
2440         inode numbers with each directory.
2442         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2443         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2444         (DIRFILE_BUCKETS): Decrease to 107.
2445         (find_directory): Allocate and zero a multiple of
2446         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2447         (dir_struct_file_exists_p): New function, nearly all code from
2448         dir_file_exists_p.
2449         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2450         * vpath.c (selective_vpath_search): Remove redundant
2451         dir_file_exists_p call.
2453         * configure.in: Comment out glob check; always use our code.
2455 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2457         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2458         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2459         do have it.
2461 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2463         * main.c (main): Don't do -w automatically if -s.
2465 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2467         * main.c (printed_version): Move variable inside print_version.
2468         (print_version): Return immediately if printed_version is set.
2469         (die): Don't test printed_version here.
2470         (decode_switches): Under -v, do print_version before giving usage.
2471         (DESCRIPTION_COLUMN): New macro.
2472         (decode_switches): Use it when printing the usage message.
2473         Leave at least two spaces between options and their descriptions.
2475 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2477         * Version 3.62.20.
2479 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2481         * read.c (read_makefile): Save errno value from trying to open
2482         FILENAME, and restore it before erring; otherwise we get the errno
2483         value from the last elt of the search path.
2485 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2487         * main.c (long_option_aliases): Add --stop for -S.
2489         * read.c (word1eq): Do strncmp before dereferencing someplace that
2490         may be out in space.
2492 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2494         * remake.c (notice_finished_file): If all the command lines were
2495         recursive, don't do the touching.
2497         * job.c (start_job_command): Don't check for + here.
2498         * commands.c (chop_commands): Do it here instead.
2500         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2502 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2504         * compatMakefile (objs): Include $(ALLOCA).
2506         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2508 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2510         * read.c (default_include_directories): Add INCLUDEDIR first.
2511         * compatMakefile (includedir): Define.
2512         (defines): Add -D for INCLUDEDIR="$(includedir)".
2514         * read.c (read_makefile): Grok multiple files in `include';
2515         globbing too.
2517         * remake.c (library_search): New function.
2518         (library_file_mtime): Remove function.
2519         (f_mtime): Use library_search instead of library_file_mtime.
2520         * compatMakefile (libdir): Define.
2521         (defines): Add -D for LIBDIR="$(libdir)".
2522         * make.texinfo (Libraries/Search): Document change.
2524         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2526 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2528         * Version 3.62.19.
2530         * main.c (main): Set command_state to cs_finished for temp files
2531         made for stdin makefiles.
2533         * main.c (decode_switches): Don't tell getopt to return non-option
2534         args in order.
2535         Ignore an argument of `-'.
2537 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2539         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2540         the command line and go to the next.
2541         (notice_finished_file): Under -t, touch FILE.
2542         * remake.c (remake_file): Don't touch it here.
2544 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2546         * function.c (pattern_matches): Use temporary for strlen (WORD)
2547         instead of two function calls.
2549         * compatMakefile (LOAD_AVG): Remove variable and comments.
2551 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2553         * make.texinfo (Running): Node renamed to `make Invocation'.
2555 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2557         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2558         NAMELEN != MEMLEN.
2560 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2562         * Version 3.62.18.
2564         * main.c: Don't #include <time.h>; make.h already does.
2566 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2568         * implicit.c (pattern_search): Fixed copying of suffix when building
2569         also_make elts.
2571         * function.c (expand_function: `shell'): Make sure BUFFER is
2572         null-terminated before replacing newlines.
2574         * compatMakefile (mandir): Use man$(manext), not always manl.
2576 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2578         * rule.c (new_pattern_rule): Not static.
2579         * rule.h: Declare it.
2581         * file.c (file_hash_enter): New function, most code from rename_file.
2582         (rename_file): Call it.
2583         * file.h (file_hash_enter): Declare it.
2585         * dep.h: Doc fix.
2587 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2589         * main.c (decode_switches): Handle usage_and_exit when building
2590         long options vector.
2592         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2593         (default_variables): Define CHECKOUT,v (hairy).
2595         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2596         sys_siglist to _sys_siglist.
2598 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2600         * NEWS: Add header and tail copyright info like Emacs NEWS.
2602         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2603         bcopy if already #define'd.
2604         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2605         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2607         * make.h [_AIX]: #pragma alloca first thing.
2609         * job.c (start_waiting_job): Set the command_state to cs_running
2610         when we queue a job on waiting_jobs.
2612 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2614         * variable.c (define_automatic_variables): Use "" instead of nil
2615         for empty value.
2617 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2619         * Version 3.62.17.
2621         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2622         (command_switches): Add -h/--help.
2624 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2626         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2627         * README.template: Mention NEWS.
2628         * CHANGES: Renamed to NEWS.
2630         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2632 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2634         * main.c (main): Set -o files' command_states to cs_finished.
2636         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2637         when tossing a rule.
2639         * main.c (main): Use alloca only in simple local var assignment,
2640         for braindead SGI compiler.
2642         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2643         inconsistent with the number computed when listing them.
2645 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2647         * commands.c (set_file_variables): For $? and $^ elts that are archive
2648         member refs, use member name only.
2650 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2652         * variable.h (struct variable.export): Add new alternative v_ifset.
2653         * variable.c (target_environment): Check for it.
2654         (define_automatic_variables): Set it for MAKEFILES.
2656 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2658         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2659         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2660         (distclean, mostlyclean): New targets.
2662 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2664         * Version 3.62.16.
2666         * compatMakefile (config.status): Remove rule.
2668         * job.c (start_waiting_job): Free C after using C->file, not before.
2670 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2672         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2673         HAVE_* instead of #ifndef *_MISSING.
2674         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2676 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2678         * main.c (main): makelevel>0 or -C implies -w.
2680 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2682         * file.c, job.c, function.c: Don't #include <errno.h>.
2683         make.h: Do it here instead.
2684         * arscan.c (ar_member_touch): Don't declare errno.
2686 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2688         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2690         * remake.c (update_file): If commands or deps are running after
2691         update_file_1 returns, break out of the :: rule (->prev) loop and
2692         just return.
2694         * job.c (job_next_command): New function; code from start_job.
2695         (start_job_command): Renamed from start_job.  Call job_next_command
2696         and recurse for empty command lines and -n.
2697         (start_waiting_job): Call start_job_command, not start_job.
2698         (new_job): Call job_next_command to prime the child structure, and
2699         then call start_waiting_job.
2700         (reap_children): Use job_next_command and start_job_command.
2701         (start_waiting_job): Call start_remote_job_p here, and store its
2702         result in C->remote.  If zero, check the load average and
2703         maybe put C on waiting_jobs.
2704         (start_job_command): Test CHILD->remote rather than calling
2705         start_remote_job_p.  Don't do load avg checking at all here.
2707         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2708         SIGSEGV, SIGFPE or SIGTRAP.
2710         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2711         configure will set it in glob/Makefile.
2713 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2715         * dir.c [DIRENT] (direct): Don't define to dirent.
2716         [! DIRENT] (direct): Define to dirent.
2717         (dir_file_exists_p): Use struct dirent instead of struct direct.
2719         * make.h (getcwd): No space between macro and ( for args!
2721         * job.c (start_job): Don't put the job on waiting_jobs if
2722         job_slots_used==0.
2724         * make.texinfo (Missing): Shortened title.
2726 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2728         * file.c (remove_intermediates): Print "rm" commands under -n.
2730 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2732         * Version 3.62.15.
2734 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2736         * arscan.c [M_UNIX]: #undef M_XENIX.
2738 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2740         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2742 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2744         * compatMakefile (getloadavg.o): Removed special rule.
2745         (CFLAGS): Don't include $(defines).
2746         (.c.o): Define suffix rule.
2747         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2748         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2750         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2752         * make.h (max): Removed.
2753         * expand.c (variable_buffer_output): Don't use it.
2755         * compatMakefile (INSTALL): Define.
2756         (Makefile): New rule to make from Makefile.in.
2757         (srcdir): Define.
2758         (VPATH): Define.
2759         (getloadavg.o, remote.o): Use autoconf $foo< hack.
2761         * commands.c (fatal_error_signal): Removed return.
2763 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2765         * Version 3.62.14.
2767         * make.texinfo (Summary): New node.
2768         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2770         * variable.c (max): Moved to make.h.
2772         * compatMakefile (objs, srcs): Added ar & arscan.
2774         * job.c (start_waiting_job): New function, 2nd half of new_job.
2775         (new_job): Call it.
2776         (start_waiting_jobs): New function.
2777         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2778         of the main loop.
2779         * compatMakefile (objs, srcs): Removed load, added getloadavg.
2781 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2783         * job.c (load_too_high): New function.  Uses getloadavg.
2784         (waiting_jobs): New variable.
2785         (start_job): Don't call wait_to_start_job.  Instead, if
2786         load_too_high returns nonzero, add the child to the
2787         `waiting_jobs' chain and return without starting the job.
2789 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2791         * expand.c (variable_buffer_output): Made global again.
2792         * variable.h: And declare it.
2794         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2795         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2796         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
2797         for a slash in the archive at run time.
2798         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2799         cope with trailing-slash and non-trailing-slash archives.
2801         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2802         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2804         * load.c (load_average) [sgi]: Use sysmp call.
2806         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2807         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2809         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2810         (vfork, VFORK_NAME): Don't define.
2811         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2813         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2814         the each file.  Rearranged PATH_MAX hacking.
2815         * job.c: Rearranged NGROUPS_MAX hacking.
2817         * remake.c (fstat, time): Don't declare.
2819         * compatMakefile (defines): Value is @DEFS@.
2820         (LOADLIBES): Value is @LIBS@.
2821         (extras): Value is @LIBOBJS@.
2822         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2823         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2825         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2827         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2828         (getcwd): Just declare if present.  If not, declare as a macro
2829         using getwd, and declare getwd.
2830         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2831         * main.c (main, log_working_directory): Use getcwd instead of getwd.
2833         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2835         * make.h (SIGHANDLER, SIGNAL): Removed.
2836         (RETSIGTYPE): Define if not #define'd.
2837         * main.c (main): Use signal in place of SIGNAL.
2839         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2841         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2842         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2844         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2845         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2847         * job.c (child_handler), commands.c (fatal_error_signal): Return
2848         RETSIGTYPE instead of int.
2849         * main.c (main): Declare fatal_error_signal and child_handler here
2850         to return RETSIGTYPE; removed top-level decl of former.
2852         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2853         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2855 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2857         * job.c [HAVE_WAITPID]: Test this instead of USG.
2858         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2859         (GID_T): Don't #define.
2860         (search_path): Use gid_t instead of GID_T.
2861         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2862         these individually instead of USG for all.
2863         * make.h (ctime): Don't declare.  #include time.h instead.
2864         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2865         _POSIX_VERSION.
2866         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2867         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2869         * arscan.c: Removed #ifdef mess about string.h et al.
2870         Just #include make.h instead.
2871         * make.h (fstat, atol): Declare.
2873         * commands.c (fatal_error_signal): Don't use sigmask to check for
2874         propagated signals; use ||s instead.
2875         (PROPAGATED_SIGNAL_MASK): Removed.
2876         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2878         * variable.c (variable_buffer, variable_buffer_length,
2879         initialize_variable_output, variable_output): Moved to expand.c;
2880         made all static.
2881         (struct output_state, save_variable_output,
2882         restore_variable_output): Removed.
2883         * expand.c (initialize_variable_output): Put a NUL at the beginning
2884         of the new buffer after allocating it.
2885         (allocated_variable_expand_for_file): Don't use
2886         {save,restore}_variable_output.  Do it by hand instead, keeping
2887         state on the stack instead of malloc'ing it.
2888         (allocated_variable_expand): Removed.
2889         * variable.h (allocated_variable_expand): Define here as macro.
2890         (variable_buffer_output, initialize_variable_output,
2891         save_variable_output, restore_variable_output): Removed decls.
2893         * read.c (conditional_line): For an if cmd, if any elt of the
2894         conditionals stack is ignoring, just push a new level that ignores
2895         and return 1; don't evaluate the condition.
2897 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2899         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2901         * job.c (getdtablesize): Don't declare or #define if already #define'd.
2903 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2905         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2906         export_all_variables.
2907         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2909 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2911         * Version 3.62.13.
2913         * commands.c (set_file_variables): Calculate length for ^D and ?D
2914         individually, making sure to give them at least enough space for "./".
2916         * make.h [CRAY]: #define signal to bsdsignal.
2918         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2919         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2921         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2922         wasn't defined by <ar.h>.
2924 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2926         * Version 3.62.12.
2928 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2930         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2931         pattern_rules.
2933 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2935         * main.c (decode_switches): Initialize all the long_option elt members.
2937 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2939         * make.texinfo (Text Functions): Correct filter-out description.
2941 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2943         * compatMakefile (realclean): Don't remove backup files.
2945         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
2947 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2949         * Version 3.62.11.
2951 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2953         * job.c (reap_children): Don't die if wait returns EINTR.
2955 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2957         * job.c (reap_children): Always run the next command for a
2958         successful target.  If we are going to die, we don't want to leave
2959         the target partially made.
2961 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2963         * job.c (construct_command_argv_internal): After loop, if we only
2964         have one word, check it for being a shell command.
2966         * main.c (decode_switches): Allocate ARGC slots in other_args to
2967         begin with, so we never need to worry about growing it.
2968         If we get a non-option arg and POSIXLY_CORRECT is in the
2969         environment, break out of the loop.  After the loop, add all remaining
2970         args to other_args list.
2972         * main.c (decode_switches): For positive_int and floating switches
2973         when optarg is nil, use next arg if it looks right (start with a
2974         digit, or maybe decimal point for floating).
2976         * variable.c (define_automatic_variables): Always set SHELL to
2977         default if it comes from the environment.  Set its export bit.
2978         * make.texinfo (Environment): Document change.
2980 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2982         * Version 3.62.10.
2984         * compatMakefile (tags, TAGS): Use vars for cmds.
2985         (ETAGS, CTAGS): Define.
2987         * main.c (decode_switches): If a switches elt has a nil long_name,
2988         make the long option name elt be "".
2989         Fixed loop to not ignore all the options.
2991         * make.texinfo (Option Summary): Added long options.
2993         * main.c (switches): Changed -m's description to "-b".
2994         (decode_switches): When printing the usage message, don't print
2995         switches whose descriptions start with -.
2996         When constructing the list of names for switch -C, search the
2997         switches vector for switches whose descriptions are "-C".
2999         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
3000         Call -I --include-dir, not --include-path.
3001         (long_option_aliases): Added --new == -W, --assume-new == -W,
3002         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
3003         --makefile == -f.
3005         * main.c (switches): Removed bogus "silent" elt.
3006         (long_option_aliases): Define new var.
3007         (decode_switches): Add long_option_aliases onto the end of the long
3008         options vector created for getopt_long.
3009         Look through long_option_aliases for extra names to list
3010         in usage message.
3012 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3014         * main.c (log_working_directory): Fixed to properly not print the
3015         leaving message when we haven't printed the entering message.
3017 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3019         * main.c (struct command_switch): Added elts `long_name',
3020         `description', and `argdesc'.
3021         (switches): Added initializers for new members.
3022         (decode_switches): Rewritten to use getopt_long.
3023         * compatMakefile (GETOPT, GETOPT_SRC): Define.
3024         (objs, srcs): Include them.
3026         * job.c (child_died): Renamed to dead_children; made static.
3027         (child_handler): Increment dead_children instead of setting child_died.
3028         (reap_children): Decrement dead_children instead of clearing
3029         child_died.  The point of all this is to avoid printing "waiting
3030         for unfinished jobs" when we don't actually need to block.
3031         This happened when multiple SIGCHLDs before reap_children was called.
3033         * job.c (reap_children): If ERR is set, so we don't call start_job
3034         on the child being reaped, instead set its command_state to
3035         cs_finished.
3036         (reap_children, child_handler, new_job): I added several
3037         debugging printf's while fixing this.  I left them in if (debug_flag)
3038         because they may be useful for debugging this stuff again.
3040 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3042         * read.c (read_makefile): v_export is not 1.
3044 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3046         * Version 3.62.9.
3048         * variable.c (export_all_variables): New variable.
3049         (target_environment): Export variables whose `export' member is
3050         v_default if export_all_variables is set and their names are benign.
3051         * variable.h: Declare export_all_variables.
3052         * read.c (read_makefile): If export or unexport is given with no
3053         args, set or clear export_all_variables, respectively.
3055         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3056         so it isn't duplicated when we add it at the end.
3058 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3060         * Version 3.62.8.
3062         * variable.h (struct variable): Added new member `export'.
3063         * variable.c (define_variable_in_set): Initialize it to v_default.
3064         (target_environment): Don't check for .NOEXPORT.
3065         Export variables whose `export' member is v_default and that would
3066         have been exported under .NOEXPORT, and variables whose `export'
3067         member is v_export.
3068         (try_variable_definition): Return the variable defined.
3069         * variable.h (try_variable_definition): Changed decl.
3070         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3072 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3074         * main.c (main) [POSIX]: Reversed args to sigaddset.
3076 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3078         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3079         (start_job): Block signals before forking.
3080         (new_job): Unblock signals after putting the new child on the chain.
3081         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3082         int fatal_signal_mask.
3084         * load.c [sgi] (LDAV_CVT): Define.
3086 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3088         * Version 3.62.7.
3090         * load.c (load_average) [sgi]: Clear the high bit of the address
3091         from the symbol table before looking it up in kmem.
3093         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3094         (remake_file): No longer needed in message here.
3096         * main.c (die): Call reap_children with BLOCK==1.
3098 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3100         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3102 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3104         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3105         not to head of chain.  Extract next ptr before we might do
3106         freerule, and use that for next iteration.
3107         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3109 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3111         * job.c (child_error): Removed extra %s from error msg format.
3113         * Version 3.62.6.
3115         * job.c (reap_children): Don't start later commands in a sequence
3116         if ERR is nonzero.
3118         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3120         * job.c (reap_children): New function; work that used to be done in
3121         child_handler.
3122         (child_died): New global var.
3123         (child_handler): Now just sets child_died.
3124         (wait_for_children): Removed.
3125         (unknown_children_possible, block_signals, unblock_signals,
3126         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3127         (child_execute_job): Removed call to unblock_signals.
3128         (new_job): Removed calls to push_signals_blocked_p and
3129         pop_signals_blocked_p.
3130         * job.h: Declare reap_children, not wait_for_children.
3131         * commands.c (fatal_error_signal), job.c (new_job),
3132         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3133         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3134         Changed wait_for_children calls to reap_children.
3135         Some needed to be loops to wait for all children to die.
3136         * commands.c (fatal_error_signal), main.c (main,
3137         log_working_directory), function.c (expand_function): Removed calls
3138         to push_signals_blocked_p and pop_signals_blocked_p.
3139         * job.h: Removed decls.
3141         * job.h: Added copyright notice.
3143 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3145         * job.c (child_error): No *** for ignored error.
3147 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3149         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3150         avoid compiler warnings.
3152         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3153         blank.
3155 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3157         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3158         avoid compiler warnings.
3160         * remake.c (notice_finished_file): Run file_mtime on the also_make
3161         files, so vpath_search can happen.
3163         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3164         (alpha-files): Include test suite tar file.
3166 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3168         * Version 3.62.5.
3170 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3172         * remake.c (update_file, update_file_1): Do check_renamed on elts
3173         of dep chains when traversing them.  Something unrelated might have
3174         renamed one of the files the dep chain points to.
3176         * file.c (rename_file): If FILE has been renamed, follow its
3177         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3178         ones loses because they are not in the hash table, so the removal
3179         code loops infinitely.
3181         * read.c (read_all_makefiles): Clobber null terminator into
3182         MAKEFILES expansion, so string passed to read_makefile is properly
3183         terminated.
3185 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3187         * commands.c (set_file_variables): $* for archive member with
3188         explicit cmds is stem of member, not of whole `lib(member)'.
3190 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3192         * Version 3.62.4.
3194 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3196         * rule.c (new_pattern_rule): Rules are identical only if all their
3197         targets match (regardless of order).
3199 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3201         * remake.c (remake_file): Changed error "no way to make" to "no
3202         rule to make".  Fiat Hugh.
3204         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3205         behavior.
3207         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3208         target.
3210 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3212         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3213         environment to pass to child.
3214         * job.c (start_job): Pass it.
3216 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3218         * file.c (enter_file): Also strip ./s here, to get command-line
3219         target names.
3221         * remote-cstms.c: Add comment telling people to leave me alone.
3223         * compatMakefile (manpage install): Remove target before copying.
3225 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3227         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3228         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3230 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3232         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3233         Use vfork instead of fork.
3235 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3237         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3238         intermediate files.
3240         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3242 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3244         * Version 3.62.3.
3246 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3248         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3250 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3252         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3254         * read.c (record_files): Pass arg for %s in error msg.
3256         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3257         call.
3259 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3261         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3263 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3265         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3267 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3269         * Version 3.62.2.
3271 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3273         * job.c (construct_command_argv_internal): Correctly ignore
3274         whitespace after backslash-NL.
3276 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3278         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3280 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3282         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3283         allocate space so as not to clobber past the end of the old string.
3285         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3286         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3288 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3290         * make.h [VFORK_MISSING]: Use fork instead.
3291         * compatMakefile (defines): Document same.
3293         * job.c (construct_command_argv_internal): Don't create an empty
3294         arg if backslash-NL is at beginning of word.
3296 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3298         * main.c [DGUX]: Call setvbuf as for USGr3.
3300         * job.c (construct_command_argv_internal): Notice correctly that
3301         backslash-NL is the end of the arg (because it is replaced with a
3302         space).
3304 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3306         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3307         to default_shell before proceeding.
3309         * make.h [sgi]: No alloca.h, after all.
3311 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3313         * read.c (multi_glob): Cons up the chain of the results of glob
3314         from back to front, so it comes out in forward order.
3316         * job.c (construct_command_argv_internal): Don't eat char following
3317         backslash-NL.
3319 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3321         * Version 3.62.1.
3323         * default.c (default_variables) [ultrix]: GET=get, like USG.
3325         * job.c (construct_command_argv_internal): Remove tabs following
3326         backslash-NL combos in the input line, so they don't show up when
3327         that line is printed.
3329         * read.c (read_makefile): Don't collapse_continuations the line on
3330         input; do it on the copy we do remove_comments on.
3331         For rule lines, collapse_continuations the line after chopping
3332         ";cmds" off the end, so we don't eat conts in the cmds.
3333         Give error for ";cmds" with no rule.
3334         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3335         when constructing the line to recurse on for slow, too.
3337 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3339         * file.c (enter_file): Don't strip leading `./'s.
3340         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3341         * default.c (set_default_suffixes), function.c (string_glob),
3342         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3344         * default.c (default_variables) [_IBMR2]: FC=xlf
3346         * job.c (construct_command_argv_internal): Turn backslash-NL and
3347         following whitespace into a single space, rather than just eating
3348         the backslash.
3350         * make.texinfo (Copying): @include gpl.texinfo, rather than
3351         duplicating its contents.
3353 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3355         * job.c (construct_command_argv_internal): Make sure not to bother
3356         processing an empty line.
3358         * Version 3.62.0.
3360         * job.c (construct_command_argv_internal): Always recurse for slow;
3361         simple case didn't handle finding newlines.
3363 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3365         * job.c (construct_command_argv_internal): Set RESTP properly when
3366         slow; don't \ify past a newline.
3368 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3370         * make.h [sgi]: #include <alloca.h>.
3374 See ChangeLog.1 for earlier changes.