* Various fixes for problems in the 3.79.0.1 pretest.
[make.git] / ChangeLog
blobb88026b442275ba9198504515912a6c3a530627c
1 2000-06-19  Paul D. Smith  <psmith@gnu.org>
3         * function.c (handle_function): If the last argument was empty, we
4         were pretending it didn't exist rather than providing an empty
5         value.  Keep looking until we're past the end, not just at the end.
7         * implicit.c (pattern_search): Multi-target implicit rules weren't
8         expanding the "also made" targets correctly if the pattern didn't
9         contain a slash but the target did; in that case the directory
10         part wasn't being added back to the stem on the "also made"
11         targets.  Reported by Seth M LaForge <sethml@newtonlabs.com>, with
12         a patch.
14 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
16         * Makefile.DOS.template (DESTDIR, bindir, datadir, libdir)
17         (infodir, mandir, includedir): Support installation under a
18         non-default DESTDIR.
20         * remake.c (f_mtime): Fix the spelling of __MSDOS__.
22         * configh.DOS.template (HAVE_FDOPEN, HAVE_MKSTEMP): Define.
24 2000-06-14  Paul D. Smith  <psmith@gnu.org>
26         * acinclude.m4 (pds_WITH_GETTEXT): rewrite fp_WITH_GETTEXT and
27         rename it to avoid confusion.  This version is very specific: it
28         won't accept any gettext that isn't GNU.  If the user doesn't
29         explicitly ask for the included gettext, we look to see if the
30         system gettext is GNU (testing both the actual libintl library,
31         and the libintl.h header file).  Only if the system gettext is
32         really GNU gettext will we allow it to be used.
33         (pds_CHECK_SYSTEM_GETTEXT): A helper function.
35 2000-06-13  Paul D. Smith  <psmith@gnu.org>
37         * gettext.h: If we have libintl.h, use that instead of any of the
38         contents of gettext.h.  We won't check for libintl.h unless we're
39         using the system gettext.
41         * function.c (func_word): Clarify error message.
43 2000-06-10  Paul Eggert  <eggert@twinsun.com>
45         Support nanosecond resolution on hosts with 64-bit time_t and
46         uintmax_t (e.g. 64-bit Sparc Solaris), by splitting
47         FILE_TIMESTAMP into a 30-bit part for nanoseconds, with the
48         rest for seconds, if FILE_TIMESTAMP is at least 64 bits wide.
50         * make.h: Always define FILE_TIMESTAMP to be uintmax_t, for
51         simplicity.
53         * filedef.h (FILE_TIMESTAMP_HI_RES, FILE_TIMESTAMP_LO_BITS)
54         (UNKNOWN_MTIME, NONEXISTENT_MTIME, OLD_MTIME)
55         (ORDINARY_MTIME_MIN, ORDINARY_MTIME_MAX): New macros.
56         (FILE_TIMESTAMP_STAT_MODTIME): Now takes fname arg.  All uses changed.
57         (FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD)
58         (FILE_TIMESTAMP_FROM_S_AND_NS): Remove.
59         (FILE_TIMESTAMP_S, FILE_TIMESTAMP_NS): Use shifts instead of
60         multiplication and division.  Offset the timestamps by
61         ORDINARY_MTIME_MIN.
62         (file_timestamp_cons): New decl.
63         (NEW_MTIME): Now just the maximal timestamp value, as we no longer use
64         -1 to refer to nonexistent files.
66         * file.c (snap_deps, print_file): Use NONEXISTENT_MTIME,
67         UNKNOWN_MTIME, and OLD_MTIME instead of magic constants.
68         * filedef.h (file_mtime_1): Likewise.
69         * main.c (main): Likewise.
70         * remake.c (update_file_1, notice_finished_file, check_dep)
71         (f_mtime, name_mtime, library_search): Likewise.
72         * vpath.c (selective_vpath_search): Likewise.
74         * remake.c (f_mtime): Do not assume that (time_t) -1 equals
75         NONEXISTENT_MTIME.  When futzing with time stamps, adjust by
76         multiples of 2**30, not 10**9.  Do not calculate timestamp
77         adjustments on DOS unless they are needed.
79         * commands.c (delete_target): Do not assume that
80         FILE_TIMESTAMP_S yields -1 for a nonexistent file, as that is
81         no longer true with the new representation.
83         * file.c (file_timestamp_cons): New function, replacing
84         FILE_TIMESTAMP_FROM_S_AND_NS.  All uses changed.
85         (file_timestamp_now): Use FILE_TIMESTAMP_HI_RES instead of 1 <
86         FILE_TIMESTAMPS_PER_S to determine whether we're using hi-res
87         timestamps.
88         (print_file): Print OLD_MTIME values as "very old" instead of
89         as a timestamp.
91 2000-05-31  Paul Eggert  <eggert@twinsun.com>
93         * remake.c (name_mtime): Check for stat failures.  Retry if EINTR.
95 2000-05-24  Paul D. Smith  <psmith@gnu.org>
97         * main.c (decode_switches): The "positive_int" switch uses atoi()
98         which succeeds for any input, and doesn't notice if extra,
99         non-digit text is after the number.  This causes make to mis-parse
100         command lines like "make -j 5foo" as "make -j5" (ignoring "foo"
101         completely) instead of "make -j0 5foo" (where "5foo" is a
102         target).  Fix this by checking the value by hand.  We could use
103         strtol() if we were sure of having it; this is the only
104         questionable use of atoi() I found so we'll just stick with that.
105         Fixes PR/1716.
107         * i18n/ja.po, i18n/nl.po, i18n/pt_BR.po: New translation files.
108         * configure.in (ALL_LINGUAS): Added pt_BR.
110 2000-05-22  Paul Eggert  <eggert@twinsun.com>
112         * remake.c (f_mtime): Fix bug when handling future odd
113         timestamps in the WINDOWS32 case.  Do not bother initializing
114         static var to zero.  Simplify code that works around WINDOWS32
115         and __MSDOS__ time skew brain damage.
117 2000-05-22  Paul Eggert  <eggert@twinsun.com>
119         * job.c: Don't include time.h, as make.h already does this.
121 2000-05-22  Paul Eggert  <eggert@twinsun.com>
123         * configure.in (AC_CHECK_HEADERS): Add sys/time.h.
124         (AC_HEADER_TIME): Add.
125         (clock_gettime): Prefer -lrt to -lposix4, for Solaris 7.
126         (gettimeofday): Add check for standard version of gettimeofday.
127         This merges changes written by Paul D. Smith.
129         * file.c (file_timestamp_now):  Use gettimeofday if available
130         and if clock_gettime does not work.  Don't bother with
131         high-resolution clocks if file timestamps have only one-second
132         resolution.
134         * make.h <sys/time.h>: Include, conditionally on the usual
135         TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H macros.  This is needed
136         for gettimeofday.
138 2000-05-20  Paul D. Smith  <psmith@gnu.org>
140         * read.c (read_makefile): We weren't keeping makefile names around
141         unless there was a rule defined in them; but now we need to keep
142         them for variables as well.  Forget trying to be fancy: just keep
143         every makefile name we successfully open.
145         * remote-cstms.c (start_remote_job_p): Change DB_EXTRA (?) to DB_JOBS.
147 2000-05-17  Paul Eggert  <eggert@twinsun.com>
149         * commands.c (chop_commands): Ensure ctype macro args are nonnegative.
150         * expand.c (variable_expand_string): Likewise.
151         * function.c (subst_expand, lookup_function, msdos_openpipe):
152         Likewise.
153         * job.c (vms_redirect, start_job_command, new_job, child_execute_job,
154         construct_command_argv_internal, construct_command_argv): Likewise.
155         * main.c (decode_env_switches, quote_for_env): Likewise.
156         * misc.c (collapse_continuations, end_of_token, end_of_token_w32,
157         next_token): Likewise.
158         * read.c (read_makefile, do_define, conditional_line,
159         find_char_unquote,get_next_mword): Likewise.
160         * variable.c (try_variable_definition): Likewise.
161         * vpath.c (construct_vpath_list): Likewise.
162         * w32/pathstuff.c (convert_vpath_to_windows32): Likewise.
164 2000-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
166         * main.c (main) [__MSDOS__]: Add SIGFPE to signals we block when
167         running child programs, to prevent Make from dying on Windows 9X
168         when the child triggers an FP exception.
170 2000-05-08  Paul D. Smith  <psmith@gnu.org>
172         * dir.c (find_directory) [WINDOWS32]: If we strip a trailing "\"
173         from the directory name, remember to add it back.  The argument
174         might really be inside a longer string (e.g. %Path%) and if you
175         don't restore the "\" it'll be truncated permanently.  Fixes PR/1722.
176         Reported by <steven@surfcast.com>
178 2000-05-02  Paul D. Smith  <psmith@gnu.org>
180         * job.c (construct_command_argv_internal) [WINDOWS32]: Added "rd"
181         and "rmdir" to the list of command.com commands.
182         Reported by Elod Horvath <Elod_Horvath@lnotes5.bankofny.com>
184 2000-04-24  Paul D. Smith  <psmith@gnu.org>
186         * i18n/ja.po: New translation file from the Japanese language team.
188 2000-04-18  Paul D. Smith  <psmith@gnu.org>
190         * remake.c (f_mtime): If ar_member_date() returns -1 (the member
191         doesn't exist), then return (FILE_TIMESTAMP)-1 rather than
192         returning the timestamp calculated from the value -1.  Fixes PR/1696.
193         Reported by Gilles Bourhis <Gilles.Bourhis@univ-rennes1.fr>.
195 2000-04-17  Paul D. Smith  <psmith@gnu.org>
197         * config.h.W32.template: Add LOCALEDIR macro resolving to "".
198         * w32/subproc/sub_proc.c (process_begin): Remove reference to
199         debug_flag; change it to a DB() call.  Fixes PR/1700.
200         Reported by Jim Smith <jwksmith@attglobal.net>
202 2000-04-17  Bruno Haible  <haible@clisp.cons.org>
204         * arscan.c [BeOS]: Add replacement for nonexistent <ar.h> from GNU
205         binutils.
207 2000-04-11  Paul D. Smith  <psmith@gnu.org>
209         * function.c (expand_builtin_function): If no arguments were
210         provided, just quit early rather than changing each function to
211         test for this.
212         (function_table[]): Change the min # of arguments to 0 for all
213         those functions for which it makes sense (currently everything
214         that used to take a minimum of 1 argument, except $(call ...)).
215         Fixes PR/1689.
217 2000-04-09  Eli Zaretskii  <eliz@is.elta.co.il>
219         * README.DOS: Add instructions to install a binary distro.
220         Mention latest versions of Windows.
222 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
224         * main.c (main): Rename TMP_TEMPLATE into DEFAULT_TMPDIR, and use
225         it for the directory of the temporary file.  If P_tmpdir is
226         defined, use it in preference to "/tmp/".  Try $TMPDIR, $TEMP, and
227         $TMP in the environment before defaulting to DEFAULT_TMPDIR.
228         (print_version): Add year 2000 to the Copyright line.
230 2000-04-04  Paul D. Smith  <psmith@gnu.org>
232         * Version 3.79 released.
234         * make.texinfo: Update documentation with new features for 3.79.
236         * function.c (func_wordlist): Don't re-order arguments to
237         wordlist.
239 2000-04-03  Paul D. Smith  <psmith@gnu.org>
241         * remake.c (f_mtime): Archive member timestamps are stored as
242         time_t, without nanoseconds.  But, f_mtime() wants to return
243         nanosecond info on those systems that support it.  So, convert the
244         return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
245         the nanoseconds.
247 2000-03-28  Paul D. Smith  <psmith@gnu.org>
249         * Version 3.78.92 released.
251         * build.template: Updates for gettext support; some bugs fixed.
253 2000-03-27  Paul D. Smith  <psmith@gnu.org>
255         * config.guess, config.sub: Updated from config CVS archive at
256         :pserver:anoncvs@subversions.gnu.org:/home/cvs as of today.
258         * read.c (record_files): Check if expanding a static pattern
259         rule's prerequisite pattern leaves an empty string as the
260         prerequisite, and issue an error if so.  Fixes PR/1670.
261         (read_makefile): Store the starting linenumber for a rule in
262         TGTS_STARTED.
263         (record_waiting_files): Use the TGTS_STARTED value for the file
264         location passed to record_file() instead of the current
265         linenumber, so error messages list the line where the target was
266         defined instead of the line after the end of the rule definition.
268         * remake.c (start_updating, finish_updating, is_updating): Fix
269         PR/1671; circular dependencies in double-colon rules are not
270         diagnosed.  These macros set the updating flag in the root
271         double-colon file instead of the current one, if it's part of a
272         double-colon list.  This solution provided by Tim Magill
273         <magill@gate.net>; I just changed the macro names :).
274         (update_file_1): Call them.
275         (check_dep): Call them.
277         The change to not automatically evaluate the $(call ...)
278         function's arguments breaks recursive use of call.  Although using
279         $(if ...) and $(foreach ...) in $(call ...) macros is important,
280         the error conditions generated are simply to obscure for me to
281         feel comfortable with.  If a method is devised to get both
282         working, we'll revisit.  For now, remove this change.
284         * function.c (function_table): Turn on the expand bit for func_call.
285         (func_call): Don't expand arguments for builtin functions; that
286         will have already been done.
288 2000-03-26  Paul D. Smith  <psmith@gnu.org>
290         * file.c (remove_intermediates): Never remove targets explicitly
291         requested on the command-line by checking the cmd_target flag.
292         Fixed PR/1669.
294 2000-03-23  Paul Eggert  <eggert@twinsun.com>
296         * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Use st_mtime instead of
297         st_mtim.tv_sec; the latter doesn't work on Unixware.
299 2000-03-18  Paul D. Smith  <psmith@gnu.org>
301         * file.c (file_hash_enter): If we're trying to change a file into
302         itself, just return.  We used to assert this wasn't true, but
303         someone came up with a weird case involving archives.  After
304         playing with it for a while I decided it was OK to ignore it.
306         * default.c: Define COFLAGS to empty to avoid spurious warnings.
308         * filedef.h: Change #if ST_MTIM_NSEC to #ifdef; this is a macro
309         containing the name of the nsec field, not true/false.
310         * make.h: Ditto.
311         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
313 2000-03-08  Tim Magill  <magill@gate.net>
315         * remake.c (update_file): Return the exit status of the pruned
316         file when pruning, not just 0.  Fixes PR/1634.
318 2000-02-24  Paul D. Smith  <psmith@gnu.org>
320         * configure.in: Close a minor potential security hole; if you're
321         reading makefiles from stdin (who does that?) you could run into a
322         race condition with the temp file using mktemp() or tmpnam().  Add
323         a check for mkstemp() and fdopen().
324         * main.c (open_tmpfile): New function to open a temporary file.
325         If we have mkstemp() (and fdopen()), use that.  If not use
326         mktemp() or tmpnam().  If we have fdopen(), use open() to open the
327         file O_CREAT|O_EXCL.  If not, fall back to normal fopen() (insecure).
328         (main): Call it.
329         * job.c (child_execute_job) [VMS]: Call it.
331         * variable.c (lookup_variable): If we find a variable which is
332         being expanded, then note it but keep looking through the rest of
333         the set list to see if we can find one that isn't.  If we do,
334         return that.  If we don't, return the original.  Fix for PR/1610.
336         While implementing this I realized that it also solves PR/1380 in
337         a much more elegant way.  I don't know what I was smoking before.
338         So, remove the hackage surrounding the original fix for that (see
339         below).  Change this function back to lookup_variable and remove
340         the extra setlist argument.
341         * variable.h (recursively_expand_setlist): Remove the macro,
342         rename the prototype, and remove the extra setlist argument.
343         (lookup_variable): Ditto.
344         * expand.c (recursively_expand): Rename and remove the extra
345         setlist argument.
346         (reference_variable): Use lookup_variable() again.
347         (allocated_variable_append): Remove the extra setlist argument.
349 2000-02-21  Paul D. Smith  <psmith@gnu.org>
351         * README.template: A few updates.
353         * i18n/de.po: New version from the German translation team.
355 2000-02-09  Paul D. Smith  <psmith@gnu.org>
357         * Version 3.78.91 released.
359 2000-02-07  Paul D. Smith  <psmith@gnu.org>
361         * read.c (read_makefile): Reset *p2 to ':', not *colonp.  If any
362         filenames contained backslashes the resulting output (without
363         backslashes) will be shorter, so setting *colonp doesn't change
364         the right character.  Fix for PR/1586.
366         For += target-specific variables we need to remember which
367         variable set we found the variable in, so we can start looking
368         from there in the next iteration (otherwise we might see it again
369         in recursively_expand and fail!).  This is turning into a hack; if
370         it gets any worse we'll have to rethink this entire algorithm...
371         implementing expansion of these references separately from the
372         "normal" expansion, say, instead of using the same codepath.
373         Actually, it's already "worse enough" :-/.
374         Fix for PR/1380.
376         * variable.h (recursively_expand_setlist): Rename
377         recursively_expand to add a struct variable_set_list argument, and
378         make a macro for recursively_expand.
379         (lookup_variable_setlist): Rename lookup_variable to add a struct
380         variable_set_list argument, and make a macro for lookup_variable.
382         * expand.c (recursively_expand_setlist): Take an extra struct
383         variable_set_list argument and pass it to allocated_variable_append().
384         (reference_variable): Use lookup_variable_setlist() and pass the
385         returned variable_set_list to recursively_expand_setlist.
386         (allocated_variable_append): Take an extra setlist argument and
387         use this as the starting place when searching for the appended
388         expansion.  If it's null, use current_variable_set_list as before.
390         * variable.c (lookup_variable_setlist): If the LISTP argument is
391         not nil, set it to the list containing the variable we found.
393 2000-02-04  Paul D. Smith  <psmith@gnu.org>
395         * variable.c (print_variable): Write out filename/linenumber
396         information for the variable definition if present.
397         (define_variable_in_set): Store filename information if provided.
398         (define_variable, define_variable_for_file): Removed.
399         (try_variable_definition): Use define_variable_loc() to keep
400         variable definition location information.
401         * read.c (read_makefile): Keep variable definition location info.
402         (do_define): Ditto.
403         (record_target_var): Ditto.
404         * variable.h (define_variable_in_set): New fileinfo argument.
405         (define_variable, define_variable_loc, define_variable_for_file):
406         Declare new macros.
408         Fix PR/1407:
410         * filedef.h (struct file): Rename patvar to pat_variables and make
411         it just a variable_set_list; we need our own copy of the pattern
412         variable's variable set list here to avoid overwriting the global
413         one.
414         * variable.c (initialize_file_variables): Move the instantiation
415         of the pat_variables pointer here.  Only do the search after we're
416         done reading the makefiles so we don't search too early.  If
417         there's a pat_variables value, set up the variables next ptr.
418         * expand.c (variable_expand_for_file): Remove the setup of the
419         pat_variables info; it's done earlier now to ensure the parent's
420         pattern variables are set up correctly as well.
422 2000-02-03  Paul D. Smith  <psmith@gnu.org>
424         * job.c (sh_chars_dos) [WINDOWS32]: Add "&" as a shell
425         metacharacter for the W32 DOS shell.
426         Reported by Warren Jones <wjones@tc.fluke.com>.
428 2000-02-02  Paul D. Smith  <psmith@gnu.org>
430         Fixes for the OpenVMS port from Hartmut Becker <becker@rto.dec.com>
432         * config.h-vms [VMS]: Define LOCALEDIR to something; needed for
433         the expansion of bindtextdomain() even though it's a no-op.
434         * vmsfunctions.c (strcmpi): Remove duplicate definition of strcmpi().
435         (readdir): Use DB() instead of testing debug_flag.
436         * dir.c (file_impossible) [VMS]: Search "p" not "name".
437         * job.c [VMS]: Switch from debug_flag to the new DB macro.  Add
438         some i18n _() macros (even though VMS doesn't yet support it).
440         * function.c (patsubst_expand): Change "len" to not be unsigned to
441         avoid type mismatches.
443         * main.c (main): Declare signame_init() if we're going to call it.
445 2000-01-29  Eli Zaretskii  <eliz@is.elta.co.il>
447         * Makefile.DOS.template: Track changes in Makefile.in
448         (install-recursive, uninstall-recursive): Add missing targets.
449         (DESTDIR): Define.
450         (install-binPROGRAMS, uninstall-binPROGRAMS): Use $(DESTDIR).
452         * default.c (default_variables) [__MSDOS__]: Define CXX to gpp.
454 2000-01-27  Paul D. Smith  <psmith@gnu.org>
456         * gettext.c: Some warning cleanups, and a fix for systems which
457         don't define HAVE_ALLOCA (the workaround code was included
458         twice).
460 2000-01-26  Paul D. Smith  <psmith@gnu.org>
462         * Version 3.78.90 released.
464 2000-01-25  Paul D. Smith  <psmith@gnu.org>
466         Change gettext support to use the simplified version in libit 0.7.
468         * getopt.c, make.h: Use gettext.h instead of libintl.h.
469         * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
470         Modified to remove some static declarations which aren't defined.
471         * acconfig.h: Use new gettext #defines.
472         * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
473         * configure.in: Call fp_WITH_GETTEXT instead.
474         * Makefile.am: New gettext stuff.  Also force inclusion of glob
475         files for systems which have LIBC glob.
477         * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
478         * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
479         * i18n/pl.po, i18n/ru.po: Import translations already done for
480         earlier versions of GNU make.  Thanks for that work!!
482         * po/Makefile.in.in, po/POTFILES.in: Removed.
484 2000-01-23  Paul D. Smith  <psmith@gnu.org>
486         * main.c (decode_debug_flags): If debug_flag is set, enable all
487         debugging levels.
488         (debug_flag): Resurrect this flag variable.
489         (switches): Make -d give the old behavior of turning on all
490         debugging.  Change --debug alone to emit basic debugging and take
491         optional arguments to expand debugging.
492         * NEWS: Document the new debugging options.
494         * remake.c (no_rule_error): Remove this function.  This tries to
495         fix a real problem--see the description with the introduction of
496         this function below.  However, the cure is worse than the disease
497         and this approach won't work.
498         (remake_file): Put the code from no_rule_error back here.
499         (update_file_1): Remove call to no_rule_error.
501         * filedef.h (struct file): Remove mfile_status field.
503 2000-01-22  Paul D. Smith  <psmith@gnu.org>
505         Integrate GNU gettext support.
507         * configure.in: Add AM_GNU_GETTEXT.
508         * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
509         * acinclude.m4: Add gettext autoconf macros.
510         * acconfig.h: Add new gettext #defines.
511         * make.h: Include libintl.h.  Make sure _() and N_() macros are
512         declared.  Make gettext() an empty macro is NLS is disabled.
513         * main.c (struct command_switch switches[]): Can't initialize
514         static data with _() (gettext calls), so use N_() there then use
515         gettext() directly when printing the strings.
516         * remake.c (no_rule_error): The string constants can't be static
517         when initializing _() macros.
518         * file.c (print_file): Reformat a few strings to work better for
519         translation.
520         * po/POTFILES.in, po/Makefile.in.in: New files.  Take
521         Makefile.in.in from the latest GNU tar distribution, as that
522         version works better than the one that comes with gettext.
523         * NEWS: Mention i18n ability.
525 2000-01-21  Paul D. Smith  <psmith@gnu.org>
527         Installed patches for the VMS port.
528         Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
530         * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
531         * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
532         * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
533         * glob/glob.h: Installed patches.  See readme.vms for details.
535 2000-01-14  Andreas Schwab  <schwab@suse.de>
537         * dir.c (read_dirstream): Initialize d_type if it exists.
539 2000-01-11  Paul D. Smith  <psmith@gnu.org>
541         Resolve PR/xxxx: don't automatically evaluate the $(call ...)
542         function's arguments.  While we're here, clean up argument passing
543         protocol to always use simple nul-terminated strings, instead of
544         sometimes using offset pointers to mark the end of arguments.
545         This change also fixes PR/1517.
546         Reported by Damien GIBOU <damien.gibou@st.com>.
548         * function.c (struct function_table_entry): Remove the negative
549         required_args hack; put in explicit min and max # of arguments.
550         (function_table): Add in the max value.  Turn off the expand bit
551         for func_call.
552         (expand_builtin_function): Test against minimum_args instead of
553         the obsolete required_args.
554         (handle_function): Rewrite this.  We don't try to be fancy and
555         pass one style of arguments to expanded functions and another
556         style to non-expanded functions: pass pointers to nul-terminated
557         strings to all functions.
558         (func_call): Rewrite this.  If we are invoking a builtin function
559         and it's supposed to have its arguments expanded, do that (since
560         it's not done by handle_function for $(call ...) anymore).  For
561         non-builtins, just add the variables as before but mark them as
562         recursive so they'll be expanded later, as needed.
563         (func_if): All arguments are vanilla nul-terminated strings:
564         remove trickery with "argv[1]-1".
565         (func_foreach): Ditto.
567         * expand.c (expand_argument): If the second arg is NULL, expand
568         the entire first argument.
570         * job.c (new_job): Zero the child struct.  This change was just
571         made to keep some heap checking software happy, not because there
572         was an actual bug (the important memory was being cleared properly).
574 1999-12-15  Paul D. Smith  <psmith@gnu.org>
576         * variable.c (print_variable): Print the variable with += if the
577         append flag is set.
579         * implicit.c (pattern_search): Remove the extra check of the
580         implicit flag added on 8/24/1998.  This causes problems and the
581         reason for the change was better resolved by the change made to
582         check_deps() on 1998-08-26.  This fixes PR/1423.
584 1999-12-08  Paul D. Smith  <psmith@gnu.org>
586         * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
587         in LFS mode, stat() is actually a macro for stat64().  Assignment
588         doesn't work in that case.  So, stat is a macro, make a local
589         wrapper function to invoke it.
590         (local_stat): Wrapper function, if needed.
591         Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
593 1999-12-02  Paul D. Smith  <psmith@gnu.org>
595         * remake.c (update_file): Move the considered test outside the
596         double-colon loop, _but_ make sure we test the double_colon target
597         not the "current" target.  If we stop early because one
598         double-colon target is running, mark all the rest considered and
599         try to start their prerequisites (so they're marked considered).
600         Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
602 1999-11-22  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
604         * function.c (windows32_openpipe, func_shell): Correct Windows32
605         problem where $(shell nosuchfile) would incorrectly exit make. The
606         fix is to print the error and let make continue.
607         Reported by David Masterson <David.Masterson@kla-tencor.com>.
609         * w32/subproc/misc.c (arr2envblk): Memory leak fix.
611 1999-11-21  Paul D. Smith  <psmith@gnu.org>
613         Rework GNU make debugging to provide different levels of output.
615         * NEWS: mention it.
616         * debug.h: New file.  Define various debugging levels and macros.
617         * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
618         * remote-cstms.c, vmsfunctions.c: Replace all code depending on
619         debug_flag with invocations of debugging macros.
620         * make.h: Remove debug_flag and DEBUGPR, add db_level.
622 1999-11-18  Paul Eggert  <eggert@twinsun.com>
624         * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
625         with the QNX 4.25 shell, which doesn't propagate exit status of
626         failed commands inside shell assignments.
628 1999-11-17  Paul D. Smith  <psmith@gnu.org>
630         * function.c (func_if): Find the end of the arg list by testing
631         the next item for NULL; any other test is not correct.
632         Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
634         Fix += when used in a target-specific variable context.
636         * variable.h: New bitfield APPEND set if we have a +=
637         target-specific variable.
639         * variable.c (try_variable_definition): Add an argument to specify
640         if we're trying a target-specific variable.  If we are and it's an
641         append style, don't append it, record it as normal recursive, but
642         set the APPEND flag so it'll be expanded later.
643         * main.c (handle_non_switch_argument): Use new
644         try_variable_definition() signature.
645         * read.c (read_makefile,record_target_var): Ditto.
647         * expand.c (allocated_variable_append): New function: like
648         allocated_variable_expand(), but we expand the same variable name
649         in the context of the ``next'' variable set, then we append this
650         expanded value.
651         (recursively_expand): Invoke it, if the APPEND bit is set.
653 1999-11-10  Paul D. Smith  <psmith@gnu.org>
655         * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
656         off parallel builds for this make only (still allow submakes to be
657         run in parallel).
658         * main.c: New variable, ``not_parallel''.
659         * make.h: Add an extern for it.
660         * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
661         * NEWS: Add info on .NOTPARALLEL.
662         * make.texinfo (Special Targets): Document it.
664         * configure.in (GLOBDIR): Set to "glob" if we need to build the
665         glob library.
666         * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
667         "glob" so we don't try to build glob if we don't need to (if we
668         have GLIBC glob).  Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
670         * main.c (main): Don't put "***" in the clock skew warning
671         message.  Reported by karl@gnu.org.
673         * make.h: Remove unneeded signal setup.
675         * signame.c: Remove extraneous #includes; some versions of Ultrix
676         don't protect against multiple inclusions and it causes compile
677         errors.  Reported by Simon Burge <simonb@thistledown.com.au>.
679 1999-10-15  Paul D. Smith  <psmith@gnu.org>
681         * main.c (quote_for_env): Rename from quote_as_word().
683         * make.h, *.c: Prefer strchr() and strrchr() in the code
684         rather than index() and rindex().  Define strchr/strrchr in terms
685         of index/rindex if the former aren't supported.
687         * default.c (CHECKOUT,v): Replace the fancy, complicated
688         patsubst/filter expression with a simple $(if ...) expression.
690         * main.c (print_usage): Add the bug reporting mailing address to
691         the --help output, as per the GNU coding standards.
692         Reported by Paul Eggert <eggert@twinsun.com>.
694         * README.customs: Installed information on running Customs-ized
695         GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
697         * read.c (read_all_makefiles): PR/1394: Mark the end of the next
698         token in the MAKEFILES value string _before_ we dup it.
700 1999-10-13  Paul D. Smith  <psmith@gnu.org>
702         * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
703         flag to CPPFLAGS, but that loses if the user specifies his own
704         CPPFLAGS; this one gets added _after_ his and if he happens to
705         have an old or broken glob.h--boom.  Instead, put it in GLOBINC
706         and SUBST it.
708         * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
709         these things get on the compile line well before the user's
710         CPPFLAGS.
712 1999-10-12  Paul D. Smith  <psmith@gnu.org>
714         * remake.c (notice_finished_file): If we get here and -n is set,
715         see if all the command lines are marked recursive.  If so, then we
716         ran every command there is, so check the mtime on this file just
717         like we would normally.  If not, we assume the command we didn't
718         run would updates the target and set mtime of the target to "very new".
720         * job.c (start_job_command): Update lines_flags in the file's cmds
721         structure with any per-line tokens we found (`@', `-', `+').
723 1999-10-08  Paul D. Smith  <psmith@gnu.org>
725         * variable.c (initialize_file_variables): Always recurse to
726         initialize the parent's file variables: the parent might not have
727         any rules to run so it might not have been initialized before
728         this--we need this to set up the chain properly for
729         target-specific variables.
731 1999-09-29  Paul Eggert  <eggert@twinsun.com>
733         * main.c (quote_as_word): Always quote for decode_env_switches
734         instead of for the shell, so that arguments with strange
735         characters are are passed to submakes correctly.  Remove
736         double_dollars arg; we always double dollars now.  All callers
737         changed.
738         (decode_env_switches): Don't run off the end of an environment
739         variable whose contents ends in a unescaped backslash.
741 1999-09-23  Paul D. Smith  <psmith@gnu.org>
743         * commands.c, function.c, job.c, read.c: Cast arguments to
744         ctype.h functions/macros to _unsigned_ char for portability.
746         * remake.c, function.c: Compiler warning fixes: the second
747         argument to find_next_token() should be an _unsigned_ int*.
748         Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
750 1999-09-23  Paul D. Smith  <psmith@gnu.org>
752         * Version 3.78.1 released.
754         * make.texinfo: Update version/date stamp.
756         * main.c (main): Argh.  For some reason we were closing _all_ the
757         jobserver pipes before we re-exec'd due to changed makefiles.
758         This means that any re-exec got a "jobserver unavailable" error :-/.
759         I can't believe we didn't notice this before.
761 1999-09-22  Paul D. Smith  <psmith@gnu.org>
763         * Version 3.78 released.
765         * main.c (main): Only fail on multiple --jobserver-fds options if
766         they aren't all the same.  Some makefiles use things like
767         $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
768         --jobserver-fds to show up.
770 1999-09-16  Paul D. Smith  <psmith@gnu.org>
772         * main.c (define_makeflags): Zero out FLAGSTRING to avoid
773         uninitialized memory reads when checking *p != '-' in the loop.
775 1999-09-15  Paul D. Smith  <psmith@gnu.org>
777         * Version 3.77.97 released.
779         * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
780         makefile.
781         * Makefile.am (check-local): Print a success banner if the check
782         succeeds.
783         (check-regression): A bit of fine-tuning.
785 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
787         * README.DOS.template: Document requirements for the test suite.
788         * Makefile.DOS.template: Updates to allow the test suite to run
789         from "make check".
791         * main.c (main): Handle it if argv[0] isn't an absolute path.
793 1999-09-13  Paul D. Smith  <psmith@gnu.org>
795         * Version 3.77.96 released.
797         * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
798         all the right #defines to compile.
799         (check-regression): Look for the regression test suite in the make
800         package itself.  If we're building remotely, use symlinks to make
801         a local copy.
802         (dist-hook): Put the test suite into the tar file.
804         * configure.in: Look for perl for the test suite.
806 1999-09-10  Paul Eggert  <eggert@twinsun.com>
808         * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
809         later, and using GCC, define __STDC_EXT__; this works around a
810         bug in GCC 2.95.1.
812 1999-09-08  Paul D. Smith  <psmith@gnu.org>
814         * main.c (print_version): Ugh.  GLIBC's configure tries to check
815         make version strings and is too aggressive with their matching
816         expressions.  I've struck a deal with them to leave the version
817         output as-is for 3.78, and they'll change their configure checks
818         so that I can change this back in the future.
820 1999-09-07  Eli Zaretskii  <eliz@is.elta.co.il>
822         * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
823         and "unset" to the list of builtin shell commands.
825         * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
826         which is the canonical name of the DJGPP host.
828 1999-09-05  Paul D. Smith  <psmith@gnu.org>
830         * Version 3.77.95 released.
832         * make.texinfo (Make Errors): Document some new jobserver error
833         messages.
835 1999-09-04  Eli Zaretskii  <eliz@is.elta.co.il>
837         * make.texinfo (Make Errors): Document the hint about 8 spaces
838         instead of a TAB.
839         (Call Function, Quick Reference): Use @code{$(1)}, not @var.
841         * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
842         MS-DOS", since the MSDOS version could run on Windows.
844 1999-09-03  Paul D. Smith  <psmith@gnu.org>
846         * remake.c (notice_finished_file): Always set mtime_before_update
847         if it's not been set, not just if we ran some rules.  Otherwise we
848         may have a situation where a target's prerequisite was rebuilt but
849         not changed, so this target's rules weren't run, then
850         update_goal_chain() sees mtime_before_update != last_mtime and
851         thinks that the top-level target changed when it really didn't.
852         This can cause an infinite loop when remaking makefiles.
853         (update_goal_chain): If we get back to the top and we don't know
854         what the goal's last_mtime was, find it now.  We need to know so
855         we can compare it to mtime_before_update later (this is only
856         crucial when remaking makefiles--should we only do it then?)
858 1999-09-02  Paul D. Smith  <psmith@gnu.org>
860         * read.c (read_makefile): If "override" appears as the first
861         prerequisite, look further to ensure this is really a
862         target-specific variable definition, and not just some
863         prerequisite named "override".
865 1999-09-01  Paul D. Smith  <psmith@gnu.org>
867         * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
868         for W32 platforms.
869         * read.c (record_files) [WINDOWS32]: Allow backslash separators
870         for W32 platforms.
871         * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
872         separators for W32 platforms.
874         * configure.in (MAKE_HOST): Define it to be the canonical build
875         host info, now that we need AC_CANONICAL_HOST anyway (for large
876         file support).
877         * version.c (make_host): Define a variable to MAKE_HOST so we're
878         sure to get it from the local config.h.
879         * main.c (print_version): Use it in the version information.
880         * config.ami.template: Add MAKE_HOST.
881         * configh.dos.template: Ditto.
882         * config.h.W32.template: Ditto.
883         * config.h-vms.template: Ditto.
885         * main.c (main): Close the jobserver file descriptors if we need
886         to re-exec ourselves.
887         Also print more reasonable error if users force -jN for submakes.
888         This may be common for a while until people use the jobserver
889         feature.  If it happens, we ignore the existing jobserver stuff
890         and use whatever they specified on the commandline.
891         (define_makeflags): Fixed a long-standing bug: if a long name
892         only option comes immediately after a single letter option with no
893         argument, then the option string is constructed incorrectly.  For
894         example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
895         instead of "-w --jobserver-fds..."; add in an extra " -".
897         * make.texinfo (Phony Targets): Add another example of using
898         .PHONY with subdirectories/recursive make.
900 1999-08-30  Paul D. Smith  <psmith@gnu.org>
902         * README.W32.template: Renamed from README.W32 so it's
903         autogenerated during the dist.  A few minor modifications.
905         * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
906         since the latter needs to know whether the former exists to give
907         an accurate result.
909 1999-08-26  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
911         * NMakefile [WINDOWS32]: Now more robust. If you change a file
912         under w32/subproc, the make.exe will be relinked. Also added some
913         tests to make sure erase commands won't fail when executed in a
914         pristine build environment.
916         * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
917         HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
918         is now possible to have have native support for this shell without
919         having to rely on klutzy BATCH_MODE_ONLY_SHELL.
921         * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
922         users can define if they want to build make to use this shell.
924         * README.W32 [WINDOWS32]: Added informaton about
925         HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
927 1999-08-26  Paul Eggert  <eggert@twinsun.com>
929         Support large files in AIX, HP-UX, and IRIX.
931         * acinclude.m4 (AC_LFS): Remove.  Superseded by AC_SYS_LARGEFILE.
932         (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
933         AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
934         (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
935         shift or divide unsigned long long.
936         (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
937         automake 1.4.
939         * configure.in (AC_CANONICAL_HOST): Add; required by new
940         AC_SYS_LARGEFILE.
941         (AC_SYS_LARGEFILE): Renamed from AC_LFS.
942         (AM_PROG_CC_STDC): Add.
944         * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
946 1999-08-25  Paul Eggert  <eggert@twinsun.com>
948         * make.h (CHAR_MAX): New macro.
949         * main.c (struct command_switch): c is now int,
950         so that it can store values greater than CHAR_MAX.
951         (switches): Replace small numbers N with CHAR_MAX+N-1,
952         to avoid problems with non-ASCII character sets.
953         (short_option): New macro.
954         (init_switches, print_usage, define_makeflags): Use it instead of
955         isalnum.
957 1999-08-25  Paul D. Smith  <psmith@gnu.org>
959         * Version 3.77.94 released.
961         * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
962         not supported and reset it.
964         * make.h (ISDIGIT): Obtained this from the textutils distribution.
965         * main.c (decode_switches): Use it.
966         * function.c (is_numeric): Use it.
968         * main.c (struct command_switch): Store the switch char in an
969         unsigned char to shut up GCC about using it with ctype.h macros.
970         Besides, it _is_ always unsigned.
972 1999-08-24  Paul D. Smith  <psmith@gnu.org>
974         * make.texinfo: Change "dependency" to "prerequisite" and
975         "dependencies" to "prerequisites".  Various other cleanups related
976         to the terminology change.
977         * file.c: Change debugging and error messages to use
978         "prerequisite" instead of "dependency".
979         * implicit.c: Ditto.
980         * remake.c: Ditto.
981         * NEWS: Document it.
983 1999-08-23  Paul D. Smith  <psmith@gnu.org>
985         * remake.c (update_file): Move the considered check into the
986         double-colon rule loop, so we consider double-colon rules
987         individually (otherwise after the first is pruned, the rest won't
988         get run).
990         * README.template: Minor changes.
992         Remove the debugging features of the jobserver, so it no longer
993         writes distinct tokens to the pipe.  Thus, we don't need to store
994         the token we get.  A side effect of this is to remove a potential
995         "unavailable token" situation: make-1 invokes make-2 with its
996         special token and make-3 with a normal token; make-2 completes.
997         Now we're waiting for make-3 but using 2 tokens; our special token
998         is idle.  In the new version we don't have special tokens per se,
999         we merely decide if we already have a child or not.  If we don't,
1000         we don't need a token.  If we do, we have to get one to run the
1001         next child.  Similar for putting tokens back: if we're cleaning up
1002         the last child, we don't put a token back.  Otherwise, we do.
1004         * main.c: Add a new, internal flag --jobserver-fds instead of
1005         overloading the meaning of -j.  Remove job_slots_str and add the
1006         stringlist jobserver_fds.
1007         (struct command_switch): We don't need the int_string type.
1008         (switches[]): Add a new option for --jobserver-fds and remove
1009         conditions around -j.  Make the description for the former 0 so it
1010         doesn't print during "make --help".
1011         (main): Rework jobserver parsing.  If we got --jobserver-fds
1012         make sure it's valid.  We only get one and job_slots must be 0.
1013         If we're the toplevel make (-jN without --jobserver-fds) create
1014         the pipe and write generic tokens.
1015         Create the stringlist struct for the submakes.
1016         Clean up the stringlist where necessary.
1017         (init_switches): Remove int_string handling.
1018         (print_usage): Don't print internal flags (description ptr is 0).
1019         (decode_switches): Remove int_string handling.
1020         (define_makeflags): Remove int_string handling.
1022         * job.c: Remove my_job_token flag and all references to the
1023         child->job_token field.
1024         (free_job_token): Remove this and merge it into free_child().
1025         (reap_children): Rework the "reaped a child" logic slightly.
1026         Don't call defunct free_job_token anymore.  Always call
1027         free_child, even if we're dying.
1028         (free_child): If we're not freeing the only child, put a token
1029         back in the pipe.  Then, if we're dying, don't bother to free.
1030         (new_job): If we are using the jobserver, loop checking to see if
1031         a) there are no children or b) we get a token from the pipe.
1033         * job.h (struct child): Remove the job_token field.
1035 1999-08-20  Paul D. Smith  <psmith@gnu.org>
1037         * variable.c (try_variable_definition): Allocate for variable
1038         expansion in f_append with a simple variable: if we're looking at
1039         target-specific variables we don't want to trash the buffer.
1040         Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
1042 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
1044         * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
1045         avoid problems in shell commands that use backslashes as escape
1046         characters.
1048 1999-08-16  Paul D. Smith  <psmith@gnu.org>
1050         * Version 3.77.93 released.
1052 1999-08-13  Paul D. Smith  <psmith@gnu.org
1054         * function.c (func_if): New function $(if ...) based on the
1055         original by Han-Wen but reworked quite a bit.
1056         (function_table): Add it.
1057         * NEWS: Introduce it.
1058         * make.texinfo (If Function): Document it.
1060         * job.c (free_job_token): Check for EINTR when writing tokens to
1061         the jobserver pipe.
1063 1999-08-12  Paul D. Smith  <psmith@gnu.org>
1065         Another jobserver algorithm change.  We conveniently forgot that
1066         the blocking bit is shared by all users of the pipe, it's not a
1067         per-process setting.  Since we have many make processes all
1068         sharing the pipe we can't use the blocking bit as a signal handler
1069         flag.  Instead, we'll dup the pipe's read FD and have the SIGCHLD
1070         handler close the dup'd FD.  This will cause the read() to fail
1071         with EBADF the next time we invoke it, so we know we need to reap
1072         children.  We then re-dup and reap.
1074         * main.c (main): Define the job_rfd variable to hold the dup'd FD.
1075         Actually dup the read side of the pipe.  Don't bother setting the
1076         blocking bit on the file descriptor.
1077         * make.h: Declare the job_rfd variable.
1078         * job.c (child_handler): If the dup'd jobserver pipe is open,
1079         close it and assign -1 to job_rfd to notify the main program that
1080         we got a SIGCHLD.
1081         (start_job_command): Close the dup'd FD before exec'ing children.
1082         Since we open and close this thing so often it doesn't seem
1083         worth it to use the close-on-exec bit.
1084         (new_job): Remove code for testing/setting the blocking bit.
1085         Instead of EAGAIN, test for EBADF.  If the dup'd FD has been
1086         closed, re-dup it before we reap children.
1088         * function.c (func_shell): Be a little more accurate about the
1089         length of the error string to allocate.
1091         * expand.c (variable_expand_for_file): If there's no filenm info
1092         (say, from a builtin command) then reset reading_file to 0.
1094 1999-08-09  Paul D. Smith  <psmith@gnu.org>
1096         * maintMakefile: Use g in sed (s///g) to replace >1 variable per
1097         line.
1099         * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
1100         remove the right files.
1102 1999-08-01  Eli Zaretskii  <eliz@is.elta.co.il>
1104         * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
1105         ptr.
1107 1999-08-01  Paul D. Smith  <psmith@gnu.org>
1109         New jobserver algorithm to avoid a possible hole where we could
1110         miss SIGCHLDs and get into a deadlock.  The original algorithm was
1111         suggested by Roland McGrath with a nice refinement by Paul Eggert.
1112         Many thanks as well to Tim Magill and Howard Chu, who also
1113         provided many viable ideas and critiques.  We all had a fun week
1114         dreaming up interesting ways to use and abuse UNIX syscalls :).
1116         Previously we could miss a SIGCHLD if it happened after we reaped
1117         the children but before we re-entered the blocking read.  If this
1118         happened to all makes and/or all children, make would never wake
1119         up.
1121         We avoid this by having the SIGCHLD handler reset the blocking bit
1122         on the jobserver pipe read FD (normally read does block in this
1123         algorithm).  Now if the handler is called between the time we reap
1124         and the time we read(), and there are no tokens available, the
1125         read will merely return with EAGAIN instead of blocking.
1127         * main.c (main): Set the blocking bit explicitly here.
1128         * job.c (child_handler): If we have a jobserver pipe, set the
1129         non-blocking bit for it.
1130         (start_waiting_job): Move the token stuff back to new_job; if we
1131         do it here then we're not controlling the number of remote jobs
1132         started!
1133         (new_job): Move the check for job slots to _after_ we've created a
1134         child structure.  If the read returns without getting a token, set
1135         the blocking bit then try to reap_children.
1137         * make.h (EINTR_SET): Define to test errno if EINTR is available,
1138         or 0 otherwise.  Just some code cleanup.
1139         * arscan.c (ar_member_touch): Use it.
1140         * function.c (func_shell): Use it.
1141         * job.c (reap_children): Use it.
1142         * remake.c (touch_file): Use it.
1144 1999-07-28  Paul D. Smith  <psmith@gnu.org>
1146         * make.h: Define _() and N_() macros as passthrough to initiate
1147         NLS support.
1148         * <all>: Add _()/N_() around translatable strings.
1150 1999-07-27  Paul D. Smith  <psmith@gnu.org>
1152         * read.c: Make sure make.h comes before other headers.
1154 1999-07-26  Paul D. Smith  <psmith@gnu.org>
1156         * make.texinfo (Quick Reference): Update with the new features.
1158 1999-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
1160         * remake.c [__MSDOS__]: Don't include variables.h, it's already
1161         included.
1163         * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
1164         (func_shell) [__MSDOS__]: Fix the argument list.
1166         * Makefile.DOS.template: Update from Makefile.in.
1168         * README.DOS.template: Configure command fixed.
1170         * configh.dos.template: Update to provide definitions for
1171         uintmax_t, fd_set_size_t, and HAVE_SELECT.
1173 1999-07-24  Paul D. Smith  <psmith@gnu.org>
1175         * Version 3.77.91 released.
1177         * configure.in: Changes to the boostrapping code: if build.sh.in
1178         doesn't exist configure spits an error and generates an empty
1179         build.sh file which causes make to be confused.
1180         * maintMakefile: Don't build README early.
1182 1999-07-23  Paul D. Smith  <psmith@gnu.org>
1184         * job.c (my_job_token): This variable controls whether we've
1185         handed our personal token to a subprocess or not.  Note we could
1186         probably infer this from the value of job_slots_used, but it's
1187         clearer to just keep it separately.  Job_slots_used isn't really
1188         relevant when running the job server.
1189         (free_job_token): New function: free a job token.  If we don't
1190         have one, no-op.  If we have the personal token, reclaim it.  If
1191         we have another token, write it back to the pipe.
1192         (reap_children): Call free_job_token.
1193         (free_child): Call free_job_token.
1194         (start_job_command): Remove duplicate test for '+' in the command.
1195         If we don't appear to be running a recursive make, close the
1196         jobserver filedescriptors.
1197         (start_waiting_job): If our personal token is available, use that
1198         instead of going to the server pipe.
1199         (*): Add the token value to many debugging statements, and print
1200         the child target name in addition to the ptr hex value.
1201         Change the default "no token" value from '\0' to '-' so it looks
1202         better in the output.
1204         * main.c (main): Install the child_handler with sigaction()
1205         instead of signal() if we have it.  On SysV systems, signal() uses
1206         SysV semantics which are a pain.  But sigaction() always does what
1207         we want.
1208         (main): If we got job server FDs from the environment, test them
1209         to see if they're open.  If not, the parent make closed them
1210         because it didn't think we were a submake.  Print a warning and
1211         suggestion to use "+" on the submake invocation, and hard-set to
1212         -j1 for this instance of make.
1213         (main): Change the algorithm for assigning slots to be more
1214         robust.  Previously make checked to see if it thought a subprocess
1215         was a submake and if so, didn't give it a token.  Since make's
1216         don't consume tokens we could spawn many of makes fighting for a
1217         small number of tokens.  Plus this is unreliable because submakes
1218         might not be recognized by the parent (see above) then all the
1219         tokens could be used up by unrecognized makes, and no one could
1220         run.  Now every make consumes a token from its parent.  However,
1221         the make can also use this token to spawn a child.  If the make
1222         wants more than one, it goes to the jobserver pipe.  Thus there
1223         will never be more than N makes running for -jN, and N*2 processes
1224         (N makes and their N children).  Every make can always run at
1225         least one job, and we'll never deadlock.  (Note the closing of the
1226         pipe for non-submakes also solves this, but this is still a better
1227         algorithm.)  So!  Only put N-1 tokens into the pipe, since the
1228         topmost make keeps one for itself.
1230         * configure.in: Find sigaction.  Disable job server support unless
1231         the system provides it, in addition to either waitpid() or
1232         wait3().
1234 1999-07-22  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1236         * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
1237         string on Windows, not a timestamp.
1239 1999-07-21  Paul D. Smith  <psmith@gnu.org>
1241         * Version 3.77.90 released.
1243         * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
1245         * function.c: Rearrange so we don't need to predeclare the
1246         function_table array; K&R C compilers don't like that.
1248         * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
1249         compiler!  Change to work with K&R compilers as well.
1251         * configure.in (AC_OUTPUT): Put build.sh back.  I don't know how I
1252         thought it would work this way :-/.  We'll have to think of
1253         something else.
1254         * Makefile.am: Remove rule to create build.sh.
1256         * default.c (default_suffix_rules): Rearrange the default command
1257         lines to conform to POSIX rules (put the filename argument $<
1258         _after_ the OUTPUT_OPTION, not before it).
1260         * various: Changed !strncmp() calls to strneq() macros.
1262         * misc.c (sindex): Make slightly more efficient.
1264         * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
1265         * implicit.c (pattern_search): Ditto.
1266         * main.c (enter_command_line_file): Ditto.
1267         (main): Ditto.
1268         * misc.c (copy_dep_chain): Ditto.
1269         * read.c (read_makefile): Ditto.
1270         (parse_file_seq): Ditto.
1271         (tilde_expand): Ditto.
1272         (multi_glob): Ditto.
1273         * rule.c (install_pattern_rule): Ditto.
1274         * variable.c (define_variable_in_set): Ditto.
1275         (define_automatic_variables): Ditto.
1276         * vpath.c (construct_vpath_list): Ditto.
1278         * misc.c (xrealloc): Some reallocs are non-standard: work around
1279         them in xrealloc by calling malloc if PTR is NULL.
1280         * main.c (main): Call xrealloc() directly instead of testing for
1281         NULL.
1283         * function.c (func_sort): Don't try to free NULL; some older,
1284         non-standard versions of free() don't like it.
1286         * configure.in (--enable-dmalloc): Install some support for using
1287         dmalloc (http://www.dmalloc.com/) with make.  Use --enable-dmalloc
1288         with configure to enable it.
1290         * function.c (function_table_entry): Whoops!  The function.c
1291         rewrite breaks backward compatibility: all text to a function is
1292         broken into arguments, and extras are ignored.  So $(sort a,b,c)
1293         returns "a"!  Etc.  Ouch.  Fix it by making a positive value in
1294         the REQUIRED_ARGS field mean exactly that many arguments to the
1295         function; any "extras" are considered part of the last argument as
1296         before.  A negative value means at least that many, but may be
1297         more: in this case all text is broken on commas.
1298         (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
1299         (expand_builtin_function): Compare number of args to the absolute
1300         value of REQUIRED_ARGS.
1302 1999-07-20  Paul D. Smith  <psmith@gnu.org>
1304         * job.c (start_job_command): Ensure that the state of the target
1305         is cs_running.  It might not be if we skipped all the lines due to
1306         -n (for example).
1308         * commands.c (execute_file_commands): If we discover that the
1309         command script is empty and succeed early, set cs_running so the
1310         modtime of the target is still rechecked.
1312         * rule.c (freerule): Free the dependency list for the rule.
1314         * implicit.c (pattern_search): When turning an intermediate file
1315         into a real target, keep the also_make list.
1316         Free the dep->name if we didn't use it during enter_file().
1318 1999-07-16  Paul D. Smith  <psmith@gnu.org>
1320         * read.c (read_makefile): Don't allocate the commands buffer until
1321         we're sure we found a makefile and won't return early (mem leak).
1323         * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
1324         not FD_SETFD.  Close-on-exec isn't getting set on the bad_stdin
1325         file descriptor and it's leaking :-/.
1326         * getloadavg.c (getloadavg): Ditto.
1328 1999-07-15  Paul D. Smith  <psmith@gnu.org>
1330         * read.c (read_makefile): Fix some potential memory stomps parsing
1331         `define' directives where no variable name is given.
1333         * function.c (func_call): Rename from func_apply.  Various code
1334         cleanup and tightening.
1335         (function_table): Add "call" as a valid builtin function.
1337         * make.texinfo (Call Function): Document it.
1339         * NEWS: Announce it.
1341 1999-07-09  Eli Zaretskii  <eliz@is.elta.co.il>
1343         * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
1344         Treat "override SHELL=" the same as just "SHELL=".
1346 1999-07-09  Paul D. Smith  <psmith@gnu.org>
1348         * job.c (start_waiting_job): Don't get a second job token if we
1349         already have one; if we're waiting on the load to go down
1350         start_waiting_job() might get called twice on the same file.
1352         * filedef.h (struct file): Add new field, mtime_before_update.
1353         When notice_finished_file runs it assigns the cached last_mtime to
1354         this field.
1355         * remake.c (update_goal_chain): Notice that a file wasn't updated
1356         by asking if it changed (g->changed) and comparing the current
1357         cached time (last_mtime) with the previous one, stored in
1358         mtime_before_update.  The previous check ("did last_mtime changed
1359         during the run of update_file?") fails for parallel builds because
1360         last_mtime is set during reap_children, before update_file is run.
1361         This causes update_goal_chain to always return -1 (nothing
1362         rebuilt) when running parallel (-jN).  This is OK during "normal"
1363         builds since our caller (main) treats these cases identically in
1364         that case, but if when rebuilding makefiles the difference is very
1365         important, as it controls whether we re-exec or not.
1366         * file.c (file_hash_enter): Copy the mtime_before_update field.
1367         (snap_deps): Initialize mtime_before_update to -1.
1368         * main.c (main): Initialize mtime_before_update on old (-o) and
1369         new (-W) files.
1371 1999-07-08  Paul D. Smith  <psmith@gnu.org>
1373         * main.c (switches): Define a new switch -R (or
1374         --no-builtin-variables).  This option disables the defining of all
1375         the GNU make builtin variables.
1376         (main): If -R was given, force -r as well.
1377         * default.c (define_default_variables): Test the new flag.
1378         * make.h: Declare global flag.
1379         * make.texinfo (Options Summary): Document the new option.
1380         (Implicit Variables): Ditto.
1382 1999-07-06  Paul D. Smith  <psmith@gnu.org>
1384         * make.texinfo (Options Summary): Correct examples in
1385         --print-data-base option summary (problem reported by David Morse
1386         <morse@nichimen.com>).
1388         * arscan.c: Add support for archives in Windows (VC++).  Frank
1389         Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
1390         this.
1391         * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
1392         compile line.
1393         * build_w32.bat: Ditto.
1395         * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
1396         give errors if you try to -include the same file twice.
1397         (updating_makefiles): New variable: we need to know this info in
1398         no_rule_error() so we know whether to print an error or not.
1399         (update_file_1): Unconditionally call no_rule_error(), don't try
1400         to play games with the dontcare flag.
1402 1999-06-14  Paul D. Smith  <psmith@gnu.org>
1404         * make.texinfo (Remaking Makefiles): Add a description of how to
1405         prevent implicit rule searches for makefiles.
1407         * make.1: Remove statement that make continues processing when -v
1408         is given.
1410 1999-06-14  Paul D. Smith  <psmith@gnu.org>
1412         * read.c (read_makefile): Cast -1 arguments to
1413         variable_expand_string() to long.  Alexandre Sauve
1414         <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
1415         on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
1416         anyway).  Of course, (a) I'd really love to start using function
1417         prototypes, and (b) there's a whole slew of issues related to int
1418         vs. long and signed vs. unsigned in the length handling of
1419         variable buffers, etc.  Gross.  Needs a complete mucking-out.
1420         * expand.c (variable_expand): Ditto.
1422         * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
1423         Lars Hecking <lhecking@nmrc.ucc.ie>.
1425         * read.c (get_next_mword): Allow colons to be escaped in target
1426         names: fix for regression failure.
1428 1999-04-26  Paul D. Smith  <psmith@gnu.org>
1430         * main.c (main): Reset read_makefiles to empty after processing so
1431         we get the right error message.
1433 1999-04-25  Paul D. Smith  <psmith@gnu.org>
1435         * make.texinfo: Updates to @dircategory and @direntry suggested by
1436         Karl Berry <karl@cs.umb.edu>.
1438 1999-04-23  Eli Zaretskii  <eliz@is.elta.co.il>
1440         * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
1441         turning off dos_command_running, so child's signals produce the
1442         right effect.
1444         * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
1445         instead of 1.
1447 1999-04-18  Eli Zaretskii  <eliz@is.elta.co.il>
1449         * configh.dos.template: Update to recognize that version 2.02 of
1450         DJGPP contains sys_siglist stuff.
1452 1999-04-14  Paul D. Smith  <psmith@gnu.org>
1454         * make.texinfo (Options/Recursion): Document the job server.
1455         (Parallel): Tweaks.
1457 1999-04-13  Paul D. Smith  <psmith@gnu.org>
1459         Implement a new "job server" feature; the implementation was
1460         suggested by Howard Chu <hyc@highlandsun.com>.
1462         * configure.in (job-server): New disable option for job server
1463         support--it's enabled by default.  If it works well this will go
1464         away.
1466         * NEWS: Summarize the new feature.
1468         * acconfig.h: New definition MAKE_JOBSERVER if job server support
1469         is enabled.
1470         * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1471         * config.h.W32.template: Ditto.
1472         * config.ami.template: Ditto.
1474         * main.c (struct command_switch): Add a new type: int_string.
1475         (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1476         (init_switches): Initialize the new int_string switch type.
1477         (print_usage): New function, extracted from decode_switches().
1478         (decode_switches): Call it.  Decode the new int_string switch type.
1479         (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1480         (job_fds[]) Array to contain the pipe file descriptors.
1481         (main): Parse the job_slots_str option results.  If necessary,
1482         create the pipe and seed it with tokens.  Set the non-blocking bit
1483         for the read fd.  Enable the signal handler for SIGCHLD even if we
1484         have a non-hanging wait; it's needed to interrupt the select() in
1485         job.c:start_waiting_job().
1487         * make.h: Declare job_fds[].
1489         * job.h (struct child): Add job_token field to store the token for
1490         this job (if any).
1492         * job.c (reap_children): When a child is fully reaped, release the
1493         token back into the pipe.
1494         (free_child): If the child to be freed still has a token, put it
1495         back.
1496         (new_job): Initialize the job_token member.
1497         (start_waiting_job): For local jobs, if we're using the pipe, get
1498         a token before we check the load, etc.  We do this by performing a
1499         non-blocking read in a loop.  If the read fails, no token is
1500         available.  Do a select on the fd to wait for a token.  We need to
1501         re-enable the signal handler for SIGCHLD even if we have a
1502         non-hanging waitpid() or wait3(), so that the signal will
1503         interrupt the select() and we can wake up to reap children.
1504         (child_handler): Re-enable the signal handler.  The count is still
1505         kept although it's not needed or used unless you don't have
1506         waitpid() or wait3().
1508 1999-04-10  Paul D. Smith  <psmith@gnu.org>
1510         * main.c (main): Reset the considered bit on all the makefiles if
1511         something failed to update; we need to examine them again if they
1512         appear as normal targets in order to get the proper error message.
1514 1999-04-09  Paul D. Smith  <psmith@gnu.org>
1516         Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1518         * remake.c (update_file): If you have large numbers of
1519         dependencies and you run in parallel, make can spend considerable
1520         time each pass through the graph looking at branches it has
1521         already seen.  Since we only reap_children() when starting a pass,
1522         not in the middle, if a branch has been seen already in that pass
1523         nothing interesting can happen until the next pass.  So, we toggle
1524         a bit saying whether we've seen this target in this pass or not.
1525         (update_goal_chain): Initially set the global considered toggle to
1526         1, since all targets initialize their boolean to 0.  At the end of
1527         each pass, toggle the global considered variable.
1528         * filedef.h (struct file): Per-file considered toggle bit.
1529         * file.c: New global toggle variable considered.
1531 1999-04-05  Paul D. Smith  <psmith@gnu.org>
1533         * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1534         archives?) for Digital UNIX C++.  Information provided by
1535         Patrick E. Krogel <pekrogel@mtu.edu>.
1536         (ar_member_touch): Ditto.
1538 1999-04-03  Paul D. Smith  <psmith@gnu.org>
1540         * remake.c (f_mtime): If: a) we found a file and b) we didn't
1541         create it and c) it's not marked as an implicit target and d) it
1542         is marked as an intermediate target, then it was so marked due to
1543         an .INTERMEDIATE special target, but it already existed in the
1544         directory.  In this case, unset the intermediate flag so we won't
1545         delete it when make is done.  It feels like it would be cleaner to
1546         put this check in update_file_1() but I worry it'll get missed...
1548 1999-04-01  Paul D. Smith  <psmith@gnu.org>
1550         * job.c (construct_command_argv_internal): Use bcopy() to copy
1551         overlapping strings, rather than strcpy().  ISO C says the latter
1552         is undefined.  Found this in a bug report from 1996!  Ouch!
1554 1999-03-31  Paul D. Smith  <psmith@gnu.org>
1556         * read.c (readline): Ignore carriage returns at the end of the
1557         line, to allow Windows-y CRLF line terminators.
1559 1999-03-30  Paul D. Smith  <psmith@gnu.org>
1561         * configure.in: Don't put build.sh here, since build.sh.in doesn't
1562         exist initially.  This cause autoreconf and automake to fail when
1563         run on a clean CVS checkout.  Instead, we create build.sh in the
1564         Makefile (see below).
1566         * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1567         Put those files directly into EXTRA_DIST so they're distributed.
1568         Create a local build rule to create build.sh.
1569         Create a local maintainer-clean rule to delete all the funky
1570         maintainers files.
1572         * maintMakefile: Makefile.in depends on README, since automake
1573         fails if it doesn't exist.  Also don't remove glob/Makefile.in
1574         here, as it causes problems.
1576 1999-03-26  Paul D. Smith  <psmith@gnu.org>
1578         * configure.in: Substitute GLOBLIB if we need the link the
1579         glob/libglob.a library.
1580         * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1581         don't link the local libglob.a at all if we don't need it.
1582         * build.template: Don't compile glob/*.o unless we want globlib.
1583         * maintMakefile (build.sh.in): Substitute the glob/*.o files
1584         separately.
1586 1999-03-25  Paul D. Smith  <psmith@gnu.org>
1588         * make.texinfo: Various typos and additions, pointed out by James
1589         G. Sack <jsack@dornfeld.com>.
1591 1999-03-22  Paul D. Smith  <psmith@gnu.org>
1593         * make.texinfo (Functions): Add a new section documenting the new
1594         $(error ...) and $(warning ...) functions.  Also updated copyright
1595         dates.
1596         * NEWS: Updated for the new functions.
1597         * function.c (func_error): Implement the new $(error ...) and
1598         $(warning ...) functions.
1599         (function_table): Insert new functions into the table.
1600         (func_firstword): Don't call find_next_token() with argv[0]
1601         itself, since that function modifies the pointer.
1602         * function.c: Cleanups and slight changes to the new method of
1603         calling functions.
1605 1999-03-20  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
1607         * function.c: Rewrite to use one C function per make function,
1608         instead of a huge switch statement.  Also allows some cleanup of
1609         multi-architecture issues, and a cleaner API which makes things
1610         like func_apply() simple.
1612         * function.c (func_apply): Initial implementation.  Expand either
1613         a builtin function or a make variable in the context of some
1614         arguments, provided as $1, $2, ... $N.
1616 1999-03-19  Eli Zaretskii  <eliz@is.elta.co.il>
1617 1999-03-19  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1619         * job.c (construct_command_argv_internal): Don't treat _all_
1620         backslashes as escapes, only those which really escape a special
1621         character.  This allows most normal "\" directory separators to be
1622         treated normally.
1624 1999-03-05  Paul D. Smith  <psmith@gnu.org>
1626         * configure.in: Check for a system strdup().
1627         * misc.c (xstrdup): Created.  Suggestion by Han-Wen Nienhuys
1628         <hanwen@cs.uu.nl>.
1629         * make.h: Prototype xstrdup().
1630         * remake.c (library_search): Use it.
1631         * main.c (main): Use it.
1632         (find_and_set_default_shell): Use it.
1633         * job.c (construct_command_argv_internal): Use it.
1634         * dir.c (find_directory): Use it.
1636         * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
1637         maintMakefile instead of "include", to avoid automake 1.4
1638         incompatibility.
1640 1999-03-04  Paul D. Smith  <psmith@gnu.org>
1642         * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
1643         * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
1644         * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
1645         * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
1646         * vpath.c, Makefile.ami, NMakefile.template, build.template,
1647         * makefile.vms: Updated FSF address in the copyright notice.
1649         * variable.c (try_variable_definition): If we see a conditional
1650         variable and we decide to set it, re-type it as recursive so it
1651         will be expanded properly later.
1653 1999-02-22  Paul D. Smith  <psmith@gnu.org>
1655         * NEWS: Mention new .LIBPATTERNS feature.
1657         * make.texinfo (Libraries/Search): Describe the use and
1658         ramifications of the new .LIBPATTERNS variable.
1660         * remake.c (library_search): Instead of searching only for the
1661         hardcoded expansion "libX.a" for a library reference "-lX", we
1662         obtain a list of patterns from the .LIBPATTERNS variable and
1663         search those in order.
1665         * default.c: Added a new default variable .LIBPATTERNS.  The
1666         default for UNIX is "lib%.so lib%.a".  Amiga and DOS values are
1667         also provided.
1669         * read.c: Remove bogus HAVE_GLOB_H references; always include
1670         vanilla glob.h.
1672 1999-02-21  Paul D. Smith  <psmith@gnu.org>
1674         * function.c (expand_function): Set value to 0 to avoid freeing it.
1675         * variable.c (pop_variable_scope): Free the value of the variable.
1676         (try_variable_definition): For simple variables, use
1677         allocated_variable_expand() to avoid stomping on the variable
1678         buffer when we still need it for other things.
1680         * arscan.c: Modified to support AIX 4.3 big archives.  The changes
1681         are based on information provided by Phil Adams
1682         <padams@austin.ibm.com>.
1684 1999-02-19  Paul D. Smith  <psmith@gnu.org>
1686         * configure.in: Check to see if the GNU glob library is already
1687         installed on the system.  If so, _don't_ add -I./glob to the
1688         compile line.  Using the system glob code with the local headers
1689         is very bad mojo!
1690         Rewrite SCCS macros to use more autoconf facilities.
1692         * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
1693         CPPFLAGS by configure now.
1694         Automake 1.4 introduced its own "include" feature which conflicts
1695         with the maintMakefile stuff.  A hack that seems to work is add a
1696         space before the include :-/.
1698         * build.template: Move -Iglob out of the compile line; it'll get
1699         added to CPPFLAGS by configure now.
1701 1999-02-16  Glenn D. Wolf  <Glenn_Wolf@email.sps.mot.com>
1703         * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
1704         calling lbr$get_index since if the archive is empty,
1705         VMS_get_member_info won't get called at all, and any leftover date
1706         will be used.  This bug shows up if any member of any archive is
1707         made, followed by a dependency check on a different, empty
1708         archive.
1710 1998-12-13  Martin Zinser  <zinser@decus.decus.de>
1712         * config.h-vms [VMS]: Set _POSIX_C_SOURCE.  Redefine the getopt
1713         functions so we don't use the broken VMS versions.
1714         * makefile.com [VMS]: Allow debugging.
1715         * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
1717 1998-11-30  Paul D. Smith  <psmith@gnu.org>
1719         * signame.c (init_sig): Check the sizes of signals being set up to
1720         avoid array overwrites (if the system headers have problems).
1722 1998-11-17  Paul D. Smith  <psmith@gnu.org>
1724         * read.c (record_files): Clean up some indentation.
1726 1998-11-08  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
1728         * rule.c (print_rule_data_base): Fix arguments to fatal() call.
1730 1998-10-13  Paul D. Smith  <psmith@gnu.org>
1732         * job.c (start_job_command): If the command list resolves to no
1733         chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
1734         quit early.
1736 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1738         * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
1739         zero.
1741 1998-10-09  Paul D. Smith  <psmith@gnu.org>
1743         * read.c (read_makefile): Allow non-empty lines to expand to the
1744         empty string after variable, etc., expansion, and be ignored.
1746 1998-09-21  Paul D. Smith  <psmith@gnu.org>
1748         * job.c (construct_command_argv_internal): Only add COMMAND.COM
1749         "@echo off" line for non-UNIXy shells.
1751 1998-09-09  Paul D. Smith  <psmith@gnu.org>
1753         * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
1755 1998-09-04  Paul D. Smith  <psmith@gnu.org>
1757         * read.c (read_makefile): If we hit the "missing separator" error,
1758         check for the common case of 8 spaces instead of a TAB and give an
1759         extra comment to help people out.
1761 1998-08-29  Paul Eggert  <eggert@twinsun.com>
1763         * configure.in (AC_STRUCT_ST_MTIM_NSEC):
1764         Renamed from AC_STRUCT_ST_MTIM.
1766         * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC):  Likewise.
1767         Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
1769         * acconfig.h (ST_MTIM_NSEC):
1770         Renamed from HAVE_ST_MTIM, with a new meaning.
1772         * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
1773         Use new ST_MTIM_NSEC macro.
1775 1998-08-26  Paul D. Smith  <psmith@gnu.org>
1777         * remake.c (check_dep): For any intermediate file, not just
1778         secondary ones, try implicit and default rules if no explicit
1779         rules are given.  I'm not sure why this was restricted to
1780         secondary rules in the first place.
1782 1998-08-24  Paul D. Smith  <psmith@gnu.org>
1784         * make.texinfo (Special Targets): Update documentation for
1785         .INTERMEDIATE: if used with no dependencies, then it does nothing;
1786         old docs said it marked all targets as intermediate, which it
1787         didn't... and which would be silly :).
1789         * implicit.c (pattern_search): If we find a dependency in our
1790         internal tables, make sure it's not marked intermediate before
1791         accepting it as a found_file[].
1793 1998-08-20  Paul D. Smith  <psmith@gnu.org>
1795         * ar.c (ar_glob): Use existing alpha_compare() with qsort.
1796         (ar_glob_alphacompare): Remove it.
1798         Modify Paul Eggert's patch so we don't abandon older systems:
1800         * configure.in: Warn the user if neither waitpid() nor wait3() is
1801         available.
1803         * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
1804         (child_handler, dead_children): Define these if WAIT_NOHANG is not
1805         available.
1806         (reap_children): Only track the dead_children count if no
1807         WAIT_NOHANG.  Otherwise, it's a boolean.
1809         * main.c (main): Add back signal handler if no WAIT_NOHANG is
1810         available; only use default signal handler if it is.
1812 1998-08-20  Paul Eggert  <eggert@twinsun.com>
1814         Install a more robust signal handling mechanism for systems which
1815         support it.
1817         * job.c (WAIT_NOHANG): Define to a syntax error if our host
1818         is truly ancient; this should never happen.
1819         (child_handler, dead_children): Remove.
1820         (reap_children): Don't try to keep separate track of how many
1821         dead children we have, as this is too bug-prone.
1822         Just ask the OS instead.
1823         (vmsHandleChildTerm): Fix typo in error message; don't mention
1824         child_handler.
1826         * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
1827         do this early, before we could possibly create a subprocess.
1828         Just use the default behavior; don't have our own handler.
1830 1998-08-18  Eli Zaretskii  <eliz@is.elta.co.il>
1832         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
1833         recognize library archive members when dealing with drive spec
1834         mess.  Discovery and initial fix by George Racz <gracz@mincom.com>.
1836 1998-08-18  Paul D. Smith  <psmith@gnu.org>
1838         * configure.in: Check for stdlib.h explicitly (some hosts have it
1839         but don't have STDC_HEADERS).
1840         * make.h: Use HAVE_STDLIB_H.  Clean up some #defines.
1841         * config.ami: Re-compute based on new config.h.in contents.
1842         * config.h-vms: Ditto.
1843         * config.h.W32: Ditto.
1844         * configh.dos: Ditto.
1846         * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
1847         directory names end with `\' so strip it.
1849 1998-08-17  Paul D. Smith  <psmith@gnu.org>
1851         * make.texinfo: Added copyright year to the printed copy.  Removed
1852         the price from the manual.  Change the top-level reference to
1853         running make to be "Invoking make" instead of "make Invocation",
1854         to comply with GNU doc standards.
1856         * make.h (__format__, __printf__): Added support for these in
1857         __attribute__ macro.
1858         (message, error, fatal): Use ... prototype form under __STDC__.
1859         Add __format__ attributes for printf-style functions.
1861         * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
1863         * misc.c (message, error, fatal): Add preprocessor stuff to enable
1864         creation of variable-argument functions with appropriate
1865         prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
1866         v*printf(), _doprnt(), or none of the above.  Culled from GNU
1867         fileutils and slightly modified.
1868         (makefile_error, makefile_error): Removed (merged into error() and
1869         fatal(), respectively).
1870         * amiga.c: Use them.
1871         * ar.c: Use them.
1872         * arscan.c: Use them.
1873         * commands.c: Use them.
1874         * expand.c: Use them.
1875         * file.c: Use them.
1876         * function.c: Use them.
1877         * job.c: Use them.
1878         * main.c: Use them.
1879         * misc.c: Use them.
1880         * read.c: Use them.
1881         * remake.c: Use them.
1882         * remote-cstms.c: Use them.
1883         * rule.c: Use them.
1884         * variable.c: Use them.
1886         * make.h (struct floc): New structure to store file location
1887         information.
1888         * commands.h (struct commands): Use it.
1889         * variable.c (try_variable_definition): Use it.
1890         * commands.c: Use it.
1891         * default.c: Use it.
1892         * file.c: Use it.
1893         * function.c: Use it.
1894         * misc.c: Use it.
1895         * read.c: Use it.
1896         * rule.c: Use it.
1898 1998-08-16  Paul Eggert  <eggert@twinsun.com>
1900         * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
1902 1998-08-16  Paul Eggert  <eggert@twinsun.com>
1904         * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
1905         (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
1906         make it easier to understand.
1908 1998-08-14  Paul D. Smith  <psmith@gnu.org>
1910         * read.c (read_makefile): We've already unquoted any colon chars
1911         by the time we're done reading the targets, so arrange for
1912         parse_file_seq() on the target list to not do so again.
1914 1998-08-05  Paul D. Smith  <psmith@gnu.org>
1916         * configure.in: Added glob/configure.in data.  We'll have the glob
1917         code include the regular make config.h, rather than creating its
1918         own.
1920         * getloadavg.c (main): Change return type to int.
1922 1998-08-01  Paul Eggert  <eggert@twinsun.com>
1924         * job.c (reap_children): Ignore unknown children.
1926 1998-07-31  Paul D. Smith  <psmith@gnu.org>
1928         * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
1929         Add prototypes for functions.  Some prototypes needed to be moved
1930         in order to get #include order reasonable.
1932 1998-07-30  Paul D. Smith  <psmith@gnu.org>
1934         * make.h: Added MIN/MAX.
1935         * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
1937 1998-07-30  Paul Eggert  <eggert@twinsun.com>
1939         Add support for sub-second timestamp resolution on hosts that
1940         support it (just Solaris 2.6, so far).
1942         * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
1943         * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
1944         jm_AC_TYPE_UINTMAX_T): New defuns.
1945         * commands.c (delete_target): Convert file timestamp to
1946         seconds before comparing to archive timestamp.  Extract mod
1947         time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
1948         * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
1949         (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
1950         * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
1951         (file_timestamp_now, file_timestamp_sprintf): New functions.
1952         (print_file): Print file timestamps as FILE_TIMESTAMP, not
1953         time_t.
1954         * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
1955         (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
1956         FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
1957         FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
1958         FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
1959         (file_timestamp_now, file_timestamp_sprintf): New decls.
1960         (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
1961         time_t -> FILE_TIMESTAMP.
1962         * implicit.c (pattern_search): Likewise.
1963         * vpath.c (vpath_search, selective_vpath_search): Likewise.
1964         * main.c (main): Likewise.
1965         * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
1966         (f_mtime): Use file_timestamp_now instead of `time'.
1967         Print file timestamp with file_timestamp_sprintf.
1968         * vpath.c (selective_vpath_search): Extract file time stamp from
1969         struct stat with FILE_TIMESTAMP_STAT_MODTIME.
1971 1998-07-28  Paul D. Smith  <psmith@gnu.org>
1973         * Version 3.77 released.
1975         * dosbuild.bat: Change to DOS CRLF line terminators.
1977         * make-stds.texi: Update from latest version.
1979         * make.texinfo (Options Summary): Clarify that the -r option
1980         affects only rules, not builtin variables.
1982 1998-07-27  Paul D. Smith  <psmith@gnu.org>
1984         * make.h: Make __attribute__ resolve to empty for non-GCC _and_
1985         for GCC pre-2.5.x.
1987         * misc.c (log_access): Print UID/GID's as unsigned long int for
1988         maximum portability.
1990         * job.c (reap_children): Print PIDs as long int for maximum
1991         portability.
1993 1998-07-24  Eli Zaretskii  <eliz@is.elta.co.il>
1995         * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
1997 1998-07-25  Paul D. Smith  <psmith@gnu.org>
1999         * Version 3.76.94 released.
2001 1998-07-23  Paul D. Smith  <psmith@gnu.org>
2003         * config.h.W32.template: Make sure all the #defines of macros here
2004         have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
2005         just ``#define HAVE_STRING_H''.  Keeps the preprocessor happy in
2006         some contexts.
2008         * make.h: Remove __attribute__((format...)) stuff; using it with
2009         un-prototyped functions causes older GCC's to fail.
2011         * Version 3.76.93 released.
2013 1998-07-22  Paul D. Smith  <psmith@gnu.org>
2015         * file.c (print_file_data_base): Fix average calculation.
2017 1998-07-20  Paul D. Smith  <psmith@gnu.org>
2019         * main.c (die): Postpone the chdir() until after
2020         remove_intermediates() so that intermediate targets with relative
2021         pathnames are removed properly.
2023 1998-07-17  Paul D. Smith  <psmith@gnu.org>
2025         * filedef.h (struct file): New flag: did we print an error or not?
2027         * remake.c (no_rule_error): New function to print error messages,
2028         extraced from remake_file().
2030         * remake.c (remake_file): Invoke the new error print function.
2031         (update_file_1): Invoke the error print function if we see that we
2032         already tried this target and it failed, but that an error wasn't
2033         printed for it.  This can happen if a file is included with
2034         -include or sinclude and couldn't be built, then later is also
2035         the dependency of another target.  Without this change, make just
2036         silently stops :-/.
2038 1998-07-16  Paul D. Smith  <psmith@gnu.org>
2040         * make.texinfo: Removed "beta" version designator.
2041         Updated ISBN for the next printing.
2043 1998-07-13  Paul Eggert  <eggert@twinsun.com>
2045         * acinclude.m4: New AC_LFS macro to determine if special compiler
2046         flags are needed to allow access to large files (e.g., Solaris 2.6).
2047         * configure.in: Invoke it.
2049 1998-07-08  Eli Zaretskii  <eliz@is.elta.co.il>
2051         * Makefile.DOS: track changes in Makefile.in.
2053 1998-07-07  Paul D. Smith  <psmith@gnu.org>
2055         * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
2056         top so host is initialized early enough.
2058         * acinclude.m4: New file.  Need some special autoconf macros to
2059         check for network libraries (-lsocket, -lnsl, etc.) when
2060         configuring Customs.
2062         * configure.in (make_try_customs): Invoke new network libs macro.
2064 1998-07-06  Paul D. Smith  <psmith@gnu.org>
2066         * Version 3.76.92 released.
2068         * README.customs: Added to the distribution.
2070         * configure.in (make_try_customs): Rewrite to require an installed
2071         Customs library, rather than looking at the build directory.
2073         * Makefile.am (man_MANS): Install make.1.
2074         * make.1: Renamed from make.man.
2076         * make.texinfo (Bugs): New mailing list address for GNU make bug
2077         reports.
2079 1998-07-02  Paul D. Smith  <psmith@gnu.org>
2081         * Version 3.76.91 released.
2083         * default.c: Added default rule for new-style RCS master file
2084         storage; ``% :: RCS/%''.
2085         Added default rules for DOS-style C++ files with suffix ".cpp".
2086         They use the new LINK.cpp and COMPILE.cpp macros, which are set by
2087         default to be equal to LINK.cc and COMPILE.cc.
2089 1998-06-19  Eli Zaretskii  <eliz@is.elta.co.il>
2091         * job.c (start_job_command): Reset execute_by_shell after an empty
2092         command was skipped.
2094 1998-06-09  Paul D. Smith  <psmith@gnu.org>
2096         * main.c (main): Keep track of the temporary filename created when
2097         reading a makefile from stdin (-f-) and attempt to remove it
2098         as soon as we know we're not going to re-exec.  If we are, add it
2099         to the exec'd make's cmd line with "-o" so the exec'd make doesn't
2100         try to rebuild it.  We still have a hole: if make re-execs then
2101         the temporary file will never be removed.  To fix this we'd need
2102         a brand new option that meant "really delete this".
2103         * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
2104         Updated mailing addresses.
2106 1998-06-08  Paul D. Smith  <psmith@gnu.org>
2108         * main.c (main): Andreas Luik <luik@isa.de> points out that the
2109         check for makefile :: rules with commands but no dependencies
2110         causing a loop terminates incorrectly.
2112         * maintMakefile: Make a template for README.DOS to update version
2113         numbers.
2115 1998-05-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2117         * remake.c (update_file_1): Don't free the memory for the
2118         dependency structure when dropping a circular dependency.
2120 1998-05-30  Eli Zaretskii  <eliz@is.elta.co.il>
2122         * dir.c (file_exists_p, file_impossible_p, file_impossible)
2123         [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
2124         dirname of "d:foo" be "d:".
2126 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2128         * read.c (read_makefile): Avoid running past EOS when scanning
2129         file name after `include'.
2131 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2133         * make.texinfo (Flavors): Correct description of conditional
2134         assignment, which is not equivalent to ifndef.
2135         (Setting): Likewise.
2137 1998-05-24  Paul D. Smith  <psmith@gnu.org>
2139         * arscan.c (ar_name_equal): strncmp() might be implemented as a
2140         macro, so don't put preprocessor conditions inside the arguments
2141         list.
2143 1998-05-23  Eli Zaretskii  <eliz@is.elta.co.il>
2145         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
2146         drive specs when parsing targets, target-specific variables and
2147         static pattern rules.  A colon can only be part of drive spec if
2148         it is after the first letter in a token.
2150 1998-05-22  Eli Zaretskii  <eliz@is.elta.co.il>
2152         * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
2153         yelling bloody murder.
2155         * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
2157         * read.c (parse_file_seq): Combine the special file-handling code
2158         for WINDOWS32 and __MSDOS__ into a single snippet.
2159         (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
2160         colon as part of a drive spec.
2162         * job.c (batch_mode_shell) [__MSDOS__]: Declare.
2164 1998-05-20  Paul D. Smith  <psmith@gnu.org>
2166         * Version 3.76.90 released.
2168 1998-05-19  Paul D. Smith  <psmith@gnu.org>
2170         * make.texinfo (Make Errors): Added a new appendix describing
2171         common errors make might generate and how to resolve them (or at
2172         least more information on what they mean).
2174         * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
2175         to create a dependency file to construct Makefile.DOS, SMakefile,
2176         and NMakefile.
2177         (.dep_segment): Generate the dependency fragment file.
2179 1998-05-14  Paul D. Smith  <psmith@gnu.org>
2181         * make.man: Minor changes.
2183 1998-05-13  Paul D. Smith  <psmith@gnu.org>
2185         * function.c (pattern_matches,expand_function): Change variables
2186         and types named "word" to something else, to avoid compilation
2187         problems on Cray C90 Unicos.
2188         * variable.h: Modify the function prototype.
2190 1998-05-11  Rob Tulloh  <rob_tulloh@tivoli.com>
2192         * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
2193         echo when using a batch file, and make sure the command ends in a
2194         newline.
2196 1998-05-03  Paul D. Smith  <psmith@gnu.org>
2198         * configure.in (make_try_customs): Add some customs flags if the
2199         user configures custom support.
2201         * job.c, remote-cstms.c: Merge in changes for custom library.
2203         * remote-stub.c: Add option to stub start_remote_job_p().
2205 1998-05-01  Paul D. Smith  <psmith@gnu.org>
2207         * remake.c (f_mtime): Install VPATH+ handling for archives; use
2208         the hname field instead of the name field, and rehash when
2209         appropriate.
2211 1998-04-30  Paul D. Smith  <psmith@gnu.org>
2213         * rule.c (print_rule_data_base): Print out any pattern-specific
2214         variable values into the rules database.
2216         * variable.c (print_variable_set): Make this variable extern, to
2217         be called by print_rule_data_base() for pattern-specific variables.
2219         * make.texinfo (Pattern-specific): Document pattern-specific
2220         variables.
2222 1998-04-29  Paul D. Smith  <psmith@gnu.org>
2224         * expand.c (variable_expand_for_file): Make static; its only
2225         called internally.  Look up this target in the list of
2226         pattern-specific variables and insert the variable set into the
2227         queue to be searched.
2229         * filedef.h (struct file): Add a new field to hold the
2230         previously-found pattern-specific variable reference.  Add a new
2231         flag to remember whether we already searched for this file.
2233         * rule.h (struct pattern_var): New structure for storing
2234         pattern-specific variable values.  Define new function prototypes.
2236         * rule.c: New variables pattern_vars and last_pattern_var for
2237         storage and handling of pattern-specific variable values.
2238         (create_pattern_var): Create a new pattern-specific variable value
2239         structure.
2240         (lookup_pattern_var): Try to match a target to one of the
2241         pattern-specific variable values.
2243 1998-04-22  Paul D. Smith  <psmith@gnu.org>
2245         * make.texinfo (Target-specific): Document target-specific
2246         variables.
2248 1998-04-21  Paul D. Smith  <psmith@gnu.org>
2250         * variable.c (define_variable_in_set): Made globally visible.
2251         (lookup_variable_in_set): New function: like lookup_variable but
2252         look only in a specific variable set.
2253         (target_environment): Use lookup_variable_in_set() to get the
2254         correct export rules for a target-specific variable.
2255         (create_new_variable_set): Create a new variable set, and just
2256         return it without installing it anywhere.
2257         (push_new_variable_scope): Reimplement in terms of
2258         create_new_variable_set.
2260         * read.c (record_target_var): Like record_files, but instead of
2261         files create a target-specific variable value for each of the
2262         listed targets.  Invoked from read_makefile() when the target line
2263         turns out to be a target-specific variable assignment.
2265 1998-04-19  Paul D. Smith <psmith@gnu.org>
2267         * read.c (read_makefile): Rewrite the entire target parsing
2268         section to implement target-specific variables.  In particular, we
2269         cannot expand the entire line as soon as it's read in, since we
2270         may want to evaluate parts of it with different variable contexts
2271         active.  Instead, start expanding from the beginning until we find
2272         the `:' (or `::'), then determine what kind of line this is and
2273         continue appropriately.
2275         * read.c (get_next_mword): New function to parse a makefile line
2276         by "words", considering an entire variable or function as one
2277         word.  Return the type read in, along with its starting position
2278         and length.
2279         (enum make_word_type): The types of words that are recognized by
2280         get_next_mword().
2282         * variable.h (struct variable): Add a flag to specify a per-target
2283         variable.
2285         * expand.c: Make variable_buffer global.  We need this during the
2286         new parsing of the makefile.
2287         (variable_expand_string): New function.  Like variable_expand(),
2288         but start at a specific point in the buffer, not the beginning.
2289         (variable_expand): Rewrite to simply call variable_expand_string().
2291 1998-04-13  Paul D. Smith  <psmith@gnu.org>
2293         * remake.c (update_goal_chain): Allow the rebuilding makefiles
2294         step to use parallel jobs.  Not sure why this was disabled:
2295         hopefully we won't find out :-/.
2297 1998-04-11  Paul D. Smith  <psmith@gnu.org>
2299         * main.c (main): Set the CURDIR makefile variable.
2300         * make.texinfo (Recursion): Document it.
2302 1998-03-17  Paul D. Smith  <psmith@gnu.org>
2304         * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
2305         * variable.c (try_variable_definition): Use new feature.
2307 1998-03-10  Paul D. Smith  <psmith@gnu.org>
2309         * main.c (main): Don't pass included, rebuilt makefiles to
2310         re-exec'd makes with -o.  Reopens a possible loop, but it caused
2311         too many problems.
2313 1998-03-02  Paul D. Smith  <psmith@gnu.org>
2315         * variable.c (try_variable_definition): Implement ?=.
2316         * make.texinfo (Setting): Document it.
2318 1998-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
2320         * job.c (start_job_command): Reset execute_by_shell after an empty
2321         command, like ":", has been seen.
2323 Tue Oct 07 15:00:00 1997  Phil Brooks <phillip_brooks@hp.com>
2325         * make.h [WINDOWS32]: make case sensitivity configurable
2326         * dir.c [WINDOWS32]: make case sensitivity configurable
2327         * README.W32: Document case sensitivity
2328         * config.ami: Share case warping code with Windows
2330 Mon Oct  6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2332         * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
2333         (turn on HAVE_MKS_SHELL).
2334         * read.c [WINDOWS32]: Fixed a problem with multiple target rules
2335         reported by Gilbert Catipon (gcatipon@tibco.com).  If multiple
2336         path tokens in a rule did not have drive letters, make would
2337         incorrectly concatenate the 2 tokens together.
2338         * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
2339         follow what MSDOS did. In addition to watching for SHELL variable
2340         updates, make's main will attempt to default the value of SHELL
2341         before and after makefiles are parsed.
2342         * job.c/job.h [WINDOWS32]: The latest changes made to enable use
2343         of the GNUWIN32 shell from make could cause make to fail due to a
2344         concurrency condition between parent and child processes.  Make
2345         now creates a batch file per job instead of trying to reuse the
2346         same singleton batch file.
2347         * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
2348         from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
2349         logic to reduce complexity. WINDOWS32 now uses the unixy_shell
2350         variable to detect Bourne-shell compatible environments. There is
2351         also a batch_mode_shell variable that determines whether not
2352         command lines should be executed via script files. A WINDOWS32
2353         system with no sh.exe installed would have unixy_shell set to
2354         FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
2355         that does not behave well when invoking things via 'sh -c xxx',
2356         you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
2357         improve.
2358         * NMakefile: Added /D DEBUG to debug build flags so that unhandled
2359         exceptions could be debugged.
2361 Mon Oct  6 00:04:25 1997  Rob Tulloh <rob_tulloh@dev.tivoli.com>
2363         * main.c [WINDOWS32]: The function define_variable() does not
2364         handle NULL. Test before calling it to set Path.
2365         * main.c [WINDOWS32]: Search Path again after makefiles have been
2366         parsed to detect sh.exe.
2367         * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
2368         To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
2369         * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
2371 Sun Oct  5 22:43:59 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
2373         * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
2374         case-sensitive.
2375         * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
2376         command contains a newline (e.g. from a define/enddef block).
2377         * vmsify.c (vmsify): Return relative pathnames wherever possible.
2378         * vmsify.c (vmsify): An input string like "../.." returns "[--]".
2380 Wed Oct  1 15:45:09 1997  Rob Tulloh <rob_tulloh@tivoli.com>
2382         * NMakefile: Changed nmake to $(MAKE).
2383         * subproc.bat: Take the make command name from the command
2384         line. If no command name was given, default to nmake.
2385         * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
2386         are now always created in heap memory.
2387         * w32/subproc/sub_proc.c: New implementation of make_command_line()
2388         which is more compatible with different Bourne shell implementations.
2389         Deleted the now obsolete fix_command_line() function.
2390         * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
2391         detected. Make will ensure that the special spelling `Path' is
2392         inserted into the environment when the path variable is propagated
2393         within itself and to make's children.
2394         * main.c [WINDOWS32]: Detection of sh.exe was occurring too
2395         soon. The 2nd check for the existence of sh.exe must come after
2396         the call to read_all_makefiles().
2398 Fri Sep 26 01:14:18 1997  <zinser@axp602.gsi.de>
2400         * makefile.com [VMS]: Fixed definition of sys.
2401         * readme.vms: Comments on what's changed lately.
2403 Fri Sep 26 01:14:18 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
2405         * read.c (read_all_makefiles): Allow make to find files named
2406         "MAKEFILE" with no extension on VMS.
2407         * file.c (lookup_file): Lowercase filenames on VMS.
2409 1997-09-29  Paul D. Smith  <psmith@baynetworks.com>
2411         * read.c (read_makefile): Reworked target detection again; the old
2412         version had an obscure quirk.
2414 Fri Sep 19 09:20:49 1997  Paul D. Smith  <psmith@baynetworks.com>
2416         * Version 3.76.1 released.
2418         * Makefile.am: Add loadavg files to clean rules.
2420         * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
2421         * Makefile.ami (distclean): Ditto.
2422         * SMakefile (distclean): Ditto.
2424         * main.c (main): Arg count should be int, not char!  Major braino.
2426 Tue Sep 16 10:18:22 1997  Paul D. Smith  <psmith@baynetworks.com>
2428         * Version 3.76 released.
2430 Tue Sep  2 10:07:39 1997  Paul D. Smith  <psmith@baynetworks.com>
2432         * function.c (expand_function): When processing $(shell...)
2433         translate a CRLF (\r\n) sequence as well as a newline (\n) to a
2434         space.  Also remove an ending \r\n sequence.
2435         * make.texinfo (Shell Function): Document it.
2437 Fri Aug 29 12:59:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2439         * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
2440         paths which contain single character entries like `.' are not
2441         handled correctly.
2443         * README.W32: Document path handling issues on Windows systems.
2445 Fri Aug 29 02:01:27 1997  Paul D. Smith  <psmith@baynetworks.com>
2447         * Version 3.75.93.
2449 Thu Aug 28 19:39:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2451         * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
2452         from main() to re-exec make, the call to execvp() would
2453         incorrectly return control to parent shell before the exec'ed
2454         command could run to completion. I believe this is a feature of
2455         the way that execvp() is implemented on top of WINDOWS32 APIs. To
2456         alleviate the problem, use the supplied process launch function in
2457         the sub_proc library and suspend the parent process until the
2458         child process has run.  When the child exits, exit the parent make
2459         with the exit code of the child make.
2461 Thu Aug 28 17:04:47 1997  Paul D. Smith  <psmith@baynetworks.com>
2463         * Makefile.DOS.template (distdir): Fix a line that got wrapped in
2464         email.
2466         * Makefile.am (loadavg): Give the necessary cmdline options when
2467         linking loadavg.
2469         * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2471         * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2472         command optimization on these systems; it doesn't make sense.
2474 Wed Aug 27 17:09:32 1997  Paul D. Smith  <psmith@baynetworks.com>
2476         * Version 3.75.92
2478 Tue Aug 26 11:59:15 1997  Paul D. Smith  <psmith@baynetworks.com>
2480         * main.c (print_version): Add '97 to copyright years.
2482         * read.c (do_define): Check the length of the array before looking
2483         at a particular offset.
2485         * job.c (construct_command_argv_internal): Examine the last byte
2486         of the previous arg, not the byte after that.
2488 Sat Aug 23 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2490         * Makefile.DOS.template: New file (converted to Makefile.DOS in
2491         the distribution).
2493         * configure.bat: Rewrite to use Makefile.DOS instead of editing
2494         Makefile.in.  Add support for building from outside of the source
2495         directory.  Fail if the environment block is too small.
2497         * configh.dos: Use <sys/config.h>.
2499         * README.DOS: Update instructions.
2501 Fri Aug 22 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2503         * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2504         literally, use value of unixy_shell instead.
2506         * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2507         time_t is unsigned.
2509 Sat Aug 16 00:56:15 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2511         * vmsify.c (vmsify, case 11): After translating `..' elements, set
2512         nstate to N_OPEN if there are still more elements to process.
2513         (vmsify, case 2): After translating `foo/bar' up to the slash,
2514         set nstate to N_OPEN, not N_DOT.
2516 Fri Aug  8 15:18:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2518         * dir.c (vmsstat_dir): Leave name unmodified on exit.
2519         * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2520         * vpath.c: Fix comments to refer to path separator, not colon.
2521         (selective_vpath_search): Avoid Unixy slash handling for VMS.
2523 Thu Aug  7 22:24:03 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2525         * ar.c [VMS]: Don't declare ar_member_touch.
2526         Delete VMS version of ar_member_date.
2527         Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2528         VMS too.
2529         * arscan.c (VMS_get_member_info): New function.
2530         (ar_scan): Provide version for VMS systems.
2531         (ar_name_equal): Simply compare name and mem on VMS systems.
2532         Don't define ar_member_pos or ar_member_touch on VMS systems.
2534         * config.h-vms (pid_t, uid_t): Don't define.
2536         * remake.c: Delete declaration of vms_stat.
2537         (name_mtime): Don't call vms_stat.
2538         (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2540         * file.c (print_file): [VMS] Use ctime, not cvt_time.
2542         * make.h [VMS]: Don't define POSIX.
2544         * makefile.com (filelist): Include ar and arscan.
2545         Also include them in the link commands.
2546         Don't define NO_ARCHIVES in cc command.
2548         * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2549         (defines): Delete NO_ARCHIVES from list.
2551         * remake.c (f_mtime): Only check to see if intermediate file is
2552         out of date if it also exists (i.e., mtime != (time_t) -1).
2554         * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2556 Fri Jun 20 23:02:07 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2558         * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2559         (#!/bin/sh) in script files correctly.
2560         Fixed a couple of memory leaks.
2561         Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2562         files with extensions are preferred over files without extensions.
2563         Added search for files with .cmd extension too.
2564         * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2566 Mon Aug 18 09:41:08 1997  Paul D. Smith  <psmith@baynetworks.com>
2568         * Version 3.75.91
2570 Fri Aug 15 13:50:54 1997  Paul D. Smith  <psmith@baynetworks.com>
2572         * read.c (do_define): Remember to count the newline after the endef.
2574 Thu Aug 14 23:14:37 1997  Paul D. Smith  <psmith@baynetworks.com>
2576         * many: Rewrote builds to use Automake 1.2.
2578         * AUTHORS: New file.
2579         * maintMakefile: Contains maintainer-only make snippets.
2580         * GNUmakefile: This now only runs the initial auto* tools.
2581         * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2582         automatically by automake).
2583         * compatMakefile: Removed (not needed anymore).
2584         * README,build.sh.in: Removed (built from templates).
2585         * config.h.in,Makefile.in: Removed (built by tools).
2587 Wed Aug 13 02:22:08 1997  Paul D. Smith  <psmith@baynetworks.com>
2589         * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2590         * README,README.DOS: Ditto.
2592         * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2593         * vpath.c (gpath_search): Ditto.
2595         * file.c (rename_file): New function: rehash, but also rename to
2596         the hashname.
2597         * filedef.h: Declare it.
2599         * variable.c (merge_variable_set_lists): Remove free() of variable
2600         set; since various files can share variable sets we don't want to
2601         free them here.
2603 Tue Aug 12 10:51:54 1997  Paul D. Smith  <psmith@baynetworks.com>
2605         * configure.in: Require autoconf 2.12
2607         * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
2608         more stylistically correct "cd subdir && $(MAKE)".
2610         * main.c: Global variable `clock_skew_detected' defined.
2611         (main): Print final warning if it's set.
2612         * make.h: Declare it.
2613         * remake.c (f_mtime): Test and set it.
2615         * job.c (start_job_command): Add special optimizations for
2616         "do-nothing" rules, containing just the shell no-op ":".  This is
2617         useful for timestamp files and can make a real difference if you
2618         have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
2620         * configure.in,Makefile.in: Rewrote to use the new autoconf
2621         program_transform_name macro.
2623         * function.c (function_strip): Strip newlines as well as spaces
2624         and TABs.
2626 Fri Jun  6 23:41:04 1997  Rob Tulloh <rob_tulloh@tivoli.com>
2628         * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
2629         even seconds when stored, so if the date check fails on WINDOWS32
2630          systems, see if this "off-by-one" error is the problem.
2632         * General: If your TZ environment variable is not set correctly
2633         then all your timestamps will be off by hours.  So, set it!
2635 Mon Apr  7 02:06:22 1997  Paul D. Smith  <psmith@baynetworks.com>
2637         * Version 3.75.1
2639         * compatMakefile (objs): Define & use the $(GLOB) variable so
2640         that it's removed correctly from build.sh.in when it's built.
2642         * configure.in: On Solaris we can use the kstat_*() functions to
2643         get load averages without needing special permissions.  Add a
2644         check for -lkstat to see if we have it.
2646         * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
2647         the test to enable kstat_open(), etc. processing.
2649 Fri Apr  4 20:21:18 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2651         * <lots>: Fixes to work in the DJGPP DOS environment.
2653 Mon Mar 31 02:42:52 1997  Paul D. Smith  <psmith@baynetworks.com>
2655         * function.c (expand_function): Added new function $(wordlist).
2657         * make.texinfo (Filename Functions): Document $(wordlist) function.
2659         * vpath.c (build_vpath_lists): Construct the GPATH variable
2660         information in the same manner we used to construct VPATH.
2661         (gpath_search): New function to search GPATH.
2663         * make.h: Declare the new function.
2665         * remake.c (update_file_1): Call it, and keep VPATH if it's found.
2667         * make.texinfo (Search Algorithm): Document GPATH variable.
2669 Sun Mar 30 20:57:16 1997  Paul D. Smith  <psmith@baynetworks.com>
2671         * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
2672         variable to contain the user options passed in on the cmd line.
2674         * make.texinfo (Goals): Document MAKECMDGOALS variable.
2676         * remake.c (f_mtime): Print a warning if we detect a clock skew
2677         error, rather than failing.
2679         * main.c (main): If we rebuild any makefiles and need to re-exec,
2680         add "-o<mkfile>" options for each makefile rebuilt to avoid
2681         infinite looping.
2683 Fri Mar 28 15:26:05 1997  Paul D. Smith  <psmith@baynetworks.com>
2685         * job.c (construct_command_argv_internal): Track whether the last
2686         arg in the cmd string was empty or not (Roland).
2687         (construct_command_argv_internal): If the shell line is empty,
2688         don't do anything (Roland).
2690         * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
2691         the latest changes from the GLIBC version of glob (Ulrich Drepper).
2693         * getloadavg.c,make-stds.texi: New version (Roland).
2695         * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
2697 Mon Mar 24 15:33:34 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2699         * README.W32: Describe preliminary FAT support.
2701         * build_w32.bat: Use a variable for the final exe name.
2703         * dir.c (find_directory): W32: Find the filesystem type.
2704         (dir_contents_file_exists_p): W32: for FAT filesystems, always
2705         rehash since FAT doesn't change directory mtime on change.
2707         * main.c (handle_runtime_exceptions): W32: Add an
2708         UnhandledExceptionFilter so that when make bombs due to ^C or a
2709         bug, it won't cause a GUI requestor to pop up unless debug is
2710         turned on.
2711         (main): Call it.
2713 Mon Mar 24 00:57:34 1997  Paul D. Smith  <psmith@baynetworks.com>
2715         * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
2716         Check for memmove() function.
2718         * make.h (bcopy): If memmove() available, define bcopy() to use it.
2719         Otherwise just use bcopy().  Don't use memcpy(); it's not guaranteed
2720         to handle overlapping moves.
2722         * read.c (read_makefile): Fix some uninitialized memory reads
2723         (reported by Purify).
2725         * job.c (construct_command_argv_internal): Use bcopy() not
2726         strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
2728         * Makefile.in: Change install-info option ``--infodir'' to
2729         ``--info-dir'' for use with new texinfo.
2731         * function.c (expand_function): $(basename) and $(suffix) should
2732         only search for suffixes as far back as the last directory (e.g.,
2733         only the final filename in the path).
2735 Sun Mar 23 00:13:05 1997  Paul D. Smith  <psmith@baynetworks.com>
2737         * make.texinfo: Add @dircategory/@direntry information.
2738         (Top): Remove previous reference to (dir) (from RMS).
2739         (Static Usage): Add "all:" rule to example.
2740         (Automatic Dependencies): fix .d file creation example.
2742         * Install VPATH+ patch:
2744         * filedef.h (struct file): Add in hname field to store the hashed
2745         filename, and a flag to remember if we're using the vpath filename
2746         or not.  Renamed a few functions for more clarity.
2748         * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
2749         in the hash table based on their "hash name".  We can change this
2750         while keeping the original target in "name".
2751         (rehash_file): Renamed from "rename_file" to be more accurate.
2752         Changes the hash name, but not the target name.
2754         * remake.c (update_file_1): Modify -d output for more detailed
2755         VPATH info.  If we don't need to rebuild, use the VPATH name.
2756         (f_mtime): Don't search for vpath if we're ignoring it.  Call
2757         renamed function rehash_file.  Call name_mtime instead of
2758         file_mtime, to avoid infinite recursion since the file wasn't
2759         actually renamed.
2761         * implicit.c (pattern_search): if we find an implicit file in
2762         VPATH, save the original name not the VPATH name.
2764         * make.texinfo (Directory Search): Add a section on the new VPATH
2765         functionality.
2767 Sun Dec  1 18:36:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2769         * dir.c (file_exists_p, file_impossible, file_impossible_p): If
2770         dirname is empty replace it by the name of the root directory.
2771         Note that this doesn't work (yet) for W32, Amiga, or VMS.
2773 Tue Oct 08 13:57:03 1996  Rob Tulloh  <tulloh@tivoli.com>
2775         * main.c (main): W32 bug fix for PATH vars.
2777 Tue Sep 17 1996  Paul Eggert  <eggert@twinsun.com>
2779         * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
2780         32-bit quantity.
2782         * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
2783         INTEGER_TYPE_MINIMUM): New macros.
2785 Tue Aug 27 01:06:34 1996  Roland McGrath  <roland@baalperazim.frob.com>
2787         * Version 3.75 released.
2789         * main.c (print_version): Print out bug-reporting address.
2791 Mon Aug 26 19:55:47 1996  Roland McGrath  <roland@baalperazim.frob.com>
2793         * main.c (print_data_base): Don't declare ctime; headers do it for us
2794         already.
2796 Sun Jul 28 15:37:09 1996  Rob Tulloh (tulloh@tivoli.com)
2798         * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
2799         real function. This was done so that VPATH could contain
2800         white space separated pathnames. Please note that directory
2801         paths (in VPATH/vpath context) containing white space are not
2802         supported (just as they are not under Unix). See README.W32
2803         for suggestions.
2805         * w32/include/pathstuff.h: Added prototype for the new
2806         function convert_vpath_to_w32. Deleted macro for same.
2808         * README.W32: Added some notes about why I chose not to try
2809         and support pathnames which contain white space and some
2810         workaround suggestions.
2812 Thu Jul 25 19:53:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2814         * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
2816         * Version 3.74.7.
2818         * main.c (define_makeflags): Back up P to point at null terminator
2819         when killing final space and dash before setting MFLAGS.
2821         From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
2822         * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
2823         `__opendir_flags' initialized to 0.
2824         (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
2825         (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
2826         __opendir_flags to __OPENDIR_PRESERVE_CASE.
2828         * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
2830         * GNUmakefile (w32files): Add NMakefile.
2832         * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
2834 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
2836         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
2837         modtime check.
2838         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
2840 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2842         * configure.in: Require autoconf 2.10 or later.
2844 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2846         * Version 3.74.6.
2848         * GNUmakefile (w32files): New variable.
2849         (distfiles): Add it.
2850         * w32: Updated by Rob Tulloh.
2852         * makefile.vms (LOADLIBES): Fix typo.
2854 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2856         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
2858         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
2860         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
2862         * Version 3.74.5.
2864         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
2866 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2868         * configure.in: Don't check for _sys_siglist.
2869         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
2870         no strsignal or sys_siglist.
2872         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
2873         same as `ifeq (a, b)'.
2875         * job.c (reap_children): Don't call die if handling_fatal_signal.
2877         * file.c (file_hash_enter): Allow renaming :: to : when latter is
2878         non-target, or : to :: when former is non-target.
2880         * job.c (start_job_command): Call block_sigs.
2881         (block_sigs): New function, broken out of start_job_command.
2882         (reap_children): Block fatal signals around removing dead child from
2883         chain and adjusting job_slots_used.
2884         * job.h: Declare block_sigs.
2886         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
2887         * main.c (main): Call remote_setup.
2888         (die): Call remote_cleanup.
2890         * job.c (reap_children): Quiescent value of shell_function_pid is
2891         zero, not -1.
2893         * main.c (print_version): Add 96 to copyright years.
2895 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2897         * read.c (find_char_unquote): Avoid calling strlen on every call
2898         just to throw away the value most of the time.
2900 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2902         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
2903         no '=', regardless of ARGC.
2904         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
2905         word is short option, regardless of WORDS.
2907 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2909         * makefile.vms: Set LOADLIBES.
2910         * makefile.com (link_using_library): Fix typo.
2912 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2914         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
2915         long.
2917 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
2919         * dir.c: W32 does not support inode. For now, fully qualified
2920         pathname along with st_mtime will be keys for files.
2921         Fixed problem where vpath can be confused when files
2922         are added to a directory after the directory has already been
2923         read in. The code now attempts to reread the directory if it
2924         discovers that the datestamp on the directory has changed since
2925         it was cached by make. This problem only seems to occur on W32
2926         right now so it is lumped under port #ifdef WINDOWS32.
2928         * function.c: W32: call subproc library (CreateProcess()) instead of
2929         fork/exec.
2931         * job.c: W32: Added the code to do fork/exec/waitpid style processing
2932         on W32 systems via calls to subproc library.
2934         * main.c: W32: Several things added here. First, there is code
2935         for dealing with PATH and SHELL defaults. Make tries to figure
2936         out if the user has %PATH% set in the environment and sets it to
2937         %Path% if it is not set already. Make also looks to see if sh.exe
2938         is anywhere to be found. Code path through job.c will change
2939         based on existence of a working Bourne shell. The checking for
2940         default shell is done twice: once before makefiles are read in
2941         and again after. Fall back to MSDOS style execution mode if no sh.exe
2942         is found. Also added some debug support that allows user to pause make
2943         with -D switch and attach a debugger. This is especially useful for
2944         debugging recursive calls to make where problems appear only in the
2945         sub-make.
2947         * make.h: W32: A few macros and header files for W32 support.
2949         * misc.c: W32: Added a function end_of_token_w32() to assist
2950         in parsing code in read.c.
2952         * read.c: W32: Fixes similar to MSDOS which allow colon to
2953         appear in filenames. Use of colon in filenames would otherwise
2954         confuse make.
2956         * remake.c: W32: Added include of io.h to eliminate compiler
2957         warnings. Added some code to default LIBDIR if it is not set
2958         on W32.
2960         * variable.c: W32: Added support for detecting Path/PATH
2961         and converting them to semicolon separated lists for make's
2962         internal use. New function sync_Path_environment()
2963         which is called in job.c and function.c before creating a new
2964         process. Caller must set Path in environment since we don't
2965         have fork() to do this for us.
2967         * vpath.c: W32: Added detection for filenames containing
2968         forward or backward slashes.
2970         * NMakefile: W32: Visual C compatible makefile for use with nmake.
2971         Use this to build GNU make the first time on Windows NT or Windows 95.
2973         * README.W32: W32: Contains some helpful notes.
2975         * build_w32.bat: W32: If you don't like nmake, use this the first
2976         time you build GNU make on Windows NT or Windows 95.
2978         * config.h.W32: W32 version of config.h
2980         * subproc.bat: W32: A bat file used to build the
2981         subproc library from the top-level NMakefile. Needed because
2982         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
2984         * w32/include/dirent.h
2985         * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
2987         * w32/include/pathstuff.h: W32: used by files needed functions
2988         defined in pathstuff.c (prototypes).
2990         * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
2992         * w32/include/w32err.h: W32: prototypes for w32err.c.
2994         * w32/pathstuff.c: W32: File and Path/Path conversion functions.
2996         * w32/subproc/build.bat: W32: build script for subproc library
2997         if you don't wish to use nmake.
2999         * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
3000         with nmake. Used to build subproc library.
3002         * w32/subproc/misc.c: W32: subproc library support code
3003         * w32/subproc/proc.h: W32: subproc library support code
3004         * w32/subproc/sub_proc.c: W32: subproc library source code
3005         * w32/subproc/w32err.c: W32: subproc library support code
3007 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3009         * Version 3.74.4.
3011         * GNUmakefile (vmsfiles): Fix typo.
3013         * GNUmakefile (amigafiles): Add amiga.h.
3015 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
3017         * dir.c: New function: amigafy() to fold filenames
3018         Changes HASH() to HASHI() to fold filenames on Amiga.
3019         Stringcompares use strieq() instead of streq()
3020         The current directory on Amiga is "" instead of "."
3021         * file.c: Likewise.
3023         * amiga.c: New function wildcard_expansion(). Allows to use
3024         Amiga wildcards with $(wildcard )
3026         * amiga.h: New file. Prototypes for amiga.c
3028         * function.c: Use special function wildcard_expansion() for
3029         $(wildcard ) to allow Amiga wildcards
3030         The current directory on Amiga is "" instead of "."
3032         * job.c: No Pipes on Amiga, too
3033         (load_too_high) Neither on Amiga
3034         ENV variable on Amiga are in a special directory and are not
3035         passed as third argument to main().
3037         * job.h: No envp on Amiga
3039         * make.h: Added HASHI(). This is the same as HASH() but converts
3040         it's second parameter to lowercase on Amiga to fold filenames.
3042         * main.c: (main), variable.c Changed handling of ENV-vars. Make
3043         stores now the names of the variables only and reads their contents
3044         when they are accessed to reflect that these variables are really
3045         global (ie. they CAN change WHILE make runs !) This handling is
3046         made in lookup_variable()
3048         * Makefile.ami: renamed file.h to filedep.h
3049         Updated dependencies
3051         * read.c: "find_semicolon" is declared as static but never defined.
3052         No difference between Makefile and makefile on Amiga; added
3053         SMakefile to *default_makefiles[].
3054         (read_makefile) SAS/C want's two_colon and pattern_percent be set
3055         before use.
3056         The current directory on Amiga is "" instead of "."
3057         Strange #endif moved.
3059         * README.Amiga: updated feature list
3061         * SMakefile: Updated dependencies
3063         * variable.c: Handling of ENV variable happens inside lookup_variable()
3065 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3067         * variable.c (try_variable_definition): Count parens in lhs variable
3068         refs to avoid seeing =/:=/+= inside a ref.
3070 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3072         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
3073         conditional.
3075         * main.c (main): Use unsigned for fread return.
3077         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
3078         conflict issues.
3079         * dep.h: Fix prototype.
3081         * function.c (expand_function) [_AMIGA]: Fix some typos.
3082         (patsubst_expand): Make len vars unsigned.
3084         * GNUmakefile (globfiles): Add AmigaDOS support files.
3085         (distfiles): Add $(amigafiles).
3086         (amigafiles): New variable.
3088 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
3090         * Added Amiga support in commands.c, dir.c, function.c,
3091         job.c, main.c, make.h, read.c, remake.c
3092         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
3093         * dir.c: Amiga has filenames with Upper- and Lowercase,
3094         but "FileName" is the same as "filename". Added strieq()
3095         which is use to compare filenames. This is like streq()
3096         on all other systems. Also there is no such thing as
3097         "." under AmigaDOS.
3098         * function.c: On Amiga, the environment is not passed as envp,
3099         there are no pipes and Amiga can't fork. Use my own function
3100         to create a new child.
3101         * job.c: default_shell is "" (The system automatically chooses
3102         a shell for me). Have to use the same workaround as MSDOS for
3103         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
3104         known on Amiga. Cloned code to run children from MSDOS. Own
3105         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
3106         * main.c: Force stack to 20000 bytes. Read environment from ENV:
3107         device. On Amiga, exec_command() does return, so I exit()
3108         afterwards.
3109         * make.h: Added strieq() to compare filenames.
3110         * read.c: Amiga needs special extension to have passwd. Only
3111         one include-dir. "Makefile" and "makefile" are the same.
3112         Added "SMakefile".  Added special code to handle device names (xxx:)
3113         and "./" in rules.
3114         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
3115         instead of "lib%s.a".
3116         * main.c, rule.c, variable.c: Avoid floats at all costs.
3117         * vpath.c: Get rid of as many alloca()s as possible.
3119 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3121         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
3123 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3125         * GNUmakefile (vmsfiles): New variable.
3126         (distfiles): Include $(vmsfiles).
3128 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3130         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
3131         * make.h (PARAMS): New macro.
3132         * config.h-vms: New file.
3133         * makefile.com: New file.
3134         * makefile.vms: New file.
3135         * readme.vms: New file.
3136         * vmsdir.h: New file.
3137         * vmsfunctions.c: New file.
3138         * vmsify.c: New file.
3139         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
3140         * ar.c: Added prototypes and changes for VMS.
3141         * commands.c: Likewise.
3142         * commands.h: Likewise.
3143         * default.c: Likewise.
3144         * dep.h: Likewise.
3145         * dir.c: Likewise.
3146         * expand.c: Likewise.
3147         * file.c: Likewise.
3148         * function.c: Likewise.
3149         * implicit.c: Likewise.
3150         * job.c: Likewise.
3151         * job.h: Likewise.
3152         * main.c: Likewise.
3153         * make.h: Likewise.
3154         * misc.c: Likewise.
3155         * read.c: Likewise.
3156         * remake.c: Likewise.
3157         * remote-stub.c: Likewise.
3158         * rule.c: Likewise.
3159         * rule.h: Likewise.
3160         * variable.c: Likewise.
3161         * variable.h: Likewise.
3162         * vpath.c: Likewise.
3163         * compatMakefile (srcs): Rename file.h to filedef.h.
3165 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3167         * remake.c (check_dep): For a secondary file, try implicit and
3168         default rules if appropriate.
3170 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3172         * remake.c (check_dep): If an intermediate file exists,
3173         do consider its actual date.
3175 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3177         * file.h (struct file): New field `secondary'.
3178         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
3179         (remove_intermediates): Don't delete .SECONDARY files.
3181 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3183         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
3185 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3187         * Version 3.74.3.
3189         * remake.c (f_mtime): Move future modtime check before FILE is
3190         clobbered by :: loop.
3192         * dir.c: Use canonical code from autoconf manual for dirent include.
3193         [_D_NAMLEN]: Redefine NAMLEN using this.
3194         (dir_contents_file_exists_p): Use NAMLEN macro.
3195         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
3197         * compatMakefile (objs): Add missing backslash.
3199 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3201         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
3202         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
3204         * remake.c (f_mtime): Check for future timestamps; give error and mark
3205         file as "failed to update".
3207 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3209         * job.c: Don't declare unblock_sigs; job.h already does.
3211 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3213         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
3215         * job.c (NGROUPS_MAX): Don't try to define this macro.
3217 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3219         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
3220         (objs, srcs): Include their values here instead of references.
3222 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3224         * Version 3.74.2.
3226         * job.c (reap_children): Call unblock_sigs after start_job_command.
3228 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
3230         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
3231         Avoid & before function names to silence bogus sunos4 compiler.
3233         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
3235 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3237         * Version 3.74.1.
3239         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
3240         reallocating it!
3242 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3244         * misc.c (collapse_continuations): Fix skipping of trailing \s so
3245         it can never dereference before the beginning of the array.
3247         * read.c (find_semicolon): Function removed.
3248         (read_makefile): Don't use find_semicolon or remove_comments for
3249         rule lines.  Use find_char_unquote directly and handle quoted comments
3250         properly.
3252         * default.c: Remove all [M_XENIX] code.
3254         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
3255         (D_NAMLEN): Macro removed.
3256         (FAKE_DIR_ENTRY): New macro.
3257         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
3258         D_NAMLEN.
3259         (read_dirstream): Return a struct dirent * for new glob interface.
3260         (init_dir): Function removed.
3261         (dir_setup_glob): New function.
3262         * main.c (main): Don't call init_dir.
3263         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
3264         GLOB_ALTDIRFUNC flag.
3266         * misc.c (safe_stat): Function removed.
3267         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
3268         safe_stat.
3270 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3272         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
3274         * main.c (log_working_directory): Made global.
3275         Print entering msg only once.
3276         * make.h (log_working_directory): Declare it.
3277         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
3278         nonzero.  Call log_working_directory.
3279         * remake.c: Pass new arg in `message' calls.
3280         * job.c (start_job_command): Pass new arg to `message'; fix
3281         inverted test in that call.
3283 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3285         * job.c (start_job_command): Use `message' to print the command,
3286         and call it with null if the command is silent.
3287         * remake.c (touch_file): Use message instead of printf.
3289 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3291         * main.c (enter_command_line_file): Barf if NAME is "".
3293 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
3295         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
3297 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3299         * configure.in: Don't check for getdtablesize.
3300         * job.c (getdtablesize): Remove decls and macros.
3302 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3304         * main.c (define_makeflags): Omit command line variable
3305         definitions from MFLAGS value.
3307         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
3308         indicating a valid, but empty, archive.
3310 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3312         * dir.c (file_impossible_p): Correctly reset FILENAME to name
3313         within directory before hash search.
3315         * job.c (child_error): Do nothing if IGNORED under -s.
3317         * job.c (exec_command): Correctly use ARGV[0] for script name when
3318         running shell directly.
3320 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3322         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
3323         dup'ing from them.  Don't try to close all excess descriptors;
3324         getdtablesize might return a huge value.  Any open descriptors in
3325         the parent should have FD_CLOEXEC set.
3326         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
3328 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3330         * read.c (read_all_makefiles): Properly append default makefiles
3331         to the end of the `read_makefiles' chain.
3333 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3335         * Version 3.74 released.
3337 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3339         * Version 3.73.3.
3341 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3343         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
3344         install-info cmd.
3346 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3348         * file.c (print_file): Grok update_status of 1 for -q.
3350 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3352         * Version 3.73.2.
3354 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3356         * file.c (remove_intermediates): Fix inverted test to bail under
3357         -n for signal case.  Bail under -q or -t.
3358         Skip files with update_status==-1.
3360         * job.c (job_next_command): Skip empty lines.
3361         (new_job): Don't test the return of job_next_command.
3362         Just let start_waiting_job handle the case of empty commands.
3364 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3366         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
3368         * Version 3.73.1.
3370 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3372         * remake.c (notice_finished_file): Set FILE->update_status to zero
3373         if it's -1.
3375 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3377         * Version 3.73 released.
3379 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3381         * main.c (main): Fixed braino in assert.
3383         * Version 3.72.13.
3385 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3387         * main.c: Avoid string in assert expression.  Some systems are broken.
3389 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3391         * main.c (main): Handle 1 and 2 returns from update_goal_chain
3392         makefile run properly.
3394         * Version 3.72.12.
3396         * main.c (handle_non_switch_argument): New function, broken out of
3397         decode_switches.
3398         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
3399         When getopt_long returns EOF, break the loop and handle remaining args
3400         with a simple second loop.
3402         * remake.c (remake_file): Set update_status to 2 instead of 1 for
3403         no rule to make.  Mention parent (dependent) in error message.
3404         (update_file_1): Handle FILE->update_status == 2 in -d printout.
3405         * job.c (start_job_command, reap_children): Set update_status to 2
3406         instead of 1 for failed commands.
3408 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3410         * job.c (search_path): Function removed (was already #if 0'd out).
3411         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
3413 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3415         * configure.bat: Write @CPPFLAGS@ translation.
3417 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3419         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
3420         to not skip the elt immediately preceding `l(...'.
3422 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3424         * Version 3.72.11.
3426         * read.c (find_char_unquote): Make second arg a string of stop
3427         chars instead of a single stop char.  Stop when any char in the
3428         string is hit.  All callers changed.
3429         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
3430         instead of using two calls.  If the match is not a ; but a #,
3431         return zero.
3432         * misc.c: Changed find_char_unquote callers here too.
3434         * Version 3.72.10.
3436         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
3437         __MSDOS__.
3439         * GNUmakefile (globfiles): Add glob/configure.bat.
3440         (distfiles): Add configh.dos, configure.bat.
3442 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3444         Fixes for MS-DOS from DJ Delorie.
3445         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
3446         as separator in "C:\...".
3447         * configh.dos (STDC_HEADERS): Define only if undefined.
3448         (HAVE_SYS_PARAM_H): Don't define this.
3449         (HAVE_STRERROR): Define this.
3450         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
3452         * Version 3.72.9.
3454         * main.c (decode_switches): Reset optind to 1 instead of 0.
3456 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3458         * main.c (decode_switches): If non-option arg is "-", ignore it.
3460 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3462         * Version 3.72.8.
3464 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3466         * Version 3.72.7.
3468 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3470         * main.c (main): Pass missing arg to tmpnam.
3472         * configure.in: Check for strsignal.
3473         * job.c (child_error): Use strsignal.
3474         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3476         * misc.c (strerror): Fix swapped args in sprintf.
3478 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3480         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3482 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3484         * main.c (print_version): Add 95 to copyright years.
3486         * Version 3.72.6.
3488         * job.c (start_job_command): Remember to call notice_finished_file
3489         under -n when not recursing.  To do this, consolidate that code
3490         under the empty command case and goto there for the -n case.
3492 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3494         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
3495         declare it int.
3497 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3499         * read.c (read_makefile): For bogus line starting with tab, ignore
3500         it if blank after removing comments.
3502         * main.c: Cast results of `alloca' to `char *'.
3503         * expand.c: Likewise.
3505 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3507         * Version 3.72.5.
3509         * configure.in: Check for mktemp.
3510         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3512         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3513         (_SC_OPEN_MAX)'.
3514         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3515         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3516         using sysconf.
3518 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3520         * remake.c (update_file_1): When !MUST_MAKE, don't set
3521         FILE->update_status to zero before calling notice_finished_file.
3522         (notice_finished_file): Touch only when FILE->update_status is zero.
3523         (remake_file): Set FILE->update_status to zero after not calling
3524         execute_file_command and deciding to touch instead.
3526 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3528         * main.c (debug_signal_handler): New function; toggles debug_flag.
3529         (main): Handle SIGUSR1 with that.
3531 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3533         * compatMakefile (realclean): Remove Info files.
3535 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3537         * Version 3.72.4.
3539         * job.c (start_job_command): Save and restore environ around vfork
3540         call.
3541         (search_path): Function #if 0'd out.
3542         (exec_command): Use execvp instead of search_path.
3544         * expand.c (variable_expand): Rewrote computed variable name and
3545         substitution reference handling to be simpler.  First expand the
3546         entire text between the parens if it contains any $s, then examine
3547         the result of that for subtitution references and do no further
3548         expansion while parsing them.
3550         * job.c (construct_command_argv_internal): Handle " quoting too,
3551         when no backslash, $ or ` characters appear inside the quotes.
3553         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3554         defined, just use int.
3556 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3558         * default.c (default_variables) [__hpux]: Remove special
3559         definition of ARFLAGS.  Existence of the `f' flag is not
3560         consistent across HPUX versions; and one might be using GNU ar
3561         anyway.
3563         * compatMakefile (clean): Don't remove Info files.
3565         * compatMakefile (check): Remove gratuitous target declaration.
3567 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3569         * compatMakefile (ETAGS, CTAGS): Don't use -t.
3571         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3573         * main.c (decode_switches): For --help, print usage to stdout.
3575 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3577         * Version 3.72.3.
3579         * remake.c (update_file_1): Do set_command_state (FILE,
3580         cs_not_started) only if old state was deps_running.
3582 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3584         * job.c (start_waiting_job): Use set_command_state.
3586         * build.template (CPPFLAGS): New variable.
3587         (prefix, exec_prefix): Set from @...@.
3588         (compilation loop): Pass $CPPFLAGS to compiler.
3590         * GNUmakefile (build.sh.in): Make it executable.
3592         * GNUmakefile (globfiles): Add configure.in, configure.
3594         * Version 3.72.2.
3596         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3598         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3600         * configure.in: Don't check for ranlib.
3602 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3604         * remake.c (notice_finished_file): Only mark also_make's as
3605         updated if really ran cmds.
3607 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3609         * configure.in: Put dnls before random whitespace.
3611 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3613         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
3614         (RANLIB): Variable removed.
3615         (prefix, exec_prefix): Set these from @...@.
3616         (.c.o): Use $(CPPFLAGS).
3617         (glob/libglob.a): Don't pass down variables to sub-make.
3618         glob/Makefile should be configured properly by configure.
3619         (distclean): Remove config.log and config.cache (autoconf stuff).
3621 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3623         * acconfig.h: Add #undef HAVE_UNION_WAIT.
3624         * configure.in: Converted to Autoconf v2.
3625         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
3626         of DIRENT, SYSDIR, NDIR.
3627         * build.sh.in (prefix, exec_prefix): Set these from @...@.
3628         (CPPFLAGS): New variable, set from @CPPFLAGS@.
3629         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
3630         * install.sh: File renamed to install-sh.
3632         * main.c (define_makeflags): When no flags, set WORDS to zero.
3634 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3636         * Version 3.72.1.
3638         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
3639         empty.
3641 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3643         * Version 3.72.
3645 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3647         * Version 3.71.5.
3649         * job.c (start_job_command): When ARGV is nil, only set
3650         update_state and call notice_finished_file if job_next_command
3651         returns zero.
3653         * job.c (start_job_command): Call notice_finished_file for empty
3654         command line.
3656 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3658         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
3659         COMMANDS_NOERROR.
3661 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3663         * Version 3.71.4.
3665 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3667         * file.c (snap_deps): Set command_flags bits in all :: entries.
3669 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3671         * make.h (posix_pedantic): Declare it.
3672         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
3673         snap_deps.
3674         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
3675         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
3676         command_flags and don't set -i.  Likewise .SILENT.
3677         * job.c (start_job_command): In FLAGS initialization, OR in
3678         CHILD->file->command_flags.
3679         * file.h (struct file): New member `command_flags'.
3681 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3683         * main.c (switches): Bump flag values for --no-print-directory and
3684         --warn-undefined-variables, so neither is 1 (which indicates a
3685         nonoption argument).
3687 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3689         * main.c (main): Add missing code in .IGNORE test.
3691 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3693         * variable.c (define_automatic_variables): Define +D and +F.
3695 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3697         * main.c (main): Define hidden automatic variable with command
3698         vars, and MAKEOVERRIDES to a reference to that.
3699         (define_makeflags): If posix_pedantic, write a reference to that
3700         instead.
3702 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3704         * main.c (posix_pedantic): New variable.
3705         (main): Set posix_pedantic if .POSIX is a target.
3706         Fix .IGNORE and .SILENT checks to require is_target.
3708         * commands.c (set_file_variables): Define new automatic variable
3709         $+, like $^ but before calling uniquize_deps.
3711         * job.c (reap_children): Call delete_child_targets for non-signal
3712         error if .DELETE_ON_ERROR is a target.
3714 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3716         * Version 3.71.3.
3718 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3720         * job.c (reap_children): Don't change C->file->command_state when
3721         dying.  Test it only after calling start_job_command for a new
3722         command line.  When no more cmds, just set C->file->update_status.
3723         (start_job_command): When the last line is empty or under -n, set
3724         C->file->update_status.
3725         (start_waiting_job): Grok cs_not_started after start_job_command
3726         as success.
3727         (new_job): Set C->file->update_status when there are no cmds.
3728         (job_next_command): When out of lines, don't set
3729         CHILD->file->update_status or CHILD->file->command_state.
3731         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
3732         if nonzero, also double $s.
3733         (main): Define MAKEOVERRIDES from command_variables here.
3734         (define_makeflags): Don't use command_variables here; instead write a
3735         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
3737         * dir.c [__MSDOS__]: Fixed typo.
3739         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
3741 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3743         * remake.c: Include <assert.h> and use assert instead of printfs
3744         and abort.
3746         * main.c (decode_switches): Loop until optind hits ARGC, not just
3747         until getopt_long returns EOF.  Initialize C to zero before loop;
3748         in loop if C is EOF, set optarg from ARGV[optind++], else call
3749         getopt_long.
3750         (decode_env_switches): Use variable_expand instead of
3751         allocated_variable_expand.  Allocate a fresh buffer to copy split
3752         words into; scan characters by hand to break words and
3753         debackslashify.
3754         (shell_quote): New function.
3755         (define_makeflags): Allocate doubled space for switch args, and command
3756         variable names and values; use shell_quote to quote those things.
3758 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3760         * Version 3.71.2.
3762         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
3764         * main.c (decode_switches): The non-option return from getopt is
3765         1, not 0.
3766         (command_variables): New type and variable.
3767         (decode_switches, decode_env_switches): After making a variable
3768         definition, record the struct variable pointer in the
3769         command_variables chain.
3770         (define_makeflags): If ALL, write variable definitions for
3771         command_variables.
3773         * main.c (other_args): Variable removed.
3774         (goals, lastgoal): New static variables (moved from auto in main).
3775         (main): Don't process OTHER_ARGS at all.
3776         Don't set variable MAKEOVERRIDES at all; define MAKE to just
3777         $(MAKE_COMMAND).
3778         (init_switches): Prepend a - {return in order} instead of a +
3779         {require order}.
3780         (decode_switches): Don't set OTHER_ARGS at all.
3781         Grok '\0' return from getopt_long as non-option argument; try
3782         variable definition and (if !ENV) enter goal targets here.
3783         (decode_env_switches): Use allocated_variable_expand to store value.
3784         Use find_next_token to simplify word-splitting loop.  Don't
3785         prepend a dash to uninterpreted value.  Instead, if split into
3786         only one word, try variable definition and failing that prepend a
3787         dash to the word and pass it to decode_switches as a single arg.
3789 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3791         * remake.c (notice_finished_file): Only recheck modtimes if
3792         FILE->command_state was cs_running on entry (meaning the commands
3793         actually just ran).
3794         (update_file_1): Whenever we set FILE->update_status, call
3795         notice_finished_file instead of just set_command_state.
3796         * job.c (start_job_command): Whenever we set
3797         CHILD->file->update_status, call notice_finished_file instead of
3798         just set_command_state.
3800 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3802         * default.c: Add missing ".
3804         * job.c: Changed all assignments of command_state members to calls
3805         to set_command_state.
3806         * remake.c: Likewise.
3807         * file.c (set_command_state): New function.
3808         * file.h: Declare set_command_state.
3810         * main.c (init_switches): Put a + first in options.
3812 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3814         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
3815         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
3816         * main.c (directory_before_chdir): New variable, moved out of main
3817         (was local).
3818         (main) [__MSDOS__]: Look for \ or : to delimit last component of
3819         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
3820         (die): Change back to `directory_before_chdir' before dying.
3821         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
3822         [__MSDOS__] and not.
3823         * job.c [__MSDOS__]: Include <process.h>.
3824         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
3825         dos_batch_file): New variables.
3826         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
3827         (unblock_sigs) [__MSDOS__]: Do nothing.
3828         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
3829         (load_too_high) [__MSDOS__]: Always return true.
3830         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
3831         Use PATH_SEPARATOR_CHAR instead of ':'.
3832         (construct_command_argv_internal) [__MSDOS__]: Wholly different
3833         values for sh_chars and sh_cmds.  Wholly new code to handle shell
3834         scripts.
3835         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
3836         implementation.
3837         * dir.c [__MSDOS__] (dosify): New function.
3838         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
3839         process the result instead of FILENAME itself.
3840         (file_impossible_p) [__MSDOS__]: Likewise.
3841         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
3842         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
3843         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
3844         `bison -y', and LEX to `flex'.
3845         * configure.bat, configh.dos: New files.
3846         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
3847         intermediates and exit.
3849         * commands.c (set_file_variables): Add parens in length
3850         computation in .SUFFIXES dep loop to quiet compiler warning.  From
3851         Jim Meyering.
3853         * read.c (read_makefile): Free FILENAME if we allocated it.  From
3854         Jim Meyering.
3856 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3858         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
3859         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
3860         * read.c (construct_include_path): Use safe_stat in place of stat.
3861         * job.c (search_path): Use safe_stat in place of stat.
3862         * dir.c (find_directory): Use safe_stat in place of stat.
3863         * commands.c (delete_target): Use safe_stat in place of stat.
3864         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
3865         * remake.c (name_mtime): Use safe_stat in place of stat.
3866         (touch_file) [EINTR]: Do EINTR looping around fstat.
3868 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3870         * read.c (read_makefile): Check for a shell command first, and
3871         then strip leading tabs before further checking if it's not a
3872         shell command line.
3874         * make.h [__arm]: Undefine POSIX.
3875         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
3876         functions that return int.
3878         * job.c (construct_command_argv_internal): After swallowing a
3879         backslash-newline combination, if INSTRING is set goto string_char
3880         (new label) for normal INSTRING handling code.
3882 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3884         * configure.in: Don't check for sys_siglist and _sys_siglist with
3885         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
3887 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3889         * Version 3.71.1 released.
3891         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
3892         _POSIX_VERSION for these declarations.
3894         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
3895         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
3897 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3899         * Version 3.71 released.
3901         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
3902         and [HAVE_SETGID].  Every system has those, and configure doesn't
3903         check for them.
3905         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
3907         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
3908         getloadavg.c.
3909         (loadavg.c): Link or copy it from getloadavg.c.
3910         (distclean): Remove loadavg.c.
3912 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3914         * Version 3.70.4.
3916         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
3917         and HAVE_SETEGID.
3919         * default.c (default_terminal_rules): In SCCS rules, put
3920         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
3921         only before the file name.
3922         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
3924 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3926         * job.c (construct_command_argv_internal): Swallow
3927         backslash-newline combinations inside '' strings too.
3929 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3931         * read.c (do_define): Call collapse_continuations on each line
3932         before all else.
3934 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3936         * job.c (construct_command_argv_internal): Notice newline inside
3937         '' string when RESTP is non-null.
3939 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3941         * Version 3.70.3.
3943         * remake.c (update_goal_chain): Reset FILE to G->file after the
3944         double-colon loop so it is never null for following code.
3946         * read.c (read_makefile): Fix `override define' parsing to skip
3947         whitespace after `define' properly.
3949         * compatMakefile (srcdir): Define as @srcdir@; don't reference
3950         $(VPATH).
3951         (glob/Makefile): New target.
3953 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3955         * Version 3.70.2.
3957         * misc.c (remove_comments): Use find_char_unquote.
3958         * make.h (find_char_unquote): Declare it.
3959         * read.c (find_char_unquote): New function, generalized from
3960         find_percent.
3961         (find_percent, find_semicolon, parse_file_seq): Use that.
3963 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3965         * implicit.c (pattern_search): Always allocate new storage for
3966         FILE->stem.  It is not safe to store STEM's address because it
3967         might be auto storage.
3969         * configure.in: Check for seteuid and setegid.
3970         * misc.c [HAVE_SETEUID]: Declare seteuid.
3971         [HAVE_SETEGID]: Declare setegid.
3972         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
3973         [HAVE_SETEGID]: Use setegid.
3975         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
3976         to preserve whether it's 2 for error or 1 for -q trigger.  When
3977         STATUS gets nonzero and -q is set, always stop immediately.
3978         * main.c (main, decode_switches): Die with 2 for errors.
3979         (main): Accept 2 return from update_goal_chain and die with that.
3980         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
3981         answer.
3982         * job.c (reap_children): Die with 2 for error.
3983         (start_job_command): Set update_status to 2 for error.  Set it to
3984         1 when we would run a command and question_flag is set.
3986         * read.c (read_makefile): Don't mark makefiles as precious.  Just
3987         like other targets, they can be left inconsistent and in need of
3988         remaking by aborted commands.
3990         * read.c (read_makefile): Write no error msg for -include file.
3992 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3994         * commands.c (fatal_error_signal): Don't unblock signals.
3996         * file.h (struct file): Change member `double_colon' from flag to
3997         `struct file *'.
3998         * read.c (record_files): Set double_colon pointer instead of flag.
3999         * main.c (main): When disqualifying makefiles for updating, use
4000         double_colon pointer to find all entries for a file.
4001         * file.c (enter_file): If there is already a double-colon entry
4002         for the file, set NEW->double_colon to that pointer.
4003         (file_hash_enter): Use FILE->double_colon to find all entries to
4004         set name.
4005         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
4006         (update_file): Use FILE->double_colon pointer to find all entries.
4007         (f_mtime): Likewise.
4008         (notice_finished_file): Propagate mtime change to all entries.
4010         * variable.c (try_variable_definition): Return after abort.
4012 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4014         * read.c (read_makefile): Remove unused variable.
4015         (parse_file_seq): When removing an elt that is just `)', properly
4016         fix up the previous elt's next pointer.
4018 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4020         * configure.in: Do AC_SET_MAKE.
4021         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
4023 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4025         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
4026         the search string is the empty string, find a match at the end of
4027         each word (using end_of_token in place of sindex).
4029         * misc.c (end_of_token): Don't treat backslashes specially; you
4030         can no longer escape blanks with backslashes in export, unexport,
4031         and vpath.  This was never documented anyway.
4033 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4035         * read.c (read_makefile): Variable name for `define' is not just
4036         first token; use whole rest of line and strip trailing blanks.
4038 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4040         * Version 3.70.1.
4042         * read.c (read_makefile): Add -d msg stating args.
4044         * read.c (read_makefile): Use isspace to skip over leading
4045         whitespace, and explicitly avoid skipping over tabs.  Don't want
4046         to skip just spaces though; formfeeds et al should be skipped.
4048         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
4050         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
4051         sizeof ar_name for max length to compare.
4053         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
4054         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
4056         * main.c (main): Call user_access after setting `program', in case
4057         it needs to use it in an error message.
4059         * read.c (read_makefile): Ignore an empty line starting with a tab.
4061 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4063         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
4064         AC_COMPILE_CHECK that is now its contents.
4066 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4068         * make.h: #undef strerror after #include <string.h>.
4069         [! ANSI_STRING]: Declare strerror.
4071 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4073         * misc.c (strerror): #undef any macro before function definition.
4075 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4077         * variable.c (try_variable_definition): Calculate BEG before loop
4078         to strip blanks by decrementing END.  Don't decr END to before BEG.
4080         * read.c (read_makefile): Skip over leading space characters, but
4081         not tabs, after removing continuations and comments (it used to
4082         use isspace).
4084 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4086         * variable.c (define_automatic_variables): In $(@D) et al, use
4087         patsubst to remove trailing slash.
4089         * commands.c (delete_target): New function, broken out of
4090         delete_child_targets.  Check for archive members and give special msg.
4091         (delete_child_targets): Use delete_target.
4093 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4095         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
4096         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
4098 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4100         * GNUmakefile (tarfiles): Omit make-doc.
4101         (make-$(version).tar): Include make.info*.
4103 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4105         * compatMakefile (configure, config.h.in): Comment out rules.
4107 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4109         * compatMakefile (binprefix, manprefix): New variables.
4110         (instname): Variable removed.
4111         (install): Use $({bin,man}prefix)make in place of $(instname).
4112         File targets likewised renamed.
4114 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4116         * Version 3.70 released.
4118 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4120         * Version 3.69.3.
4122         * read.c (parse_file_seq): Inside multi-word archive ref
4123         translation loop, check NEW1==0 at end and break out of the loop.
4125         * GNUmakefile (make-$(version).tar): Distribute install.sh.
4126         * install.sh: New file.
4128         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
4129         cmds outside subshell parens, to avoid "command not found" msgs
4130         from the shell.
4132 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4134         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
4135         Redirect output & error from get to /dev/null.
4136         Fix reversed sense of test.
4138 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4140         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
4141         braces inside if condition command; some shells lose.
4143 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4145         * Version 3.69.2.
4147         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
4148         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
4150         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
4152 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4154         * main.c (main): Cast result of pointer arith to unsigned int
4155         before passing to define_variable for envars.  Matters when
4156         sizeof(unsigned)!=sizeof(ptrdiff_t).
4158 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4160         * configure.in: Add new check for SCCS_GET_MINUS_G.
4161         * config.h.in: Add #undef SCCS_GET_MINUS_G.
4162         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
4163         place of `-G $@' in SCCS commands.
4164         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
4165         to "-G$@".
4167         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
4168         (so it goes in config.status), rather than afterward.
4170         * ar.c (ar_member_date): Don't call enter_file on the archive file
4171         if it doesn't exist (by file_exists_p).
4173         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
4174         with `$$dir/make.info' in install-info invocation (oops).
4176         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
4177         we do not unlink and free PATH.
4179         * file.c (print_file_data_base): Fix inverted calculation for
4180         average files per hash bucket.
4182         * read.c (readline): When we see a NUL, give only a warning and
4183         synthesize a newline to terminate the building line (used to
4184         fatal).  Move fgets call into the loop condition, and after the
4185         loop test ferror (used to test !feof in the loop).
4187 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4189         * configure.in: Check for strerror in AC_HAVE_FUNCS.
4191 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4193         Differentiate different flavors of missing makefile error msgs,
4194         removing gratuitous `fopen: ' and giving caller for included makefiles.
4195         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
4196         (perror_with_name, pfatal_with_name): Use strerror instead of
4197         replicating its functionality.
4198         * read.c (read_makefile): Return int instead of void.
4199         (read_all_makefiles, read_makefile): Change callers to notice zero
4200         return and give error msg.
4202 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4204         * Version 3.69.1.
4206         * default.c: Put `-G $@' before $< in SCCS cmds.
4208 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4210         * read.c (read_makefile): After trying a variable defn, notice if
4211         the line begins with a tab, and diagnose an error.
4213 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4215         * Version 3.69.
4217 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4219         * Version 3.68.10.
4221         * implicit.c (try_implicit_rule): Look for a normal rule before an
4222         archive rule.
4224 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4226         * function.c (expand_function: `sort'): Double NWORDS when it
4227         overflows, instead of adding five.
4229         * compatMakefile (clean): Remove loadavg.
4231 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4233         * Version 3.68.9.
4235         * file.h (NEW_MTIME): Define new macro.
4236         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
4237         current time returned from system.  Removed variable NOW.
4238         * remake.c (notice_finished_file): Use NEW_MTIME in place of
4239         current time here too.
4241 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4243         * Version 3.68.8.
4245         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
4246         cmds and !DEPS_CHANGED unless also !NOEXIST.
4248 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4250         * read.c (parse_file_seq): When converting multi-word archive
4251         refs, ignore a word beginning with a '('.
4253 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4255         * configure.in: Check for sys/timeb.h.
4256         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
4258 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4260         * Version 3.68.7.
4262         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
4263         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
4264         TARGNAME to initialize PERCENTS[0].
4266 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4268         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4269         Remove AC_USG; it is no longer used.
4271         * file.c (print_file): New function, broken out of
4272         print_file_data_base.
4273         (print_file_data_base): Call it.
4274         * rule.c (print_rule): New function, broken out of
4275         print_rule_data_base.
4276         (print_rule_data_base): Call it.
4278 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4280         * default.c (install_default_suffix_rules): New function, broken
4281         out of install_default_implicit_rules.
4282         (install_default_implicit_rules): Move suffix rule code there.
4283         * make.h: Declare install_default_suffix_rules.
4284         * main.c (main): Call install_default_suffix_rules before reading
4285         makefiles.  Move convert_to_pattern call before
4286         install_default_implicit_rules.
4288         * job.h (struct child): Make `pid' member type `pid_t' instead of
4289         `int'.
4291         * compatMakefile (RANLIB): New variable, set by configure.
4292         (glob/libglob.a): Pass RANLIB value down to submake.
4294         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
4295         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
4296         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
4297         defined but NOFILES_MAX is, define it to be that.
4299 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4301         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
4302         is distributed.
4304 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4306         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
4308 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4310         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
4311         is another symbol for | in some shells.
4312         * main.c (main): Add it to CMD_DEFS quoting list as well.
4314 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4316         * job.c (construct_command_argv_internal): Remove '=' from
4317         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
4318         first word without an unquoted '='.
4320         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
4322 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4324         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
4326         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
4328         * commands.c (delete_child_targets): Don't delete phony files.
4330         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
4331         see a `+' at the beginning of the command line.
4333 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4335         * Version 3.68.6.
4337 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4339         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
4341 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4343         * expand.c (variable_expand): Fatal on an unterminated reference.
4345 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4347         * Version 3.68.5.
4349         * variable.c (define_automatic_variables): Define new o_default
4350         variable `MAKE_VERSION' from version_string and remote_description.
4352         * make.h (version_string, remote_description): Declare these here.
4353         * main.c: Don't declare version_string.
4354         (print_version): Don't declare remote_description.
4356 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4358         * read.c (read_makefile): Free space pointed to by CONDITIONALS
4359         before restoring the old pointer.
4361 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4363         * compatMakefile ($(objs)): Depend on config.h.
4365         * GNUmakefile (build.sh.in): Depend on compatMakefile.
4367         * configure.in: Touch stamp-config after AC_OUTPUT.
4369 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4371         * Version 3.68.4.
4373 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4375         * make.h: Include <config.h> instead of "config.h".
4377 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4379         * main.c (main): Make all variables interned from ENVP be v_export.
4380         * variable.c (try_variable_definition): In v_default case, don't
4381         check for an o_file variable that `getenv' finds.
4383         * job.c (reap_children): New local variable ANY_LOCAL; set it
4384         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
4386         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
4388         * function.c (expand_function): #if 0 out freeing of ENVP since it
4389         is environ.
4391 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4393         * Version 3.68.3.
4395         * remote-stub.c (remote_status): Set errno to ECHILD before return.
4396         * job.c (reap_children): Scan the chain for remote children and
4397         never call remote_status if there are none.
4399         * function.c (expand_function: `shell'): #if 0 out calling
4400         target_environment; just set ENVP to environ instead.
4402         * job.c (reap_children): Check for negative return from
4403         remote_status and fatal for it.
4404         When blocking local child wait returns 0, then try a blocking call
4405         to remote_status.
4407 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4409         * compatMakefile (clean): Delete make.info* and make.dvi here.
4410         (distclean): Not here.
4412         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
4413         compilers that don't like enum values used as ints.
4415 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4417         * compatMakefile (loadavg): Add $(LOADLIBES).
4419 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4421         * Version 3.68.2.
4423         * compatMakefile (loadavg, check-loadavg): New targets.
4424         (check): Depend on check-loadavg.
4426         * compatMakefile (glob/libglob.a): Depend on config.h.
4428         * misc.c (log_access): Write to stderr instead of stdout.
4430 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4432         * Version 3.68.1.
4434 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4436         * configure.in (SYS_SIGLIST_DECLARED): In test program include
4437         <unistd.h> #ifdef HAVE_UNISTD_H.
4439         * compatMakefile (.PHONY): Put after `all' et al.
4441         * configure.in: Add AC_IRIX_SUN.
4443 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4445         * Version 3.68.
4447 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4449         * Version 3.67.8.
4451 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4453         * Version 3.67.7.
4455         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
4456         Run install-info script if present.
4458 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4460         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
4462         * configure.in: Add AC_STAT_MACROS_BROKEN.
4464 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4466         * Version 3.67.6.
4468         * read.c (read_makefile): Recognize directive `-include', like
4469         `include' but sets RM_DONTCARE flag.
4471         * variable.c (target_environment): If FILE is nil, use
4472         current_variable_set_list in place of FILE->variables.
4473         * function.c (expand_function: `shell'): Get an environment for
4474         the child from target_environment instead of using environ.
4476         * dep.h: Declare read_all_makefiles here.
4477         (RM_*): Define new enum constants.
4478         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4479         Treat it as a bit mask containing RM_*.
4480         (read_all_makefiles): For default makefiles, set D->changed to
4481         RM_DONTCARE instead of 1.
4482         * main.c: Don't declare read_all_makefiles here.
4483         (main): Check `changed' member of read_makefiles elts for RM_*
4484         flags instead of specific integer values.
4486 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4488         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
4490 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4492         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4493         as well as VPATH.
4494         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4495         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
4497         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4498         PERCENTS, whose storage is not consumed by create_pattern_rule.
4500         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4502 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4504         * Version 3.67.5.
4506         * rule.c (max_pattern_targets): New variable.
4507         (count_implicit_rule_limits): Compute its value.
4508         * rule.h: Declare it.
4509         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4510         times bigger.  Move adding new TRYRULES elt inside the inner
4511         targets loop, so each matching target gets its own elt in MATCHES
4512         and CHECKED_LASTSLASH.
4514         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4515         instead of just `file' in error msg.
4517 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4519         * job.c (construct_command_argv): Turn off
4520         --warn-undefined-variables around expansion of SHELL and IFS.
4521         * read.c (tilde_expand): Likewise for HOME.
4522         (read_all_makefiles): Likewise for MAKEFILES.
4523         * vpath.c (build_vpath_lists): Likewise for VPATH.
4525         * main.c (warn_undefined_variables_flag): New flag variable.
4526         (switches): Add --warn-undefined-variables.
4527         * make.h (warn_undefined_variables_flag): Declare it.
4528         * expand.c (warn_undefined): New function.
4529         (reference_variable): Call it if the variable is undefined.
4530         (variable_expand): In substitution ref, call warn_undefined if the
4531         variable is undefined.
4533         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4534         `%.tex: %.w %.ch' rules.
4535         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4536         (default_suffixes): Add `.ch'.
4538 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4540         * default.c (default_suffixes): Replace `.cweb' with `.w'.
4541         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4542         and `.w.tex'.
4544 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4546         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4548 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4550         * Version 3.67.4.
4552         * read.c (multi_glob): Don't free OLD and OLD->name in the
4553         FOUND!=0 fork.  Use new block-local variable F instead of
4554         clobbering OLD.
4556         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4557         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4558         contains no metacharacters.
4560 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4562         * ar.c (ar_glob{_match,_alphacompare}): New function.
4564         * dep.h [! NO_ARCHIVES]: Declare it.
4565         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4567         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4568         multi_glob (which doesn't take a 3rd arg).
4569         * rule.c (install_pattern_rule): Likewise.
4570         * default.c (set_default_suffixes): Here too.
4571         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4573         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4574         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4576 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4578         * compatMakefile (installdirs): Actually pass directory names.
4579         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4580         if it fails, echo a warning msg, but don't make the rule fail.
4582         * read.c (tilde_expand): New function, broken out of tilde_expand.
4583         (multi_glob): Call it.
4584         (construct_include_path): Expand ~ in directory names.
4585         * dep.h: Declare tilde_expand.
4586         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4587         (main): Expand ~ in -C args.
4588         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4590 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4592         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4594         * main.c (main): Put result of alloca in temporary variable with
4595         simple assignment, to make SGI compiler happy.
4597 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4599         * Version 3.67.3.
4601         * main.c (main): Before re-execing, remove intermediate files, and
4602         print the data base under -p.  Sexier debugging message.
4604         * implicit.c (pattern_search): Allocate an extra copy of the name
4605         of a winning intermediate file when putting it in FOUND_FILES.
4607 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4609         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4610         multi_glob (which doesn't take a 3rd arg).
4612         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
4613         chars within D_NAMLEN that are NULs.
4615         * main.c (decode_switches): Don't savestring ARGV[0] to put it
4616         into `other_args'.
4617         For string switch, don't savestring `optarg'.
4618         (main): Don't free elts of makefiles->list that are "-".
4619         Use alloca'd rather than savestring'd storage for elts of
4620         makefiles->list that are temporary file names.
4621         * read.c (read_all_makefiles): Don't free *MAKEFILES.
4622         * file.c (enter_file): Don't strip `./'s.
4623         * main.c (enter_command_line_file): New function.
4624         (main): Use it in place of enter_file for command-line goals from
4625         other_files, and for old_files and new_files.
4627 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4629         * Version 3.67.2.
4631         * compatMakefile (.SUFFIXES): Add .info.
4632         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
4633         else in $srcdir.  Use basename to remove dir name from installed name.
4635 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4637         * implicit.c (pattern_search): When interning FOUND_FILES, try
4638         lookup_file first; if found, free the storage for our copy of the name.
4640 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4642         * Version 3.67.1.
4644         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
4645         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
4647 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4649         * rule.c (convert_suffix_rule): New function.
4650         (convert_to_pattern): Use it instead of doing all the work here
4651         several times.
4652         For target suffix `.a', generate both the archive magic rule and
4653         the normal rule.
4655         * compatMakefile (distclean): Remove stamp-config.
4657 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4659         * Version 3.67.
4661         * file.c (remove_intermediates): Don't write extra space after `rm'.
4663         * main.c (struct command_switch.type): Remove `usage_and_exit'.
4664         (print_usage_flag): New variable.
4665         (switches: --help): Make type `flag', to set print_usage_flag.
4666         (init_switches): Remove `usage_and_exit' case.
4667         (decode_switches): Likewise.
4668         (decode_switches): Print usage if print_usage_flag is set.
4669         When printing usage, die with status of BAD.
4670         (main): Die with 0 if print_version_flag.
4672 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4674         * Version 3.66.
4676 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4678         * compatMakefile (installdirs): New target.
4679         (install): Depend on it.
4681 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4683         * Version 3.65.2.
4685 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4687         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
4688         set LASTPATH to PATH, not NEXT.
4690         * dir.c (read_dirstream): Break out of loop after incrementing
4691         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
4692         dereference DS->contents->files[DIRFILE_BUCKETS].
4694         * read.c (read_makefile): Clear no_targets after reading a
4695         targetful rule line.
4697         * main.c (main): If print_version_flag is set, exit after printing
4698         the version.
4699         (switches): Change --version docstring to say it exits.
4701         * make.h [butterfly]: #undef POSIX.
4703 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4705         * Version 3.65.1.
4707         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
4708         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
4710         * function.c (handle_function): Use fatal instead of
4711         makefile_fatal when reading_filename is nil.
4713         * configure.in: Add AC_GETGROUPS_T.
4714         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
4716 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4718         * Version 3.65.
4720 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4722         * function.c (handle_function): Fatal for unmatched paren.
4724 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4726         * Version 3.64.3.
4728         * commands.c (handling_fatal_signal): New variable.
4729         (fatal_error_signal): Set it.
4730         * job.c (reap_children): Avoid nonreentrant operations if that is set.
4731         * make.h: Declare handling_fatal_signal.
4733         * expand.c (reference_variable): New function, snippet of code
4734         broken out of simple-reference case of variable_expand.
4735         (variable_expand): Use it for simple refs.
4736         (variable_expand): When checking for a computed variable name,
4737         notice a colon that comes before the final CLOSEPAREN.  Expand
4738         only up to the colon, and then replace the pending text with a
4739         copy containing the expanded name and fall through to subst ref
4740         handling.
4741         (variable_expand): Don't bother expanding the name if a colon
4742         appears before the first $.
4743         (expand_argument): Use alloca instead of savestring.
4744         (variable_expand): For subst ref, expand both sides of = before
4745         passing to [pat]subst_expand.  Use find_percent instead of lindex
4746         to check the lhs for a %.
4748 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4750         * Version 3.64.2.
4752 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4754         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
4756         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
4757         not to multi_glob.
4759 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4761         * Version 3.64.1.
4763         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
4764         we read the member name in any of the fashions that allow it to be
4765         arbitrarily long.  Pass its negation to FUNCTION.
4766         (describe_member): Take TRUNCATED from ar_scan and print it.
4767         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
4768         the first sizeof (struct ar_hdr.ar_name) chars.
4769         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
4770         * ar.c (ar_member_date_1): Likewise.
4772 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4774         * job.c (reap_children): Before calling start_job_command to start
4775         the next command line, reset C->remote by calling start_remote_job_p.
4777 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4779         * arscan.c (ar_scan): New local var NAMEMAP.
4780         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
4781         flag IS_NAMEMAP.  When extracting the member name, always put a
4782         null at its end first.  If the name is "//" or "/ARFILENAMES", set
4783         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
4784         like " /N", get full name from NAMEMAP+N.
4785         Else if NAME looks like "#1/N", read N chars from the
4786         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
4787         the elt's data into alloca'd NAMEMAP.
4788         (ar_name_equal): #if 0 truncating code.
4790         * make.h: Don't declare vfork at all.  It returns int anyway,
4791         unless <unistd.h> declared it; and we conflicted with some systems.
4793         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
4794         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
4795         define it to something like "-no-print-directory".
4796         Use %g format instead of %f for floating-valued things.
4798 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4800         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
4801         to change remote-%.dep to remote-stub.dep.
4803 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4805         * Version 3.64.
4807 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4809         * compatMakefile (install): Remove - prefix from chgrp+chmod.
4811         * Version 3.63.8.
4813 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4815         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
4816         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
4817         else to "get".
4818         * default.c (default_variables): Set GET to macro SCCS_GET.
4820         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
4821         if nonzero.  I hope this is the last time this argument is added
4822         or removed.
4823         (read_makefile): Pass it 1 when parsing include file names.
4824         Pass it 1 when parsing target file names.
4825         Pass it 1 when parsing static pattern target pattern names.
4826         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
4827         * default.c (set_default_suffixes): Pass it 1 when parsing
4828         default_suffixes.
4829         * function.c (string_glob): Pass it 0 here.
4831 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4833         * misc.c (log_access): New function.
4834         ({init,user,make,child}_access): Call it.
4835         (child_access): Abort if !access_inited.
4837         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
4838         single-letter option.
4839         (init_switches, decode_switches, define_makeflags): An option with
4840         no single-letter version is no longer indicated by a value of -1;
4841         instead a value that is !isalnum.
4842         (init_switches): Don't put such switches into the string, only
4843         into the long_option table.
4845         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
4847         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
4848         bsdcc defined WIF* to use union wait.
4850         * main.c (struct command_switch): Change member `c' to type int.
4851         (switches): Make const.
4852         (decode_switches): Use `const struct command_switch *'.
4853         (define_makeflags): Likewise.
4855         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
4857 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4859         * Version 3.63.7.
4861         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
4862         Removed AC_MEMORY_H.
4863         * make.h [USG, NeXT]: Don't test these.
4864         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
4865         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
4866         [! ANSI_STRING]: Put decls of bcopy et al here.
4867         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
4868         [HAVE_SIGSETMASK]: Test this rather than USG.
4869         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
4870         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
4871         It doesn't hurt to do both if they are both defined, and testing
4872         USG is useless.
4873         * dir.c: Rationalize directory header conditionals.
4874         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
4876         * default.c (default_suffixes): Add `.txinfo'.
4877         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
4879         * variable.c (try_variable_definition): Replace RECURSIVE flag
4880         with enum FLAVOR, which can be simple, recursive, or append.
4881         Recognize += as append flavor.  Set new variable VALUE in a switch
4882         on FLAVOR.  For append flavor, prepend the variable's old value.
4883         If the variable was previously defined recursive, set FLAVOR to
4884         recursive; if it was defined simple, expand the new value before
4885         appending it to the old value.  Pass RECURSIVE flag to
4886         define_variable iff FLAVOR == recursive.
4888         * variable.c (try_variable_definition): Use alloca and bcopy for
4889         NAME, instead of savestring.  Might as well use stack storage
4890         since we free it immediately anyway.
4892 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4894         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
4896         * main.c (define_makeflags): Rename `struct flag' member `switch'
4897         to `cs', which is not a reserved word.
4899 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4901         * job.c (new_job): Call start_waiting_jobs first thing.
4902         (start_waiting_job): Changed return type from void to int.
4903         Return 0 when putting the child on the waiting_jobs chain.
4904         (start_waiting_jobs): Don't check load and job_slots here.
4905         Always take a job off the chain and call start_waiting_job on it;
4906         give up and return when start_waiting_job returns zero.
4908         * main.c (define_makeflags: struct flag): Change member `char c' to
4909         `struct command_switch *switch'.
4910         (ADD_FLAG): Set that to CS instead of CS->c.
4911         If CS->c is -1, increment FLAGSLEN for the long name.
4912         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
4913         the long name instead.
4915         * compatMakefile (stamp-config): New target of old config.h rule.
4916         Touch stamp-config after running config.status.
4917         (config.h): Just depend on stamp-config, and have empty commands.
4919 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4921         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
4923         * configure.in (AC_HAVE_FUNCS): Check for psignal.
4925 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4927         * main.c (long_option_aliases): Remove "new"; it is already an
4928         unambiguous prefix of "new-file".
4930 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4932         * Version 3.63.6.
4934 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4936         * vpath.c (selective_vpath_search): When adding the
4937         name-within-directory at the end of NAME, and we don't add a
4938         slash, don't copy FILENAME in one char too far into NAME.
4940         * variable.c (define_automatic_variables): Find default_shell's
4941         length with strlen, not numerology.
4943 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4945         * main.c (define_makeflags): Add the elts of a string option in
4946         reverse order, so they come out right when reversed again.
4948 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4950         * compatMakefile (make.info): Use `-o make.info'.
4952 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4954         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
4955         reflect new use.
4956         (objs): Replace remote.o with remote-$(REMOTE).o.
4957         (srcs): Replace remote.c with remote-$(REMOTE).c.
4958         (remote.o): Rule removed.
4960         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
4961         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
4962         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
4963         * build.template (REMOTE): New var; set to @REMOTE@.
4964         (objs): Add remote-${REMOTE}.o.
4966 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4968         * Version 3.63.5.
4970         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
4971         "Rejecting impossible" -d msg.
4973         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
4974         mod'd values there; never mod {OLD,NEW}HASH.
4976 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4978         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
4980         * compatMakefile (VPATH): Set this to @srcdir@.
4981         (srcdir): Set this to $(VPATH).
4983         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
4984         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
4985         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
4987         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
4989         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
4991 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4993         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
4994         as the sed delimiter char.
4996 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4998         * Version 3.63.4.
5000         * rule.h (struct rule): Removed `subdir' member.
5001         * rule.c (new_pattern_rule): No need to clear it.
5002         (count_implicit_rule_limits): Set the `changed' flag in each dep
5003         that refers to a nonexistent directory.  No longer set rule-global
5004         `subdir' flag with that information.
5005         (print_rule_data_base): Don't record info on `subdir' flags.
5007         * implicit.c (pattern_search): Check the DEP->changed flag rather
5008         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
5009         if it is set, the file might exist even though the DEP->changed
5010         flag is set.
5012         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
5013         name arg to dir_file_exists_p to check for existence of directory.
5015         * implicit.c (pattern_search): Inside dep-finding loop, set
5016         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
5017         rather than computing it anew.
5019         * commands.c (set_file_variables): Must alloca space for PERCENT
5020         and copy it, to avoid leaving the trailing `)' in the value.
5022         * misc.c (remove_comments): Fixed backslash-checking loop
5023         condition to allow it to look at the first char on the line.
5024         P2 >= LINE, not P2 > LINE.
5026         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
5027         $@, rm $@.old and mv $@ to $@.old.
5029         * variable.c (try_variable_definition): Take new args FILENAME and
5030         LINENO.  Fatal if the variable name is empty.
5031         * read.c (read_makefile): Change callers.
5032         * main.c (main): Likewise.
5034         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
5035         that configure will replace with the group owning /dev/kmem.
5037 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5039         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
5040         selective_vpath_search.
5041         (selective_vpath_search): Take second arg MTIME_PTR.
5042         If the dir cache thinks a file exists, stat it to make sure, and
5043         put the modtime in *MTIME_PTR.
5044         * remake.c (library_search): Take second arg MTIME_PTR.
5045         When we find a match, record its mtime there.
5046         Pass MTIME_PTR through to vpath_search to do same.
5047         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
5048         store it in FILE->last_mtime if set nonzero.
5049         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
5051         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
5052         so globbing looks somewhere it will find things.
5054         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
5055         not `$(srcdir)/make.info*'; no need to use basename.
5057 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5059         * Version 3.63.3.
5061         * compatMakefile (install): Add missing ;\s.
5063         Make -, @, and + prefixes on a pre-expanded command line affect
5064         all lines in the expansion, not just the first.
5065         * commands.h (struct commands): Replace `lines_recurse' member
5066         with `lines_flags'.
5067         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
5068         that flag byte.
5069         * commands.c (chop_commands): Set `lines_flags' instead of
5070         `lines_recurse'.  Record not only + but also @ and - prefixes.
5071         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
5072         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
5073         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
5074         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
5075         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
5076         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
5078         * remake.c (update_goal_chain): Set G->file to its prev after
5079         checking for G being finished, since that check needs to examine
5080         G->file.
5082         * configure.in (union wait check) [HAVE_WAITPID]: Try using
5083         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
5084         don't work together, we should not use union wait.
5086         * Version 3.63.2.
5088         * remake.c (update_goal_chain): When G->file->updated, move
5089         G->file to its prev.  We aren't finished until G->file is nil.
5091 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5093         * main.c (starting_directory): New global variable.
5094         (main): Set it to cwd after doing -Cs.
5095         (log_working_directory): Use it, rather than computing each time.
5096         * make.h: Declare it.
5098         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
5100         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
5101         ARGV, rather than LEN words plus one byte.
5103 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5105         * compatMakefile ($(bindir)/$(instname)): Put - before
5106         install_setgid command line, so its failure won't be an error.
5107         (infodir): New variable.
5108         (install): Depend on $(infodir)/$(instname).info.
5109         ($(infodir)/$(instname).info): New target.
5111         * read.c (read_makefile): If FILENAMES is nil when we see a line
5112         starting with a tab, don't treat it as a command.  Just fall
5113         through, rather than giving an error.
5115         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
5116         command line, don't clear it before continuing.  We want
5117         subsequent command lines to be ignored as well.
5119         * job.c (new_job): Before expanding each command line, collapse
5120         backslash-newline combinations that are inside var or fn references.
5122 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5124         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
5126         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
5128         * job.c [POSIX] (unblock_sigs): Made global.
5129         [!POSIX] (unblock_sigs): Move defns to job.h.
5130         * job.h [POSIX] (unblock_sigs): Declare.
5132 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5134         * read.c (read_makefile): In vpath parsing, after finding the
5135         pattern token, take entire rest of line as the search path, not
5136         just the next token.
5138         * compatMakefile (remote.o): Depend on remote-*.c.
5140 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5142         * commands.c (set_file_variables): Don't define any F or D versions.
5143         * variable.c (define_automatic_variables): Define them here as
5144         recursively-expanded variables that use the dir and notdir funcs.
5146         * variable.c (target_environment): In v_default case, don't export
5147         o_default or o_automatic variables.
5149         * configure.in (union wait check): Remove ` and ' inside C code;
5150         they confuse the shell script.
5152 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5154         * Version 3.63.1.
5156         * vpath.c (construct_vpath_list): When skipping further processing
5157         of an elt that is ".", don't also skip the code that pushes P past
5158         the next separator.
5160         * compatMakefile (distclean): Don't remove make-*.
5162         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
5163         defined.  If one cannot use WEXITSTATUS with a `union wait'
5164         argument, we don't want to believe the system has `union wait' at all.
5166         * remake.c (update_file): Do nothing to print "up to date" msgs.
5167         (update_goal_chain): Do it here instead.
5168         Use the `changed' flag of each goal's `struct dep' to keep track
5169         of whether files_remade (now commands_started) changed around a
5170         call to update_file for that goal.
5171         When a goal is finished, and its file's update_status is zero (i.e.,
5172         success or nothing done), test the `changed' flag and give an "up
5173         to date" msg iff it is clear.
5174         * make.h (files_remade): Renamed to commands_started.
5175         * remake.c: Changed defn.
5176         (update_goal_chain): Changed uses.
5177         * job.c (start_job_command): Increment commands_started here.
5178         (reap_children): Not here.
5180         * remake.c (update_goal_chain): Don't do anything with files'
5181         `prev' members.  update_file now completely handles this.
5183         * variable.c (target_environment): Don't expand recursive
5184         variables if they came from the environment.
5186         * main.c (define_makeflags): For flags with omitted optional args,
5187         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
5188         so stored cannot have more flags appended to the same word.
5190 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5192         * variable.c (print_variable_set): In vars/bucket calculation,
5193         don't spuriously multiply by 100.
5195         * Version 3.63.
5197         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
5198         Don't define if already defined.
5200         * remake.c (update_file): Don't keep track of the command_state before
5201         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
5202         and don't test it to decide to print the "is up to date" msg.
5203         Testing for files_remade having changed should always be sufficient.
5204         The old method lost when we are called in the goal chain run on a
5205         makefile, because the makefile's command_state is already
5206         `cs_finished' from the makefile chain run.
5208         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
5210         * configure.in: Rewrote wait checking.
5211         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
5212         Use AC_HAVE_FUNCS to check for waitpid and wait3.
5213         Use a compile check to test just for `union wait'.
5214         * job.c: Rewrote conditionals accordingly.
5215         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
5216         [HAVE_WAIT3]: Likewise.
5217         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
5219         * configure.in: Set CFLAGS and LDFLAGS before all checks.
5221         * dir.c: Add static forward decls of {open,read}_dirstream.
5223 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5225         * Version 3.62.31.
5227         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
5229         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
5230         * build.template (CFLAGS, LDFLAGS): Same here.
5231         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
5232         Set them to -g if not defined in the environment.
5234         * remake.c (library_search): Use LIBNAME consistently, setting it
5235         only once, to be the passed name sans `-l'.
5236         Pass new var FILE to be modified by vpath_search.
5238 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5240         * Version 3.62.30.
5242         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
5243         job_slots.
5245         * configure.in: Add AC_CONST for the sake of getopt.
5247         * read.c (read_makefile): Continue after parsing `override'
5248         directive, rather than falling through to lossage.
5249         Check for EOL or blank after "override define".
5251         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
5253 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5255         * Version 3.62.29.
5257         * main.c (define_makeflags): After writing everything into
5258         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
5259         just wrote " -".  Always terminate the string at *P.
5261         * remake.c (library_search): When constructing names in std dirs,
5262         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
5263         buffer we are writing into!).
5265 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5267         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
5268         define" when IGNORING is true.
5270         * compatMakefile (distclean): Remove config.status and build.sh.
5272 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5274         * Version 3.62.28.
5276         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
5277         (char *).
5279         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
5281         * variable.c (define_automatic_variables): Override SHELL value for
5282         origin o_env_override as well as o_env.
5284         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
5285         add the names of the glob objects (w/subdir) to %objs%.
5286         * build.template (globobjs): Removed.
5287         Take basename of $objs before linking.
5289 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5291         * Version 3.62.27.
5293         * configure.in (AC_OUTPUT): Also edit build.sh.
5294         * build.template: New file.
5295         * GNUmakefile (build.sh.in): New rule to create it from build.template.
5296         (make-$(version).tar.Z): Depend on build.sh.in.
5298         * main.c (die): Call print_data_base if -p.
5299         (main): Don't call it here.
5301         * compatMakefile (defines): Add @DEFS@.  configure should turn this
5302         into -DHAVE_CONFIG_H.
5304 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5306         * Version 3.62.26.
5308         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
5309         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
5310         * compatMakefile (install_setgid): New var, set by configure.
5311         (install): Install setgid $(group) only if $(install_setgid) is true.
5313 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5315         * job.c (load_too_high): If getloadavg fails with errno==0, give a
5316         message saying that load limits are not supported.
5318         * vpath.c (construct_vpath_list): Rewrote path deletion code to
5319         not try to use PATH's next link after freeing PATH.
5321         * main.c (define_makeflags): Rewritten; now handles string-valued
5322         option, and has no arbitrary limits.
5323         (switches): Set `toenv' flag for -I and -v.
5325         * main.c (decode_env_switches): Cast return value of alloca to char *.
5327         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
5328         setre[gu]id in place of set[gu]id.
5330 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5332         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
5333         origin o_default.
5335         * make.h [POSIX]: Don't test this to use ANSI_STRING.
5336         Testing STDC_HEADERS should be sufficient.
5338         * job.h: Declare start_waiting_jobs.
5340         * read.c (read_makefile): Add missing parens in if stmt that find
5341         conditional directives.
5343         * main.c (main): Declare init_dir.
5344         * implicit.c (pattern_search): Always use two % specs in a
5345         DEBUGP2, and always pass two non-nil args.
5346         Cast field width args to int.
5347         Add missing parens in !RULE->subdir if stmt.
5348         * function.c (expand_function, patsubst_expand): Add parens around
5349         assignments inside `while' stmts.
5350         * commands.c (print_commands): Cast field width args to int.
5352         * read.c (do_define): Cast return value of alloca to (char *).
5354         * main.c (init_switches): New function, broken out of decode_switches.
5355         (decode_switches): Take new arg ENV.  If set, ignore non-option
5356         args; print no error msgs; ignore options with clear `env' flags.
5357         (decode_env_switches): Rewritten to chop envar value into words
5358         and pass them to decode_switches.
5359         (switches): Set `env' flag for -I and -v.
5361         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
5363 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5365         * Version 3.62.25.
5367         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
5368         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
5369         we don't need these anyway.
5371         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
5372         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
5373         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
5374         but its set[gu]id functions aren't; its setre[gu]id functions work.
5376         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
5378         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
5380         * configure.in: Call AC_PROG_CC.
5381         * compatMakefile (CC): Define to @CC@ (autoconf magic).
5383         * compatMakefile: Add .NOEXPORT magic target.
5385 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5387         * main.c (print_version): Updated copyright to include 93.
5389 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5391         * make.h [_AIX]: Don't declare alloca.
5393 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5395         * Version 3.62.24.
5397         * compatMakefile (objs): Add signame.o.
5398         (srcs): Add signame.[ch].
5400         * compatMakefile (srcs): Add config.h.in.
5401         (remote.o): Add -I. before -I$(srcdir).
5403 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5405         * Version 3.62.23.
5407         * read.c (readline): Fatal when LEN==0, indicating a line starting
5408         with a NUL.
5409         (readline): Take new arg LINENO, for use in error msg.
5410         (read_makefile, do_define): Pass it.
5412         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
5413         (.c.o): Add -I. before -I$(srcdir).
5415 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5417         * read.c (read_makefile): Accept and ignore a rule with no targets.
5419         * compatMakefile (ALLOCA_SRC): New variable.
5420         (srcs): Include its value.
5422         * read.c (struct conditional): Renamed member `max_ignoring' to
5423         `allocated'; added new member `seen_else'.
5424         (conditional_line): Initialize seen_else flag when starting an `if...';
5425         set it when we see an `else'; fatal if set when we see `else'.
5426         (read_makefile): Fatal "missing `endif'" if there are any pending
5427         conditionals, not just if we are still ignoring.
5429 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5431         * compatMakefile (manext): Set to 1, not l.
5432         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
5434         * file.c (file_hash_enter): Don't call uniquize_deps here.
5435         * read.c (record_files): Likewise.
5436         * implicit.c (pattern_search): Likewise.
5437         * commands.c (set_file_variables): Call it only here.
5439         * default.c (default_variables) [__convex__]: FC=fc.
5441         * variable.c (target_environment): Expand the values of recursively
5442         expanded variables when putting them into the environment.
5443         * expand.c (recursively_expand): Made global.
5444         * make.h (recursively_expand): Declare it.
5446         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
5447         when a dep's command_state is cs_running or cs_deps_running.
5449         * read.c (read_makefile): Changed error msg for spurious cmds to
5450         not say "first target".
5452 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5454         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
5455         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
5456         * compatMakefile (config.h, configure, config.h.in): New rules.
5457         (defines): Removed @DEFS@.
5459 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5461         * compatMakefile (realclean): Just depend on distclean; no cmds.
5462         (distclean): Do what realclean did before; also remove Makefile and
5463         config.h; don't remove configure.
5464         (info, dvi): New targets; depend on make.{info,dvi}.
5465         (doc): Removed target.
5466         (MAKEINFO, TEXI2DVI): New vars.
5467         (make.info, make.dvi): Use them instead of explicit cmds.
5469 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5471         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
5473 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5475         * main.c (long_option_aliases): Add --new-file alias for -W.
5477         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5478         to CXXFLAGS.
5480         * read.c (do_define): Expand the variable name before using it.
5482         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5483         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5485         * remake.c (library_search): Search for libNAME.a in cwd; look in
5486         vpath before looking in standard dirs, not after.
5487         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5489 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5491         * default.c (default_pattern_rules, default_terminal_rules): Added
5492         brackets around initializers.
5494         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5495         (try_variable_definition): Expand the name before defining the var.
5497         * job.c (init_siglist): Removed function.
5498         Removed decl of `sys_siglist'.
5499         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5500         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5501         only under these conditions.
5502         * main.c (main): Don't declare init_siglist.
5503         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5505 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5507         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5508         nil; instead just set it to MOREDEPS.
5510 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5512         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5513         loop that sets MAXELEM.
5515 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5517         * Version 3.62.22.
5519 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5521         * job.c (start_job_command): Under -n, increment files_remade after
5522         processing (i.e., printing) all command lines.
5524 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5526         * read.c (record_files): Append new deps if this rule has no
5527         commands; prepend them to existing deps if this rule has no commands.
5529         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5531         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
5532         (read_makefile): Changed callers.
5533         * function.c (string_glob): Likewise.
5534         * rule.c (install_pattern_rule): Likewise.
5536 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5538         * remake.c (files_remade): Made global.
5539         (notice_finished_file): Don't increment files_remade here; this
5540         function gets called in many situations where no remaking was in
5541         fact done.
5542         * job.c (reap_children): Do it here instead, when we know that
5543         actual commands have been run for the file.
5544         * make.h (files_remade): Declare it.
5546 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5548         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5549         separate elts in the search path.
5551         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5552         The search path can contain spaces now.
5554 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5556         * compatMakefile (check): New target; no-op.
5558         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5559         testing for OLDHASH==0 but before using the value.
5560         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5561         to file_hash_enter.
5563         * file.c (rename_file): Notice when OLDFILE->cmds came from
5564         default.c, and don't try to print ->filename in that case.
5566 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5568         * remake.c (update_file): Don't process F->also_make here.
5569         (notice_finished_file): Don't process FILE->also_make if no attempt
5570         to update FILE was actually made.
5571         Fixed to call f_mtime directly to refresh their modtimes.
5573 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5575         * read.c (find_percent): Don't increment P again after skipping
5576         an escaped %.
5578         * expand.c (variable_expand): In call to patsubst_expand, don't
5579         find `%'s ourselves; let that function do it.
5581         * read.c (read_makefile: record_waiting_files): Don't call
5582         record_files if FILENAMES is nil.
5583         (read_makefile): All alternatives in the parsing, except for rule
5584         lines, fall through to the end of the loop.  At the end of the
5585         loop, do record_waiting_files so we notice later spurious cmds.
5587 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5589         * variable.c (define_automatic_variables): Free old value of SHELL
5590         before replacing it.
5592 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5594         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5596         * dir.c (open_dirstream): Cast return value to __ptr_t.
5598         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5600         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5601         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5602         Define as (get_path_max ()).
5603         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5604         [! PATH_MAX] (get_path_max): Declare fn.
5605         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5607 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5609         * Version 3.62.21.
5611         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
5612         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5613         SYS_SIGLIST_DECLARED.
5615         * dir.c (file_impossible): When initializing DIR->contents, set
5616         DIR->contents->dirstream to nil.
5618         * compatMakefile (GLOB): Define new variable.
5619         (objs): Use it, rather than glob/libglob.a explicitly.
5621         * read.c (parse_file_seq): When stripping "./", handle cases like
5622         ".///foo" and "./////".
5623         * file.c (lookup_file, enter_file): Likewise.
5625 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5627         * dir.c (struct dirstream, {open,read}_dirstream): New
5628         data type and functions to read a directory sequentially.
5629         (init_dir): New function to hook it into glob.
5630         * main.c (main): Call init_dir.
5632         * compatMakefile (objs): Added glob/libglob.a.
5633         * configure.in: Remove code to test for glob.
5635 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5637         * read.c (record_files): Generalized test for NAME pointing
5638         somewhere into F->name.
5640         * variable.c (define_variable_in_set): Free old value when replacing.
5642         * read.c (do_define): Free the linebuffer before returning.
5643         (record_files): When clearing .SUFFIXES deps, free their data.
5644         (multi_glob): Free OLD and its data when replacing it with results
5645         of glob run.
5647         * commands.c (set_file_variables): Use alloca in place of xmalloc
5648         for temp space for $^, $?, et al.
5650         * dir.c (struct directory): New member `contents' replaces `files'
5651         and `dirstream'.
5652         (struct directory_contents): New type.
5653         (directories_contents): New hash table.
5654         (dir_struct_file_exists_p): Take a struct directory_contents.
5655         (dir_file_exists_p): Pass it the `contents' member of the dir found.
5656         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
5657         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
5658         (dir_file_exists_p, find_directory): Change all callers.
5659         (file_impossible): Use DIR->contents, initializing it if nil.
5660         (print_dir_data_base): Use DIR->contents, and print out device and
5661         inode numbers with each directory.
5663         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
5664         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
5665         (DIRFILE_BUCKETS): Decrease to 107.
5666         (find_directory): Allocate and zero a multiple of
5667         sizeof (struct dirfile *), not of sizeof (struct dirfile).
5668         (dir_struct_file_exists_p): New function, nearly all code from
5669         dir_file_exists_p.
5670         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
5671         * vpath.c (selective_vpath_search): Remove redundant
5672         dir_file_exists_p call.
5674         * configure.in: Comment out glob check; always use our code.
5676 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5678         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5679         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
5680         do have it.
5682 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5684         * main.c (main): Don't do -w automatically if -s.
5686 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5688         * main.c (printed_version): Move variable inside print_version.
5689         (print_version): Return immediately if printed_version is set.
5690         (die): Don't test printed_version here.
5691         (decode_switches): Under -v, do print_version before giving usage.
5692         (DESCRIPTION_COLUMN): New macro.
5693         (decode_switches): Use it when printing the usage message.
5694         Leave at least two spaces between options and their descriptions.
5696 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5698         * Version 3.62.20.
5700 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5702         * read.c (read_makefile): Save errno value from trying to open
5703         FILENAME, and restore it before erring; otherwise we get the errno
5704         value from the last elt of the search path.
5706 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5708         * main.c (long_option_aliases): Add --stop for -S.
5710         * read.c (word1eq): Do strncmp before dereferencing someplace that
5711         may be out in space.
5713 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5715         * remake.c (notice_finished_file): If all the command lines were
5716         recursive, don't do the touching.
5718         * job.c (start_job_command): Don't check for + here.
5719         * commands.c (chop_commands): Do it here instead.
5721         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
5723 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5725         * compatMakefile (objs): Include $(ALLOCA).
5727         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
5729 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5731         * read.c (default_include_directories): Add INCLUDEDIR first.
5732         * compatMakefile (includedir): Define.
5733         (defines): Add -D for INCLUDEDIR="$(includedir)".
5735         * read.c (read_makefile): Grok multiple files in `include';
5736         globbing too.
5738         * remake.c (library_search): New function.
5739         (library_file_mtime): Remove function.
5740         (f_mtime): Use library_search instead of library_file_mtime.
5741         * compatMakefile (libdir): Define.
5742         (defines): Add -D for LIBDIR="$(libdir)".
5743         * make.texinfo (Libraries/Search): Document change.
5745         * file.c (rename_file): Fix file_hash_enter call with missing arg.
5747 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5749         * Version 3.62.19.
5751         * main.c (main): Set command_state to cs_finished for temp files
5752         made for stdin makefiles.
5754         * main.c (decode_switches): Don't tell getopt to return non-option
5755         args in order.
5756         Ignore an argument of `-'.
5758 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5760         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
5761         the command line and go to the next.
5762         (notice_finished_file): Under -t, touch FILE.
5763         * remake.c (remake_file): Don't touch it here.
5765 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5767         * function.c (pattern_matches): Use temporary for strlen (WORD)
5768         instead of two function calls.
5770         * compatMakefile (LOAD_AVG): Remove variable and comments.
5772 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5774         * make.texinfo (Running): Node renamed to `make Invocation'.
5776 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5778         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
5779         NAMELEN != MEMLEN.
5781 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5783         * Version 3.62.18.
5785         * main.c: Don't #include <time.h>; make.h already does.
5787 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5789         * implicit.c (pattern_search): Fixed copying of suffix when building
5790         also_make elts.
5792         * function.c (expand_function: `shell'): Make sure BUFFER is
5793         null-terminated before replacing newlines.
5795         * compatMakefile (mandir): Use man$(manext), not always manl.
5797 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5799         * rule.c (new_pattern_rule): Not static.
5800         * rule.h: Declare it.
5802         * file.c (file_hash_enter): New function, most code from rename_file.
5803         (rename_file): Call it.
5804         * file.h (file_hash_enter): Declare it.
5806         * dep.h: Doc fix.
5808 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5810         * main.c (decode_switches): Handle usage_and_exit when building
5811         long options vector.
5813         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
5814         (default_variables): Define CHECKOUT,v (hairy).
5816         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5817         sys_siglist to _sys_siglist.
5819 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5821         * NEWS: Add header and tail copyright info like Emacs NEWS.
5823         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
5824         bcopy if already #define'd.
5825         [STDC_HEADERS] (qsort, abort, exit): Declare here.
5826         [! __GNU_LIBRARY__ && !POSIX]: Not here.
5828         * make.h [_AIX]: #pragma alloca first thing.
5830         * job.c (start_waiting_job): Set the command_state to cs_running
5831         when we queue a job on waiting_jobs.
5833 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5835         * variable.c (define_automatic_variables): Use "" instead of nil
5836         for empty value.
5838 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5840         * Version 3.62.17.
5842         * main.c (struct command_switch.type): Add alternative usage_and_exit.
5843         (command_switches): Add -h/--help.
5845 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5847         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
5848         * README.template: Mention NEWS.
5849         * CHANGES: Renamed to NEWS.
5851         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
5853 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5855         * main.c (main): Set -o files' command_states to cs_finished.
5857         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
5858         when tossing a rule.
5860         * main.c (main): Use alloca only in simple local var assignment,
5861         for braindead SGI compiler.
5863         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
5864         inconsistent with the number computed when listing them.
5866 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5868         * commands.c (set_file_variables): For $? and $^ elts that are archive
5869         member refs, use member name only.
5871 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5873         * variable.h (struct variable.export): Add new alternative v_ifset.
5874         * variable.c (target_environment): Check for it.
5875         (define_automatic_variables): Set it for MAKEFILES.
5877 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5879         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
5880         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
5881         (distclean, mostlyclean): New targets.
5883 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5885         * Version 3.62.16.
5887         * compatMakefile (config.status): Remove rule.
5889         * job.c (start_waiting_job): Free C after using C->file, not before.
5891 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5893         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
5894         HAVE_* instead of #ifndef *_MISSING.
5895         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
5897 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5899         * main.c (main): makelevel>0 or -C implies -w.
5901 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5903         * file.c, job.c, function.c: Don't #include <errno.h>.
5904         make.h: Do it here instead.
5905         * arscan.c (ar_member_touch): Don't declare errno.
5907 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5909         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
5911         * remake.c (update_file): If commands or deps are running after
5912         update_file_1 returns, break out of the :: rule (->prev) loop and
5913         just return.
5915         * job.c (job_next_command): New function; code from start_job.
5916         (start_job_command): Renamed from start_job.  Call job_next_command
5917         and recurse for empty command lines and -n.
5918         (start_waiting_job): Call start_job_command, not start_job.
5919         (new_job): Call job_next_command to prime the child structure, and
5920         then call start_waiting_job.
5921         (reap_children): Use job_next_command and start_job_command.
5922         (start_waiting_job): Call start_remote_job_p here, and store its
5923         result in C->remote.  If zero, check the load average and
5924         maybe put C on waiting_jobs.
5925         (start_job_command): Test CHILD->remote rather than calling
5926         start_remote_job_p.  Don't do load avg checking at all here.
5928         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
5929         SIGSEGV, SIGFPE or SIGTRAP.
5931         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
5932         configure will set it in glob/Makefile.
5934 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5936         * dir.c [DIRENT] (direct): Don't define to dirent.
5937         [! DIRENT] (direct): Define to dirent.
5938         (dir_file_exists_p): Use struct dirent instead of struct direct.
5940         * make.h (getcwd): No space between macro and ( for args!
5942         * job.c (start_job): Don't put the job on waiting_jobs if
5943         job_slots_used==0.
5945         * make.texinfo (Missing): Shortened title.
5947 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5949         * file.c (remove_intermediates): Print "rm" commands under -n.
5951 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5953         * Version 3.62.15.
5955 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5957         * arscan.c [M_UNIX]: #undef M_XENIX.
5959 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5961         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
5963 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5965         * compatMakefile (getloadavg.o): Removed special rule.
5966         (CFLAGS): Don't include $(defines).
5967         (.c.o): Define suffix rule.
5968         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
5969         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
5971         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
5973         * make.h (max): Removed.
5974         * expand.c (variable_buffer_output): Don't use it.
5976         * compatMakefile (INSTALL): Define.
5977         (Makefile): New rule to make from Makefile.in.
5978         (srcdir): Define.
5979         (VPATH): Define.
5980         (getloadavg.o, remote.o): Use autoconf $foo< hack.
5982         * commands.c (fatal_error_signal): Removed return.
5984 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5986         * Version 3.62.14.
5988         * make.texinfo (Summary): New node.
5989         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
5991         * variable.c (max): Moved to make.h.
5993         * compatMakefile (objs, srcs): Added ar & arscan.
5995         * job.c (start_waiting_job): New function, 2nd half of new_job.
5996         (new_job): Call it.
5997         (start_waiting_jobs): New function.
5998         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
5999         of the main loop.
6000         * compatMakefile (objs, srcs): Removed load, added getloadavg.
6002 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6004         * job.c (load_too_high): New function.  Uses getloadavg.
6005         (waiting_jobs): New variable.
6006         (start_job): Don't call wait_to_start_job.  Instead, if
6007         load_too_high returns nonzero, add the child to the
6008         `waiting_jobs' chain and return without starting the job.
6010 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6012         * expand.c (variable_buffer_output): Made global again.
6013         * variable.h: And declare it.
6015         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
6016         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
6017         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
6018         for a slash in the archive at run time.
6019         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
6020         cope with trailing-slash and non-trailing-slash archives.
6022         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
6023         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
6025         * load.c (load_average) [sgi]: Use sysmp call.
6027         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
6028         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
6030         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
6031         (vfork, VFORK_NAME): Don't define.
6032         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
6034         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
6035         the each file.  Rearranged PATH_MAX hacking.
6036         * job.c: Rearranged NGROUPS_MAX hacking.
6038         * remake.c (fstat, time): Don't declare.
6040         * compatMakefile (defines): Value is @DEFS@.
6041         (LOADLIBES): Value is @LIBS@.
6042         (extras): Value is @LIBOBJS@.
6043         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
6044         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
6046         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
6048         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
6049         (getcwd): Just declare if present.  If not, declare as a macro
6050         using getwd, and declare getwd.
6051         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
6052         * main.c (main, log_working_directory): Use getcwd instead of getwd.
6054         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
6056         * make.h (SIGHANDLER, SIGNAL): Removed.
6057         (RETSIGTYPE): Define if not #define'd.
6058         * main.c (main): Use signal in place of SIGNAL.
6060         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
6062         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
6063         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
6065         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
6066         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
6068         * job.c (child_handler), commands.c (fatal_error_signal): Return
6069         RETSIGTYPE instead of int.
6070         * main.c (main): Declare fatal_error_signal and child_handler here
6071         to return RETSIGTYPE; removed top-level decl of former.
6073         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
6074         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
6076 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6078         * job.c [HAVE_WAITPID]: Test this instead of USG.
6079         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
6080         (GID_T): Don't #define.
6081         (search_path): Use gid_t instead of GID_T.
6082         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
6083         these individually instead of USG for all.
6084         * make.h (ctime): Don't declare.  #include time.h instead.
6085         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
6086         _POSIX_VERSION.
6087         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
6088         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
6090         * arscan.c: Removed #ifdef mess about string.h et al.
6091         Just #include make.h instead.
6092         * make.h (fstat, atol): Declare.
6094         * commands.c (fatal_error_signal): Don't use sigmask to check for
6095         propagated signals; use ||s instead.
6096         (PROPAGATED_SIGNAL_MASK): Removed.
6097         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
6099         * variable.c (variable_buffer, variable_buffer_length,
6100         initialize_variable_output, variable_output): Moved to expand.c;
6101         made all static.
6102         (struct output_state, save_variable_output,
6103         restore_variable_output): Removed.
6104         * expand.c (initialize_variable_output): Put a NUL at the beginning
6105         of the new buffer after allocating it.
6106         (allocated_variable_expand_for_file): Don't use
6107         {save,restore}_variable_output.  Do it by hand instead, keeping
6108         state on the stack instead of malloc'ing it.
6109         (allocated_variable_expand): Removed.
6110         * variable.h (allocated_variable_expand): Define here as macro.
6111         (variable_buffer_output, initialize_variable_output,
6112         save_variable_output, restore_variable_output): Removed decls.
6114         * read.c (conditional_line): For an if cmd, if any elt of the
6115         conditionals stack is ignoring, just push a new level that ignores
6116         and return 1; don't evaluate the condition.
6118 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6120         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
6122         * job.c (getdtablesize): Don't declare or #define if already #define'd.
6124 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6126         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
6127         export_all_variables.
6128         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
6130 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6132         * Version 3.62.13.
6134         * commands.c (set_file_variables): Calculate length for ^D and ?D
6135         individually, making sure to give them at least enough space for "./".
6137         * make.h [CRAY]: #define signal to bsdsignal.
6139         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
6140         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
6142         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
6143         wasn't defined by <ar.h>.
6145 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6147         * Version 3.62.12.
6149 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6151         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
6152         pattern_rules.
6154 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6156         * main.c (decode_switches): Initialize all the long_option elt members.
6158 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6160         * make.texinfo (Text Functions): Correct filter-out description.
6162 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6164         * compatMakefile (realclean): Don't remove backup files.
6166         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
6168 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6170         * Version 3.62.11.
6172 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6174         * job.c (reap_children): Don't die if wait returns EINTR.
6176 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6178         * job.c (reap_children): Always run the next command for a
6179         successful target.  If we are going to die, we don't want to leave
6180         the target partially made.
6182 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6184         * job.c (construct_command_argv_internal): After loop, if we only
6185         have one word, check it for being a shell command.
6187         * main.c (decode_switches): Allocate ARGC slots in other_args to
6188         begin with, so we never need to worry about growing it.
6189         If we get a non-option arg and POSIXLY_CORRECT is in the
6190         environment, break out of the loop.  After the loop, add all remaining
6191         args to other_args list.
6193         * main.c (decode_switches): For positive_int and floating switches
6194         when optarg is nil, use next arg if it looks right (start with a
6195         digit, or maybe decimal point for floating).
6197         * variable.c (define_automatic_variables): Always set SHELL to
6198         default if it comes from the environment.  Set its export bit.
6199         * make.texinfo (Environment): Document change.
6201 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6203         * Version 3.62.10.
6205         * compatMakefile (tags, TAGS): Use vars for cmds.
6206         (ETAGS, CTAGS): Define.
6208         * main.c (decode_switches): If a switches elt has a nil long_name,
6209         make the long option name elt be "".
6210         Fixed loop to not ignore all the options.
6212         * make.texinfo (Option Summary): Added long options.
6214         * main.c (switches): Changed -m's description to "-b".
6215         (decode_switches): When printing the usage message, don't print
6216         switches whose descriptions start with -.
6217         When constructing the list of names for switch -C, search the
6218         switches vector for switches whose descriptions are "-C".
6220         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
6221         Call -I --include-dir, not --include-path.
6222         (long_option_aliases): Added --new == -W, --assume-new == -W,
6223         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
6224         --makefile == -f.
6226         * main.c (switches): Removed bogus "silent" elt.
6227         (long_option_aliases): Define new var.
6228         (decode_switches): Add long_option_aliases onto the end of the long
6229         options vector created for getopt_long.
6230         Look through long_option_aliases for extra names to list
6231         in usage message.
6233 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6235         * main.c (log_working_directory): Fixed to properly not print the
6236         leaving message when we haven't printed the entering message.
6238 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6240         * main.c (struct command_switch): Added elts `long_name',
6241         `description', and `argdesc'.
6242         (switches): Added initializers for new members.
6243         (decode_switches): Rewritten to use getopt_long.
6244         * compatMakefile (GETOPT, GETOPT_SRC): Define.
6245         (objs, srcs): Include them.
6247         * job.c (child_died): Renamed to dead_children; made static.
6248         (child_handler): Increment dead_children instead of setting child_died.
6249         (reap_children): Decrement dead_children instead of clearing
6250         child_died.  The point of all this is to avoid printing "waiting
6251         for unfinished jobs" when we don't actually need to block.
6252         This happened when multiple SIGCHLDs before reap_children was called.
6254         * job.c (reap_children): If ERR is set, so we don't call start_job
6255         on the child being reaped, instead set its command_state to
6256         cs_finished.
6257         (reap_children, child_handler, new_job): I added several
6258         debugging printf's while fixing this.  I left them in if (debug_flag)
6259         because they may be useful for debugging this stuff again.
6261 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6263         * read.c (read_makefile): v_export is not 1.
6265 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6267         * Version 3.62.9.
6269         * variable.c (export_all_variables): New variable.
6270         (target_environment): Export variables whose `export' member is
6271         v_default if export_all_variables is set and their names are benign.
6272         * variable.h: Declare export_all_variables.
6273         * read.c (read_makefile): If export or unexport is given with no
6274         args, set or clear export_all_variables, respectively.
6276         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
6277         so it isn't duplicated when we add it at the end.
6279 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6281         * Version 3.62.8.
6283         * variable.h (struct variable): Added new member `export'.
6284         * variable.c (define_variable_in_set): Initialize it to v_default.
6285         (target_environment): Don't check for .NOEXPORT.
6286         Export variables whose `export' member is v_default and that would
6287         have been exported under .NOEXPORT, and variables whose `export'
6288         member is v_export.
6289         (try_variable_definition): Return the variable defined.
6290         * variable.h (try_variable_definition): Changed decl.
6291         * read.c (read_makefile): Recognize `export' and `unexport' directives.
6293 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6295         * main.c (main) [POSIX]: Reversed args to sigaddset.
6297 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6299         * job.c [POSIX || !USG] (unblock_sigs): New fn.
6300         (start_job): Block signals before forking.
6301         (new_job): Unblock signals after putting the new child on the chain.
6302         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
6303         int fatal_signal_mask.
6305         * load.c [sgi] (LDAV_CVT): Define.
6307 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6309         * Version 3.62.7.
6311         * load.c (load_average) [sgi]: Clear the high bit of the address
6312         from the symbol table before looking it up in kmem.
6314         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
6315         (remake_file): No longer needed in message here.
6317         * main.c (die): Call reap_children with BLOCK==1.
6319 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6321         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
6323 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6325         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
6326         not to head of chain.  Extract next ptr before we might do
6327         freerule, and use that for next iteration.
6328         (freerule): Still do next ptr frobbing if LASTRULE is nil.
6330 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6332         * job.c (child_error): Removed extra %s from error msg format.
6334         * Version 3.62.6.
6336         * job.c (reap_children): Don't start later commands in a sequence
6337         if ERR is nonzero.
6339         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
6341         * job.c (reap_children): New function; work that used to be done in
6342         child_handler.
6343         (child_died): New global var.
6344         (child_handler): Now just sets child_died.
6345         (wait_for_children): Removed.
6346         (unknown_children_possible, block_signals, unblock_signals,
6347         push_signals_blocked_p, pop_signals_blocked_p): Removed.
6348         (child_execute_job): Removed call to unblock_signals.
6349         (new_job): Removed calls to push_signals_blocked_p and
6350         pop_signals_blocked_p.
6351         * job.h: Declare reap_children, not wait_for_children.
6352         * commands.c (fatal_error_signal), job.c (new_job),
6353         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
6354         remake.c (update_goal_chain), function.c (expand_function: `shell'):
6355         Changed wait_for_children calls to reap_children.
6356         Some needed to be loops to wait for all children to die.
6357         * commands.c (fatal_error_signal), main.c (main,
6358         log_working_directory), function.c (expand_function): Removed calls
6359         to push_signals_blocked_p and pop_signals_blocked_p.
6360         * job.h: Removed decls.
6362         * job.h: Added copyright notice.
6364 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6366         * job.c (child_error): No *** for ignored error.
6368 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6370         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
6371         avoid compiler warnings.
6373         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
6374         blank.
6376 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6378         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
6379         avoid compiler warnings.
6381         * remake.c (notice_finished_file): Run file_mtime on the also_make
6382         files, so vpath_search can happen.
6384         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
6385         (alpha-files): Include test suite tar file.
6387 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6389         * Version 3.62.5.
6391 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6393         * remake.c (update_file, update_file_1): Do check_renamed on elts
6394         of dep chains when traversing them.  Something unrelated might have
6395         renamed one of the files the dep chain points to.
6397         * file.c (rename_file): If FILE has been renamed, follow its
6398         `renamed' ptr, so we get to the final real FILE.  Using the renamed
6399         ones loses because they are not in the hash table, so the removal
6400         code loops infinitely.
6402         * read.c (read_all_makefiles): Clobber null terminator into
6403         MAKEFILES expansion, so string passed to read_makefile is properly
6404         terminated.
6406 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6408         * commands.c (set_file_variables): $* for archive member with
6409         explicit cmds is stem of member, not of whole `lib(member)'.
6411 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6413         * Version 3.62.4.
6415 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6417         * rule.c (new_pattern_rule): Rules are identical only if all their
6418         targets match (regardless of order).
6420 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6422         * remake.c (remake_file): Changed error "no way to make" to "no
6423         rule to make".  Fiat Hugh.
6425         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
6426         behavior.
6428         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
6429         target.
6431 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6433         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
6434         environment to pass to child.
6435         * job.c (start_job): Pass it.
6437 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6439         * file.c (enter_file): Also strip ./s here, to get command-line
6440         target names.
6442         * remote-cstms.c: Add comment telling people to leave me alone.
6444         * compatMakefile (manpage install): Remove target before copying.
6446 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6448         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
6449         Added paragraph describing $? incompatibility with Unix and POSIX.2.
6451 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
6453         * function.c (expand_function: `shell'): Don't declare fork or pipe.
6454         Use vfork instead of fork.
6456 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6458         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
6459         intermediate files.
6461         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
6463 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6465         * Version 3.62.3.
6467 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6469         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6471 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6473         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6475         * read.c (record_files): Pass arg for %s in error msg.
6477         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6478         call.
6480 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6482         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6484 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6486         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6488 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6490         * Version 3.62.2.
6492 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6494         * job.c (construct_command_argv_internal): Correctly ignore
6495         whitespace after backslash-NL.
6497 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6499         * compatMakefile: Ignore errors from chgrp and chmod when installing.
6501 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6503         * main.c (main): When setting MAKELEVEL in the env to re-exec,
6504         allocate space so as not to clobber past the end of the old string.
6506         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6507         * compatMakefile (defines): Document HAVE_ALLOCA_H.
6509 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6511         * make.h [VFORK_MISSING]: Use fork instead.
6512         * compatMakefile (defines): Document same.
6514         * job.c (construct_command_argv_internal): Don't create an empty
6515         arg if backslash-NL is at beginning of word.
6517 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6519         * main.c [DGUX]: Call setvbuf as for USGr3.
6521         * job.c (construct_command_argv_internal): Notice correctly that
6522         backslash-NL is the end of the arg (because it is replaced with a
6523         space).
6525 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6527         * job.c (construct_command_argv_internal): If SHELL is nil, set it
6528         to default_shell before proceeding.
6530         * make.h [sgi]: No alloca.h, after all.
6532 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6534         * read.c (multi_glob): Cons up the chain of the results of glob
6535         from back to front, so it comes out in forward order.
6537         * job.c (construct_command_argv_internal): Don't eat char following
6538         backslash-NL.
6540 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6542         * Version 3.62.1.
6544         * default.c (default_variables) [ultrix]: GET=get, like USG.
6546         * job.c (construct_command_argv_internal): Remove tabs following
6547         backslash-NL combos in the input line, so they don't show up when
6548         that line is printed.
6550         * read.c (read_makefile): Don't collapse_continuations the line on
6551         input; do it on the copy we do remove_comments on.
6552         For rule lines, collapse_continuations the line after chopping
6553         ";cmds" off the end, so we don't eat conts in the cmds.
6554         Give error for ";cmds" with no rule.
6555         * job.c (construct_command_argv_internal): Eat backslash-NL combos
6556         when constructing the line to recurse on for slow, too.
6558 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6560         * file.c (enter_file): Don't strip leading `./'s.
6561         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6562         * default.c (set_default_suffixes), function.c (string_glob),
6563         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6565         * default.c (default_variables) [_IBMR2]: FC=xlf
6567         * job.c (construct_command_argv_internal): Turn backslash-NL and
6568         following whitespace into a single space, rather than just eating
6569         the backslash.
6571         * make.texinfo (Copying): @include gpl.texinfo, rather than
6572         duplicating its contents.
6574 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6576         * job.c (construct_command_argv_internal): Make sure not to bother
6577         processing an empty line.
6579         * Version 3.62.0.
6581         * job.c (construct_command_argv_internal): Always recurse for slow;
6582         simple case didn't handle finding newlines.
6584 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6586         * job.c (construct_command_argv_internal): Set RESTP properly when
6587         slow; don't \ify past a newline.
6589 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6591         * make.h [sgi]: #include <alloca.h>.
6595 See ChangeLog.1 for earlier changes.