* Ensure -Iglob comes before any user-specified CPPFLAGS.
[make.git] / ChangeLog
blobcd135efd48d7ddeb09fc9fc04f549c91dc0c39b1
1 1999-10-13  Paul D. Smith  <psmith@gnu.org>
3         * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
4         flag to CPPFLAGS, but that loses if the user specifies his own
5         CPPFLAGS; this one gets added _after_ his and if he happens to
6         have an old or broken glob.h--boom.  Instead, put it in GLOBINC
7         and SUBST it.
9         * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
10         these things get on the compile line well before the user's
11         CPPFLAGS.
13 1999-10-12  Paul D. Smith  <psmith@gnu.org>
15         * remake.c (notice_finished_file): If we get here and -n is set,
16         see if all the command lines are marked recursive.  If so, then we
17         ran every command there is, so check the mtime on this file just
18         like we would normally.  If not, we assume the command we didn't
19         run would updates the target and set mtime of the target to "very new".
21         * job.c (start_job_command): Update lines_flags in the file's cmds
22         structure with any per-line tokens we found (`@', `-', `+').
24 1999-10-08  Paul D. Smith  <psmith@gnu.org>
26         * variable.c (initialize_file_variables): Always recurse to
27         initialize the parent's file variables: the parent might not have
28         any rules to run so it might not have been initialized before
29         this--we need this to set up the chain properly for
30         target-specific variables.
32 1999-09-23  Paul D. Smith  <psmith@gnu.org>
34         * Version 3.78.1 released.
36         * make.texinfo: Update version/date stamp.
38         * main.c (main): Argh.  For some reason we were closing _all_ the
39         jobserver pipes before we re-exec'd due to changed makefiles.
40         This means that any re-exec got a "jobserver unavailable" error :-/.
41         I can't believe we didn't notice this before.
43 1999-09-22  Paul D. Smith  <psmith@gnu.org>
45         * Version 3.78 released.
47         * main.c (main): Only fail on multiple --jobserver-fds options if
48         they aren't all the same.  Some makefiles use things like
49         $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
50         --jobserver-fds to show up.
52 1999-09-16  Paul D. Smith  <psmith@gnu.org>
54         * main.c (define_makeflags): Zero out FLAGSTRING to avoid
55         uninitialized memory reads when checking *p != '-' in the loop.
57 1999-09-15  Paul D. Smith  <psmith@gnu.org>
59         * Version 3.77.97 released.
61         * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
62         makefile.
63         * Makefile.am (check-local): Print a success banner if the check
64         succeeds.
65         (check-regression): A bit of fine-tuning.
67 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
69         * README.DOS.template: Document requirements for the test suite.
70         * Makefile.DOS.template: Updates to allow the test suite to run
71         from "make check".
73         * main.c (main): Handle it if argv[0] isn't an absolute path.
75 1999-09-13  Paul D. Smith  <psmith@gnu.org>
77         * Version 3.77.96 released.
79         * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
80         all the right #defines to compile.
81         (check-regression): Look for the regression test suite in the make
82         package itself.  If we're building remotely, use symlinks to make
83         a local copy.
84         (dist-hook): Put the test suite into the tar file.
86         * configure.in: Look for perl for the test suite.
88 1999-09-10  Paul Eggert  <eggert@twinsun.com>
90         * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
91         later, and using GCC, define __STDC_EXT__; this works around a
92         bug in GCC 2.95.1.
94 1999-09-08  Paul D. Smith  <psmith@gnu.org>
96         * main.c (print_version): Ugh.  GLIBC's configure tries to check
97         make version strings and is too aggressive with their matching
98         expressions.  I've struck a deal with them to leave the version
99         output as-is for 3.78, and they'll change their configure checks
100         so that I can change this back in the future.
102 1999-09-07  Eli Zaretskii  <eliz@is.elta.co.il>
104         * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
105         and "unset" to the list of builtin shell commands.
107         * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
108         which is the canonical name of the DJGPP host.
110 1999-09-05  Paul D. Smith  <psmith@gnu.org>
112         * Version 3.77.95 released.
114         * make.texinfo (Make Errors): Document some new jobserver error
115         messages.
117 1999-09-04  Eli Zaretskii  <eliz@is.elta.co.il>
119         * make.texinfo (Make Errors): Document the hint about 8 spaces
120         instead of a TAB.
121         (Call Function, Quick Reference): Use @code{$(1)}, not @var.
123         * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
124         MS-DOS", since the MSDOS version could run on Windows.
126 1999-09-03  Paul D. Smith  <psmith@gnu.org>
128         * remake.c (notice_finished_file): Always set mtime_before_update
129         if it's not been set, not just if we ran some rules.  Otherwise we
130         may have a situation where a target's prerequisite was rebuilt but
131         not changed, so this target's rules weren't run, then
132         update_goal_chain() sees mtime_before_update != last_mtime and
133         thinks that the top-level target changed when it really didn't.
134         This can cause an infinite loop when remaking makefiles.
135         (update_goal_chain): If we get back to the top and we don't know
136         what the goal's last_mtime was, find it now.  We need to know so
137         we can compare it to mtime_before_update later (this is only
138         crucial when remaking makefiles--should we only do it then?)
140 1999-09-02  Paul D. Smith  <psmith@gnu.org>
142         * read.c (read_makefile): If "override" appears as the first
143         prerequisite, look further to ensure this is really a
144         target-specific variable definition, and not just some
145         prerequisite named "override".
147 1999-09-01  Paul D. Smith  <psmith@gnu.org>
149         * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
150         for W32 platforms.
151         * read.c (record_files) [WINDOWS32]: Allow backslash separators
152         for W32 platforms.
153         * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
154         separators for W32 platforms.
156         * configure.in (MAKE_HOST): Define it to be the canonical build
157         host info, now that we need AC_CANONICAL_HOST anyway (for large
158         file support).
159         * version.c (make_host): Define a variable to MAKE_HOST so we're
160         sure to get it from the local config.h.
161         * main.c (print_version): Use it in the version information.
162         * config.ami.template: Add MAKE_HOST.
163         * configh.dos.template: Ditto.
164         * config.h.W32.template: Ditto.
165         * config.h-vms.template: Ditto.
167         * main.c (main): Close the jobserver file descriptors if we need
168         to re-exec ourselves.
169         Also print more reasonable error if users force -jN for submakes.
170         This may be common for a while until people use the jobserver
171         feature.  If it happens, we ignore the existing jobserver stuff
172         and use whatever they specified on the commandline.
173         (define_makeflags): Fixed a long-standing bug: if a long name
174         only option comes immediately after a single letter option with no
175         argument, then the option string is constructed incorrectly.  For
176         example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
177         instead of "-w --jobserver-fds..."; add in an extra " -".
179         * make.texinfo (Phony Targets): Add another example of using
180         .PHONY with subdirectories/recursive make.
182 1999-08-30  Paul D. Smith  <psmith@gnu.org>
184         * README.W32.template: Renamed from README.W32 so it's
185         autogenerated during the dist.  A few minor modifications.
187         * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
188         since the latter needs to know whether the former exists to give
189         an accurate result.
191 1999-08-26  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
193         * NMakefile [WINDOWS32]: Now more robust. If you change a file
194         under w32/subproc, the make.exe will be relinked. Also added some
195         tests to make sure erase commands won't fail when executed in a
196         pristine build environment.
198         * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
199         HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
200         is now possible to have have native support for this shell without
201         having to rely on klutzy BATCH_MODE_ONLY_SHELL.
203         * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
204         users can define if they want to build make to use this shell.
206         * README.W32 [WINDOWS32]: Added informaton about
207         HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
209 1999-08-26  Paul Eggert  <eggert@twinsun.com>
211         Support large files in AIX, HP-UX, and IRIX.
213         * acinclude.m4 (AC_LFS): Remove.  Superseded by AC_SYS_LARGEFILE.
214         (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
215         AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
216         (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
217         shift or divide unsigned long long.
218         (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
219         automake 1.4.
221         * configure.in (AC_CANONICAL_HOST): Add; required by new
222         AC_SYS_LARGEFILE.
223         (AC_SYS_LARGEFILE): Renamed from AC_LFS.
224         (AM_PROG_CC_STDC): Add.
226         * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
228 1999-08-25  Paul Eggert  <eggert@twinsun.com>
230         * make.h (CHAR_MAX): New macro.
231         * main.c (struct command_switch): c is now int,
232         so that it can store values greater than CHAR_MAX.
233         (switches): Replace small numbers N with CHAR_MAX+N-1,
234         to avoid problems with non-ASCII character sets.
235         (short_option): New macro.
236         (init_switches, print_usage, define_makeflags): Use it instead of
237         isalnum.
239 1999-08-25  Paul D. Smith  <psmith@gnu.org>
241         * Version 3.77.94 released.
243         * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
244         not supported and reset it.
246         * make.h (ISDIGIT): Obtained this from the textutils distribution.
247         * main.c (decode_switches): Use it.
248         * function.c (is_numeric): Use it.
250         * main.c (struct command_switch): Store the switch char in an
251         unsigned char to shut up GCC about using it with ctype.h macros.
252         Besides, it _is_ always unsigned.
254 1999-08-24  Paul D. Smith  <psmith@gnu.org>
256         * make.texinfo: Change "dependency" to "prerequisite" and
257         "dependencies" to "prerequisites".  Various other cleanups related
258         to the terminology change.
259         * file.c: Change debugging and error messages to use
260         "prerequisite" instead of "dependency".
261         * implicit.c: Ditto.
262         * remake.c: Ditto.
263         * NEWS: Document it.
265 1999-08-23  Paul D. Smith  <psmith@gnu.org>
267         * remake.c (update_file): Move the considered check into the
268         double-colon rule loop, so we consider double-colon rules
269         individually (otherwise after the first is pruned, the rest won't
270         get run).
272         * README.template: Minor changes.
274         Remove the debugging features of the jobserver, so it no longer
275         writes distinct tokens to the pipe.  Thus, we don't need to store
276         the token we get.  A side effect of this is to remove a potential
277         "unavailable token" situation: make-1 invokes make-2 with its
278         special token and make-3 with a normal token; make-2 completes.
279         Now we're waiting for make-3 but using 2 tokens; our special token
280         is idle.  In the new version we don't have special tokens per se,
281         we merely decide if we already have a child or not.  If we don't,
282         we don't need a token.  If we do, we have to get one to run the
283         next child.  Similar for putting tokens back: if we're cleaning up
284         the last child, we don't put a token back.  Otherwise, we do.
286         * main.c: Add a new, internal flag --jobserver-fds instead of
287         overloading the meaning of -j.  Remove job_slots_str and add the
288         stringlist jobserver_fds.
289         (struct command_switch): We don't need the int_string type.
290         (switches[]): Add a new option for --jobserver-fds and remove
291         conditions around -j.  Make the description for the former 0 so it
292         doesn't print during "make --help".
293         (main): Rework jobserver parsing.  If we got --jobserver-fds
294         make sure it's valid.  We only get one and job_slots must be 0.
295         If we're the toplevel make (-jN without --jobserver-fds) create
296         the pipe and write generic tokens.
297         Create the stringlist struct for the submakes.
298         Clean up the stringlist where necessary.
299         (init_switches): Remove int_string handling.
300         (print_usage): Don't print internal flags (description ptr is 0).
301         (decode_switches): Remove int_string handling.
302         (define_makeflags): Remove int_string handling.
304         * job.c: Remove my_job_token flag and all references to the
305         child->job_token field.
306         (free_job_token): Remove this and merge it into free_child().
307         (reap_children): Rework the "reaped a child" logic slightly.
308         Don't call defunct free_job_token anymore.  Always call
309         free_child, even if we're dying.
310         (free_child): If we're not freeing the only child, put a token
311         back in the pipe.  Then, if we're dying, don't bother to free.
312         (new_job): If we are using the jobserver, loop checking to see if
313         a) there are no children or b) we get a token from the pipe.
315         * job.h (struct child): Remove the job_token field.
317 1999-08-20  Paul D. Smith  <psmith@gnu.org>
319         * variable.c (try_variable_definition): Allocate for variable
320         expansion in f_append with a simple variable: if we're looking at
321         target-specific variables we don't want to trash the buffer.
322         Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
324 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
326         * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
327         avoid problems in shell commands that use backslashes as escape
328         characters.
330 1999-08-16  Paul D. Smith  <psmith@gnu.org>
332         * Version 3.77.93 released.
334 1999-08-13  Paul D. Smith  <psmith@gnu.org
336         * function.c (func_if): New function $(if ...) based on the
337         original by Han-Wen but reworked quite a bit.
338         (function_table): Add it.
339         * NEWS: Introduce it.
340         * make.texinfo (If Function): Document it.
342         * job.c (free_job_token): Check for EINTR when writing tokens to
343         the jobserver pipe.
345 1999-08-12  Paul D. Smith  <psmith@gnu.org>
347         Another jobserver algorithm change.  We conveniently forgot that
348         the blocking bit is shared by all users of the pipe, it's not a
349         per-process setting.  Since we have many make processes all
350         sharing the pipe we can't use the blocking bit as a signal handler
351         flag.  Instead, we'll dup the pipe's read FD and have the SIGCHLD
352         handler close the dup'd FD.  This will cause the read() to fail
353         with EBADF the next time we invoke it, so we know we need to reap
354         children.  We then re-dup and reap.
356         * main.c (main): Define the job_rfd variable to hold the dup'd FD.
357         Actually dup the read side of the pipe.  Don't bother setting the
358         blocking bit on the file descriptor.
359         * make.h: Declare the job_rfd variable.
360         * job.c (child_handler): If the dup'd jobserver pipe is open,
361         close it and assign -1 to job_rfd to notify the main program that
362         we got a SIGCHLD.
363         (start_job_command): Close the dup'd FD before exec'ing children.
364         Since we open and close this thing so often it doesn't seem
365         worth it to use the close-on-exec bit.
366         (new_job): Remove code for testing/setting the blocking bit.
367         Instead of EAGAIN, test for EBADF.  If the dup'd FD has been
368         closed, re-dup it before we reap children.
370         * function.c (func_shell): Be a little more accurate about the
371         length of the error string to allocate.
373         * expand.c (variable_expand_for_file): If there's no filenm info
374         (say, from a builtin command) then reset reading_file to 0.
376 1999-08-09  Paul D. Smith  <psmith@gnu.org>
378         * maintMakefile: Use g in sed (s///g) to replace >1 variable per
379         line.
381         * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
382         remove the right files.
384 1999-08-01  Eli Zaretskii  <eliz@is.elta.co.il>
386         * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
387         ptr.
389 1999-08-01  Paul D. Smith  <psmith@gnu.org>
391         New jobserver algorithm to avoid a possible hole where we could
392         miss SIGCHLDs and get into a deadlock.  The original algorithm was
393         suggested by Roland McGrath with a nice refinement by Paul Eggert.
394         Many thanks as well to Tim Magill and Howard Chu, who also
395         provided many viable ideas and critiques.  We all had a fun week
396         dreaming up interesting ways to use and abuse UNIX syscalls :).
398         Previously we could miss a SIGCHLD if it happened after we reaped
399         the children but before we re-entered the blocking read.  If this
400         happened to all makes and/or all children, make would never wake
401         up.
403         We avoid this by having the SIGCHLD handler reset the blocking bit
404         on the jobserver pipe read FD (normally read does block in this
405         algorithm).  Now if the handler is called between the time we reap
406         and the time we read(), and there are no tokens available, the
407         read will merely return with EAGAIN instead of blocking.
409         * main.c (main): Set the blocking bit explicitly here.
410         * job.c (child_handler): If we have a jobserver pipe, set the
411         non-blocking bit for it.
412         (start_waiting_job): Move the token stuff back to new_job; if we
413         do it here then we're not controlling the number of remote jobs
414         started!
415         (new_job): Move the check for job slots to _after_ we've created a
416         child structure.  If the read returns without getting a token, set
417         the blocking bit then try to reap_children.
419         * make.h (EINTR_SET): Define to test errno if EINTR is available,
420         or 0 otherwise.  Just some code cleanup.
421         * arscan.c (ar_member_touch): Use it.
422         * function.c (func_shell): Use it.
423         * job.c (reap_children): Use it.
424         * remake.c (touch_file): Use it.
426 1999-07-28  Paul D. Smith  <psmith@gnu.org>
428         * make.h: Define _() and N_() macros as passthrough to initiate
429         NLS support.
430         * <all>: Add _()/N_() around translatable strings.
432 1999-07-27  Paul D. Smith  <psmith@gnu.org>
434         * read.c: Make sure make.h comes before other headers.
436 1999-07-26  Paul D. Smith  <psmith@gnu.org>
438         * make.texinfo (Quick Reference): Update with the new features.
440 1999-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
442         * remake.c [__MSDOS__]: Don't include variables.h, it's already
443         included.
445         * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
446         (func_shell) [__MSDOS__]: Fix the argument list.
448         * Makefile.DOS.template: Update from Makefile.in.
450         * README.DOS.template: Configure command fixed.
452         * configh.dos.template: Update to provide definitions for
453         uintmax_t, fd_set_size_t, and HAVE_SELECT.
455 1999-07-24  Paul D. Smith  <psmith@gnu.org>
457         * Version 3.77.91 released.
459         * configure.in: Changes to the boostrapping code: if build.sh.in
460         doesn't exist configure spits an error and generates an empty
461         build.sh file which causes make to be confused.
462         * maintMakefile: Don't build README early.
464 1999-07-23  Paul D. Smith  <psmith@gnu.org>
466         * job.c (my_job_token): This variable controls whether we've
467         handed our personal token to a subprocess or not.  Note we could
468         probably infer this from the value of job_slots_used, but it's
469         clearer to just keep it separately.  Job_slots_used isn't really
470         relevant when running the job server.
471         (free_job_token): New function: free a job token.  If we don't
472         have one, no-op.  If we have the personal token, reclaim it.  If
473         we have another token, write it back to the pipe.
474         (reap_children): Call free_job_token.
475         (free_child): Call free_job_token.
476         (start_job_command): Remove duplicate test for '+' in the command.
477         If we don't appear to be running a recursive make, close the
478         jobserver filedescriptors.
479         (start_waiting_job): If our personal token is available, use that
480         instead of going to the server pipe.
481         (*): Add the token value to many debugging statements, and print
482         the child target name in addition to the ptr hex value.
483         Change the default "no token" value from '\0' to '-' so it looks
484         better in the output.
486         * main.c (main): Install the child_handler with sigaction()
487         instead of signal() if we have it.  On SysV systems, signal() uses
488         SysV semantics which are a pain.  But sigaction() always does what
489         we want.
490         (main): If we got job server FDs from the environment, test them
491         to see if they're open.  If not, the parent make closed them
492         because it didn't think we were a submake.  Print a warning and
493         suggestion to use "+" on the submake invocation, and hard-set to
494         -j1 for this instance of make.
495         (main): Change the algorithm for assigning slots to be more
496         robust.  Previously make checked to see if it thought a subprocess
497         was a submake and if so, didn't give it a token.  Since make's
498         don't consume tokens we could spawn many of makes fighting for a
499         small number of tokens.  Plus this is unreliable because submakes
500         might not be recognized by the parent (see above) then all the
501         tokens could be used up by unrecognized makes, and no one could
502         run.  Now every make consumes a token from its parent.  However,
503         the make can also use this token to spawn a child.  If the make
504         wants more than one, it goes to the jobserver pipe.  Thus there
505         will never be more than N makes running for -jN, and N*2 processes
506         (N makes and their N children).  Every make can always run at
507         least one job, and we'll never deadlock.  (Note the closing of the
508         pipe for non-submakes also solves this, but this is still a better
509         algorithm.)  So!  Only put N-1 tokens into the pipe, since the
510         topmost make keeps one for itself.
512         * configure.in: Find sigaction.  Disable job server support unless
513         the system provides it, in addition to either waitpid() or
514         wait3().
516 1999-07-22  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
518         * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
519         string on Windows, not a timestamp.
521 1999-07-21  Paul D. Smith  <psmith@gnu.org>
523         * Version 3.77.90 released.
525         * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
527         * function.c: Rearrange so we don't need to predeclare the
528         function_table array; K&R C compilers don't like that.
530         * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
531         compiler!  Change to work with K&R compilers as well.
533         * configure.in (AC_OUTPUT): Put build.sh back.  I don't know how I
534         thought it would work this way :-/.  We'll have to think of
535         something else.
536         * Makefile.am: Remove rule to create build.sh.
538         * default.c (default_suffix_rules): Rearrange the default command
539         lines to conform to POSIX rules (put the filename argument $<
540         _after_ the OUTPUT_OPTION, not before it).
542         * various: Changed !strncmp() calls to strneq() macros.
544         * misc.c (sindex): Make slightly more efficient.
546         * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
547         * implicit.c (pattern_search): Ditto.
548         * main.c (enter_command_line_file): Ditto.
549         (main): Ditto.
550         * misc.c (copy_dep_chain): Ditto.
551         * read.c (read_makefile): Ditto.
552         (parse_file_seq): Ditto.
553         (tilde_expand): Ditto.
554         (multi_glob): Ditto.
555         * rule.c (install_pattern_rule): Ditto.
556         * variable.c (define_variable_in_set): Ditto.
557         (define_automatic_variables): Ditto.
558         * vpath.c (construct_vpath_list): Ditto.
560         * misc.c (xrealloc): Some reallocs are non-standard: work around
561         them in xrealloc by calling malloc if PTR is NULL.
562         * main.c (main): Call xrealloc() directly instead of testing for
563         NULL.
565         * function.c (func_sort): Don't try to free NULL; some older,
566         non-standard versions of free() don't like it.
568         * configure.in (--enable-dmalloc): Install some support for using
569         dmalloc (http://www.dmalloc.com/) with make.  Use --enable-dmalloc
570         with configure to enable it.
572         * function.c (function_table_entry): Whoops!  The function.c
573         rewrite breaks backward compatibility: all text to a function is
574         broken into arguments, and extras are ignored.  So $(sort a,b,c)
575         returns "a"!  Etc.  Ouch.  Fix it by making a positive value in
576         the REQUIRED_ARGS field mean exactly that many arguments to the
577         function; any "extras" are considered part of the last argument as
578         before.  A negative value means at least that many, but may be
579         more: in this case all text is broken on commas.
580         (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
581         (expand_builtin_function): Compare number of args to the absolute
582         value of REQUIRED_ARGS.
584 1999-07-20  Paul D. Smith  <psmith@gnu.org>
586         * job.c (start_job_command): Ensure that the state of the target
587         is cs_running.  It might not be if we skipped all the lines due to
588         -n (for example).
590         * commands.c (execute_file_commands): If we discover that the
591         command script is empty and succeed early, set cs_running so the
592         modtime of the target is still rechecked.
594         * rule.c (freerule): Free the dependency list for the rule.
596         * implicit.c (pattern_search): When turning an intermediate file
597         into a real target, keep the also_make list.
598         Free the dep->name if we didn't use it during enter_file().
600 1999-07-16  Paul D. Smith  <psmith@gnu.org>
602         * read.c (read_makefile): Don't allocate the commands buffer until
603         we're sure we found a makefile and won't return early (mem leak).
605         * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
606         not FD_SETFD.  Close-on-exec isn't getting set on the bad_stdin
607         file descriptor and it's leaking :-/.
608         * getloadavg.c (getloadavg): Ditto.
610 1999-07-15  Paul D. Smith  <psmith@gnu.org>
612         * read.c (read_makefile): Fix some potential memory stomps parsing
613         `define' directives where no variable name is given.
615         * function.c (func_call): Rename from func_apply.  Various code
616         cleanup and tightening.
617         (function_table): Add "call" as a valid builtin function.
619         * make.texinfo (Call Function): Document it.
621         * NEWS: Announce it.
623 1999-07-09  Eli Zaretskii  <eliz@is.elta.co.il>
625         * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
626         Treat "override SHELL=" the same as just "SHELL=".
628 1999-07-09  Paul D. Smith  <psmith@gnu.org>
630         * job.c (start_waiting_job): Don't get a second job token if we
631         already have one; if we're waiting on the load to go down
632         start_waiting_job() might get called twice on the same file.
634         * filedef.h (struct file): Add new field, mtime_before_update.
635         When notice_finished_file runs it assigns the cached last_mtime to
636         this field.
637         * remake.c (update_goal_chain): Notice that a file wasn't updated
638         by asking if it changed (g->changed) and comparing the current
639         cached time (last_mtime) with the previous one, stored in
640         mtime_before_update.  The previous check ("did last_mtime changed
641         during the run of update_file?") fails for parallel builds because
642         last_mtime is set during reap_children, before update_file is run.
643         This causes update_goal_chain to always return -1 (nothing
644         rebuilt) when running parallel (-jN).  This is OK during "normal"
645         builds since our caller (main) treats these cases identically in
646         that case, but if when rebuilding makefiles the difference is very
647         important, as it controls whether we re-exec or not.
648         * file.c (file_hash_enter): Copy the mtime_before_update field.
649         (snap_deps): Initialize mtime_before_update to -1.
650         * main.c (main): Initialize mtime_before_update on old (-o) and
651         new (-W) files.
653 1999-07-08  Paul D. Smith  <psmith@gnu.org>
655         * main.c (switches): Define a new switch -R (or
656         --no-builtin-variables).  This option disables the defining of all
657         the GNU make builtin variables.
658         (main): If -R was given, force -r as well.
659         * default.c (define_default_variables): Test the new flag.
660         * make.h: Declare global flag.
661         * make.texinfo (Options Summary): Document the new option.
662         (Implicit Variables): Ditto.
664 1999-07-06  Paul D. Smith  <psmith@gnu.org>
666         * make.texinfo (Options Summary): Correct examples in
667         --print-data-base option summary (problem reported by David Morse
668         <morse@nichimen.com>).
670         * arscan.c: Add support for archives in Windows (VC++).  Frank
671         Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
672         this.
673         * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
674         compile line.
675         * build_w32.bat: Ditto.
677         * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
678         give errors if you try to -include the same file twice.
679         (updating_makefiles): New variable: we need to know this info in
680         no_rule_error() so we know whether to print an error or not.
681         (update_file_1): Unconditionally call no_rule_error(), don't try
682         to play games with the dontcare flag.
684 1999-06-14  Paul D. Smith  <psmith@gnu.org>
686         * make.texinfo (Remaking Makefiles): Add a description of how to
687         prevent implicit rule searches for makefiles.
689         * make.1: Remove statement that make continues processing when -v
690         is given.
692 1999-06-14  Paul D. Smith  <psmith@gnu.org>
694         * read.c (read_makefile): Cast -1 arguments to
695         variable_expand_string() to long.  Alexandre Sauve
696         <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
697         on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
698         anyway).  Of course, (a) I'd really love to start using function
699         prototypes, and (b) there's a whole slew of issues related to int
700         vs. long and signed vs. unsigned in the length handling of
701         variable buffers, etc.  Gross.  Needs a complete mucking-out.
702         * expand.c (variable_expand): Ditto.
704         * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
705         Lars Hecking <lhecking@nmrc.ucc.ie>.
707         * read.c (get_next_mword): Allow colons to be escaped in target
708         names: fix for regression failure.
710 1999-04-26  Paul D. Smith  <psmith@gnu.org>
712         * main.c (main): Reset read_makefiles to empty after processing so
713         we get the right error message.
715 1999-04-25  Paul D. Smith  <psmith@gnu.org>
717         * make.texinfo: Updates to @dircategory and @direntry suggested by
718         Karl Berry <karl@cs.umb.edu>.
720 1999-04-23  Eli Zaretskii  <eliz@is.elta.co.il>
722         * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
723         turning off dos_command_running, so child's signals produce the
724         right effect.
726         * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
727         instead of 1.
729 1999-04-18  Eli Zaretskii  <eliz@is.elta.co.il>
731         * configh.dos.template: Update to recognize that version 2.02 of
732         DJGPP contains sys_siglist stuff.
734 1999-04-14  Paul D. Smith  <psmith@gnu.org>
736         * make.texinfo (Options/Recursion): Document the job server.
737         (Parallel): Tweaks.
739 1999-04-13  Paul D. Smith  <psmith@gnu.org>
741         Implement a new "job server" feature; the implementation was
742         suggested by Howard Chu <hyc@highlandsun.com>.
744         * configure.in (job-server): New disable option for job server
745         support--it's enabled by default.  If it works well this will go
746         away.
748         * NEWS: Summarize the new feature.
750         * acconfig.h: New definition MAKE_JOBSERVER if job server support
751         is enabled.
752         * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
753         * config.h.W32.template: Ditto.
754         * config.ami.template: Ditto.
756         * main.c (struct command_switch): Add a new type: int_string.
757         (switches[]) Use int_string for -j if MAKE_JOBSERVER.
758         (init_switches): Initialize the new int_string switch type.
759         (print_usage): New function, extracted from decode_switches().
760         (decode_switches): Call it.  Decode the new int_string switch type.
761         (define_makeflags): Add new int_string switch data to MAKEFLAGS.
762         (job_fds[]) Array to contain the pipe file descriptors.
763         (main): Parse the job_slots_str option results.  If necessary,
764         create the pipe and seed it with tokens.  Set the non-blocking bit
765         for the read fd.  Enable the signal handler for SIGCHLD even if we
766         have a non-hanging wait; it's needed to interrupt the select() in
767         job.c:start_waiting_job().
769         * make.h: Declare job_fds[].
771         * job.h (struct child): Add job_token field to store the token for
772         this job (if any).
774         * job.c (reap_children): When a child is fully reaped, release the
775         token back into the pipe.
776         (free_child): If the child to be freed still has a token, put it
777         back.
778         (new_job): Initialize the job_token member.
779         (start_waiting_job): For local jobs, if we're using the pipe, get
780         a token before we check the load, etc.  We do this by performing a
781         non-blocking read in a loop.  If the read fails, no token is
782         available.  Do a select on the fd to wait for a token.  We need to
783         re-enable the signal handler for SIGCHLD even if we have a
784         non-hanging waitpid() or wait3(), so that the signal will
785         interrupt the select() and we can wake up to reap children.
786         (child_handler): Re-enable the signal handler.  The count is still
787         kept although it's not needed or used unless you don't have
788         waitpid() or wait3().
790 1999-04-10  Paul D. Smith  <psmith@gnu.org>
792         * main.c (main): Reset the considered bit on all the makefiles if
793         something failed to update; we need to examine them again if they
794         appear as normal targets in order to get the proper error message.
796 1999-04-09  Paul D. Smith  <psmith@gnu.org>
798         Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
800         * remake.c (update_file): If you have large numbers of
801         dependencies and you run in parallel, make can spend considerable
802         time each pass through the graph looking at branches it has
803         already seen.  Since we only reap_children() when starting a pass,
804         not in the middle, if a branch has been seen already in that pass
805         nothing interesting can happen until the next pass.  So, we toggle
806         a bit saying whether we've seen this target in this pass or not.
807         (update_goal_chain): Initially set the global considered toggle to
808         1, since all targets initialize their boolean to 0.  At the end of
809         each pass, toggle the global considered variable.
810         * filedef.h (struct file): Per-file considered toggle bit.
811         * file.c: New global toggle variable considered.
813 1999-04-05  Paul D. Smith  <psmith@gnu.org>
815         * arscan.c (ar_scan): Added support for ARFZMAG (compressed
816         archives?) for Digital UNIX C++.  Information provided by
817         Patrick E. Krogel <pekrogel@mtu.edu>.
818         (ar_member_touch): Ditto.
820 1999-04-03  Paul D. Smith  <psmith@gnu.org>
822         * remake.c (f_mtime): If: a) we found a file and b) we didn't
823         create it and c) it's not marked as an implicit target and d) it
824         is marked as an intermediate target, then it was so marked due to
825         an .INTERMEDIATE special target, but it already existed in the
826         directory.  In this case, unset the intermediate flag so we won't
827         delete it when make is done.  It feels like it would be cleaner to
828         put this check in update_file_1() but I worry it'll get missed...
830 1999-04-01  Paul D. Smith  <psmith@gnu.org>
832         * job.c (construct_command_argv_internal): Use bcopy() to copy
833         overlapping strings, rather than strcpy().  ISO C says the latter
834         is undefined.  Found this in a bug report from 1996!  Ouch!
836 1999-03-31  Paul D. Smith  <psmith@gnu.org>
838         * read.c (readline): Ignore carriage returns at the end of the
839         line, to allow Windows-y CRLF line terminators.
841 1999-03-30  Paul D. Smith  <psmith@gnu.org>
843         * configure.in: Don't put build.sh here, since build.sh.in doesn't
844         exist initially.  This cause autoreconf and automake to fail when
845         run on a clean CVS checkout.  Instead, we create build.sh in the
846         Makefile (see below).
848         * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
849         Put those files directly into EXTRA_DIST so they're distributed.
850         Create a local build rule to create build.sh.
851         Create a local maintainer-clean rule to delete all the funky
852         maintainers files.
854         * maintMakefile: Makefile.in depends on README, since automake
855         fails if it doesn't exist.  Also don't remove glob/Makefile.in
856         here, as it causes problems.
858 1999-03-26  Paul D. Smith  <psmith@gnu.org>
860         * configure.in: Substitute GLOBLIB if we need the link the
861         glob/libglob.a library.
862         * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
863         don't link the local libglob.a at all if we don't need it.
864         * build.template: Don't compile glob/*.o unless we want globlib.
865         * maintMakefile (build.sh.in): Substitute the glob/*.o files
866         separately.
868 1999-03-25  Paul D. Smith  <psmith@gnu.org>
870         * make.texinfo: Various typos and additions, pointed out by James
871         G. Sack <jsack@dornfeld.com>.
873 1999-03-22  Paul D. Smith  <psmith@gnu.org>
875         * make.texinfo (Functions): Add a new section documenting the new
876         $(error ...) and $(warning ...) functions.  Also updated copyright
877         dates.
878         * NEWS: Updated for the new functions.
879         * function.c (func_error): Implement the new $(error ...) and
880         $(warning ...) functions.
881         (function_table): Insert new functions into the table.
882         (func_firstword): Don't call find_next_token() with argv[0]
883         itself, since that function modifies the pointer.
884         * function.c: Cleanups and slight changes to the new method of
885         calling functions.
887 1999-03-20  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
889         * function.c: Rewrite to use one C function per make function,
890         instead of a huge switch statement.  Also allows some cleanup of
891         multi-architecture issues, and a cleaner API which makes things
892         like func_apply() simple.
894         * function.c (func_apply): Initial implementation.  Expand either
895         a builtin function or a make variable in the context of some
896         arguments, provided as $1, $2, ... $N.
898 1999-03-19  Eli Zaretskii  <eliz@is.elta.co.il>
899 1999-03-19  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
901         * job.c (construct_command_argv_internal): Don't treat _all_
902         backslashes as escapes, only those which really escape a special
903         character.  This allows most normal "\" directory separators to be
904         treated normally.
906 1999-03-05  Paul D. Smith  <psmith@gnu.org>
908         * configure.in: Check for a system strdup().
909         * misc.c (xstrdup): Created.  Suggestion by Han-Wen Nienhuys
910         <hanwen@cs.uu.nl>.
911         * make.h: Prototype xstrdup().
912         * remake.c (library_search): Use it.
913         * main.c (main): Use it.
914         (find_and_set_default_shell): Use it.
915         * job.c (construct_command_argv_internal): Use it.
916         * dir.c (find_directory): Use it.
918         * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
919         maintMakefile instead of "include", to avoid automake 1.4
920         incompatibility.
922 1999-03-04  Paul D. Smith  <psmith@gnu.org>
924         * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
925         * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
926         * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
927         * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
928         * vpath.c, Makefile.ami, NMakefile.template, build.template,
929         * makefile.vms: Updated FSF address in the copyright notice.
931         * variable.c (try_variable_definition): If we see a conditional
932         variable and we decide to set it, re-type it as recursive so it
933         will be expanded properly later.
935 1999-02-22  Paul D. Smith  <psmith@gnu.org>
937         * NEWS: Mention new .LIBPATTERNS feature.
939         * make.texinfo (Libraries/Search): Describe the use and
940         ramifications of the new .LIBPATTERNS variable.
942         * remake.c (library_search): Instead of searching only for the
943         hardcoded expansion "libX.a" for a library reference "-lX", we
944         obtain a list of patterns from the .LIBPATTERNS variable and
945         search those in order.
947         * default.c: Added a new default variable .LIBPATTERNS.  The
948         default for UNIX is "lib%.so lib%.a".  Amiga and DOS values are
949         also provided.
951         * read.c: Remove bogus HAVE_GLOB_H references; always include
952         vanilla glob.h.
954 1999-02-21  Paul D. Smith  <psmith@gnu.org>
956         * function.c (expand_function): Set value to 0 to avoid freeing it.
957         * variable.c (pop_variable_scope): Free the value of the variable.
958         (try_variable_definition): For simple variables, use
959         allocated_variable_expand() to avoid stomping on the variable
960         buffer when we still need it for other things.
962         * arscan.c: Modified to support AIX 4.3 big archives.  The changes
963         are based on information provided by Phil Adams
964         <padams@austin.ibm.com>.
966 1999-02-19  Paul D. Smith  <psmith@gnu.org>
968         * configure.in: Check to see if the GNU glob library is already
969         installed on the system.  If so, _don't_ add -I./glob to the
970         compile line.  Using the system glob code with the local headers
971         is very bad mojo!
972         Rewrite SCCS macros to use more autoconf facilities.
974         * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
975         CPPFLAGS by configure now.
976         Automake 1.4 introduced its own "include" feature which conflicts
977         with the maintMakefile stuff.  A hack that seems to work is add a
978         space before the include :-/.
980         * build.template: Move -Iglob out of the compile line; it'll get
981         added to CPPFLAGS by configure now.
983 1999-02-16  Glenn D. Wolf  <Glenn_Wolf@email.sps.mot.com>
985         * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
986         calling lbr$get_index since if the archive is empty,
987         VMS_get_member_info won't get called at all, and any leftover date
988         will be used.  This bug shows up if any member of any archive is
989         made, followed by a dependency check on a different, empty
990         archive.
992 1998-12-13  Martin Zinser  <zinser@decus.decus.de>
994         * config.h-vms [VMS]: Set _POSIX_C_SOURCE.  Redefine the getopt
995         functions so we don't use the broken VMS versions.
996         * makefile.com [VMS]: Allow debugging.
997         * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
999 1998-11-30  Paul D. Smith  <psmith@gnu.org>
1001         * signame.c (init_sig): Check the sizes of signals being set up to
1002         avoid array overwrites (if the system headers have problems).
1004 1998-11-17  Paul D. Smith  <psmith@gnu.org>
1006         * read.c (record_files): Clean up some indentation.
1008 1998-11-08  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
1010         * rule.c (print_rule_data_base): Fix arguments to fatal() call.
1012 1998-10-13  Paul D. Smith  <psmith@gnu.org>
1014         * job.c (start_job_command): If the command list resolves to no
1015         chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
1016         quit early.
1018 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1020         * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
1021         zero.
1023 1998-10-09  Paul D. Smith  <psmith@gnu.org>
1025         * read.c (read_makefile): Allow non-empty lines to expand to the
1026         empty string after variable, etc., expansion, and be ignored.
1028 1998-09-21  Paul D. Smith  <psmith@gnu.org>
1030         * job.c (construct_command_argv_internal): Only add COMMAND.COM
1031         "@echo off" line for non-UNIXy shells.
1033 1998-09-09  Paul D. Smith  <psmith@gnu.org>
1035         * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
1037 1998-09-04  Paul D. Smith  <psmith@gnu.org>
1039         * read.c (read_makefile): If we hit the "missing separator" error,
1040         check for the common case of 8 spaces instead of a TAB and give an
1041         extra comment to help people out.
1043 1998-08-29  Paul Eggert  <eggert@twinsun.com>
1045         * configure.in (AC_STRUCT_ST_MTIM_NSEC):
1046         Renamed from AC_STRUCT_ST_MTIM.
1048         * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC):  Likewise.
1049         Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
1051         * acconfig.h (ST_MTIM_NSEC):
1052         Renamed from HAVE_ST_MTIM, with a new meaning.
1054         * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
1055         Use new ST_MTIM_NSEC macro.
1057 1998-08-26  Paul D. Smith  <psmith@gnu.org>
1059         * remake.c (check_dep): For any intermediate file, not just
1060         secondary ones, try implicit and default rules if no explicit
1061         rules are given.  I'm not sure why this was restricted to
1062         secondary rules in the first place.
1064 1998-08-24  Paul D. Smith  <psmith@gnu.org>
1066         * make.texinfo (Special Targets): Update documentation for
1067         .INTERMEDIATE: if used with no dependencies, then it does nothing;
1068         old docs said it marked all targets as intermediate, which it
1069         didn't... and which would be silly :).
1071         * implicit.c (pattern_search): If we find a dependency in our
1072         internal tables, make sure it's not marked intermediate before
1073         accepting it as a found_file[].
1075 1998-08-20  Paul D. Smith  <psmith@gnu.org>
1077         * ar.c (ar_glob): Use existing alpha_compare() with qsort.
1078         (ar_glob_alphacompare): Remove it.
1080         Modify Paul Eggert's patch so we don't abandon older systems:
1082         * configure.in: Warn the user if neither waitpid() nor wait3() is
1083         available.
1085         * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
1086         (child_handler, dead_children): Define these if WAIT_NOHANG is not
1087         available.
1088         (reap_children): Only track the dead_children count if no
1089         WAIT_NOHANG.  Otherwise, it's a boolean.
1091         * main.c (main): Add back signal handler if no WAIT_NOHANG is
1092         available; only use default signal handler if it is.
1094 1998-08-20  Paul Eggert  <eggert@twinsun.com>
1096         Install a more robust signal handling mechanism for systems which
1097         support it.
1099         * job.c (WAIT_NOHANG): Define to a syntax error if our host
1100         is truly ancient; this should never happen.
1101         (child_handler, dead_children): Remove.
1102         (reap_children): Don't try to keep separate track of how many
1103         dead children we have, as this is too bug-prone.
1104         Just ask the OS instead.
1105         (vmsHandleChildTerm): Fix typo in error message; don't mention
1106         child_handler.
1108         * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
1109         do this early, before we could possibly create a subprocess.
1110         Just use the default behavior; don't have our own handler.
1112 1998-08-18  Eli Zaretskii  <eliz@is.elta.co.il>
1114         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
1115         recognize library archive members when dealing with drive spec
1116         mess.  Discovery and initial fix by George Racz <gracz@mincom.com>.
1118 1998-08-18  Paul D. Smith  <psmith@gnu.org>
1120         * configure.in: Check for stdlib.h explicitly (some hosts have it
1121         but don't have STDC_HEADERS).
1122         * make.h: Use HAVE_STDLIB_H.  Clean up some #defines.
1123         * config.ami: Re-compute based on new config.h.in contents.
1124         * config.h-vms: Ditto.
1125         * config.h.W32: Ditto.
1126         * configh.dos: Ditto.
1128         * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
1129         directory names end with `\' so strip it.
1131 1998-08-17  Paul D. Smith  <psmith@gnu.org>
1133         * make.texinfo: Added copyright year to the printed copy.  Removed
1134         the price from the manual.  Change the top-level reference to
1135         running make to be "Invoking make" instead of "make Invocation",
1136         to comply with GNU doc standards.
1138         * make.h (__format__, __printf__): Added support for these in
1139         __attribute__ macro.
1140         (message, error, fatal): Use ... prototype form under __STDC__.
1141         Add __format__ attributes for printf-style functions.
1143         * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
1145         * misc.c (message, error, fatal): Add preprocessor stuff to enable
1146         creation of variable-argument functions with appropriate
1147         prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
1148         v*printf(), _doprnt(), or none of the above.  Culled from GNU
1149         fileutils and slightly modified.
1150         (makefile_error, makefile_error): Removed (merged into error() and
1151         fatal(), respectively).
1152         * amiga.c: Use them.
1153         * ar.c: Use them.
1154         * arscan.c: Use them.
1155         * commands.c: Use them.
1156         * expand.c: Use them.
1157         * file.c: Use them.
1158         * function.c: Use them.
1159         * job.c: Use them.
1160         * main.c: Use them.
1161         * misc.c: Use them.
1162         * read.c: Use them.
1163         * remake.c: Use them.
1164         * remote-cstms.c: Use them.
1165         * rule.c: Use them.
1166         * variable.c: Use them.
1168         * make.h (struct floc): New structure to store file location
1169         information.
1170         * commands.h (struct commands): Use it.
1171         * variable.c (try_variable_definition): Use it.
1172         * commands.c: Use it.
1173         * default.c: Use it.
1174         * file.c: Use it.
1175         * function.c: Use it.
1176         * misc.c: Use it.
1177         * read.c: Use it.
1178         * rule.c: Use it.
1180 1998-08-16  Paul Eggert  <eggert@twinsun.com>
1182         * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
1184 1998-08-16  Paul Eggert  <eggert@twinsun.com>
1186         * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
1187         (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
1188         make it easier to understand.
1190 1998-08-14  Paul D. Smith  <psmith@gnu.org>
1192         * read.c (read_makefile): We've already unquoted any colon chars
1193         by the time we're done reading the targets, so arrange for
1194         parse_file_seq() on the target list to not do so again.
1196 1998-08-05  Paul D. Smith  <psmith@gnu.org>
1198         * configure.in: Added glob/configure.in data.  We'll have the glob
1199         code include the regular make config.h, rather than creating its
1200         own.
1202         * getloadavg.c (main): Change return type to int.
1204 1998-08-01  Paul Eggert  <eggert@twinsun.com>
1206         * job.c (reap_children): Ignore unknown children.
1208 1998-07-31  Paul D. Smith  <psmith@gnu.org>
1210         * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
1211         Add prototypes for functions.  Some prototypes needed to be moved
1212         in order to get #include order reasonable.
1214 1998-07-30  Paul D. Smith  <psmith@gnu.org>
1216         * make.h: Added MIN/MAX.
1217         * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
1219 1998-07-30  Paul Eggert  <eggert@twinsun.com>
1221         Add support for sub-second timestamp resolution on hosts that
1222         support it (just Solaris 2.6, so far).
1224         * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
1225         * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
1226         jm_AC_TYPE_UINTMAX_T): New defuns.
1227         * commands.c (delete_target): Convert file timestamp to
1228         seconds before comparing to archive timestamp.  Extract mod
1229         time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
1230         * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
1231         (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
1232         * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
1233         (file_timestamp_now, file_timestamp_sprintf): New functions.
1234         (print_file): Print file timestamps as FILE_TIMESTAMP, not
1235         time_t.
1236         * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
1237         (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
1238         FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
1239         FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
1240         FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
1241         (file_timestamp_now, file_timestamp_sprintf): New decls.
1242         (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
1243         time_t -> FILE_TIMESTAMP.
1244         * implicit.c (pattern_search): Likewise.
1245         * vpath.c (vpath_search, selective_vpath_search): Likewise.
1246         * main.c (main): Likewise.
1247         * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
1248         (f_mtime): Use file_timestamp_now instead of `time'.
1249         Print file timestamp with file_timestamp_sprintf.
1250         * vpath.c (selective_vpath_search): Extract file time stamp from
1251         struct stat with FILE_TIMESTAMP_STAT_MODTIME.
1253 1998-07-28  Paul D. Smith  <psmith@gnu.org>
1255         * Version 3.77 released.
1257         * dosbuild.bat: Change to DOS CRLF line terminators.
1259         * make-stds.texi: Update from latest version.
1261         * make.texinfo (Options Summary): Clarify that the -r option
1262         affects only rules, not builtin variables.
1264 1998-07-27  Paul D. Smith  <psmith@gnu.org>
1266         * make.h: Make __attribute__ resolve to empty for non-GCC _and_
1267         for GCC pre-2.5.x.
1269         * misc.c (log_access): Print UID/GID's as unsigned long int for
1270         maximum portability.
1272         * job.c (reap_children): Print PIDs as long int for maximum
1273         portability.
1275 1998-07-24  Eli Zaretskii  <eliz@is.elta.co.il>
1277         * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
1279 1998-07-25  Paul D. Smith  <psmith@gnu.org>
1281         * Version 3.76.94 released.
1283 1998-07-23  Paul D. Smith  <psmith@gnu.org>
1285         * config.h.W32.template: Make sure all the #defines of macros here
1286         have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
1287         just ``#define HAVE_STRING_H''.  Keeps the preprocessor happy in
1288         some contexts.
1290         * make.h: Remove __attribute__((format...)) stuff; using it with
1291         un-prototyped functions causes older GCC's to fail.
1293         * Version 3.76.93 released.
1295 1998-07-22  Paul D. Smith  <psmith@gnu.org>
1297         * file.c (print_file_data_base): Fix average calculation.
1299 1998-07-20  Paul D. Smith  <psmith@gnu.org>
1301         * main.c (die): Postpone the chdir() until after
1302         remove_intermediates() so that intermediate targets with relative
1303         pathnames are removed properly.
1305 1998-07-17  Paul D. Smith  <psmith@gnu.org>
1307         * filedef.h (struct file): New flag: did we print an error or not?
1309         * remake.c (no_rule_error): New function to print error messages,
1310         extraced from remake_file().
1312         * remake.c (remake_file): Invoke the new error print function.
1313         (update_file_1): Invoke the error print function if we see that we
1314         already tried this target and it failed, but that an error wasn't
1315         printed for it.  This can happen if a file is included with
1316         -include or sinclude and couldn't be built, then later is also
1317         the dependency of another target.  Without this change, make just
1318         silently stops :-/.
1320 1998-07-16  Paul D. Smith  <psmith@gnu.org>
1322         * make.texinfo: Removed "beta" version designator.
1323         Updated ISBN for the next printing.
1325 1998-07-13  Paul Eggert  <eggert@twinsun.com>
1327         * acinclude.m4: New AC_LFS macro to determine if special compiler
1328         flags are needed to allow access to large files (e.g., Solaris 2.6).
1329         * configure.in: Invoke it.
1331 1998-07-08  Eli Zaretskii  <eliz@is.elta.co.il>
1333         * Makefile.DOS: track changes in Makefile.in.
1335 1998-07-07  Paul D. Smith  <psmith@gnu.org>
1337         * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
1338         top so host is initialized early enough.
1340         * acinclude.m4: New file.  Need some special autoconf macros to
1341         check for network libraries (-lsocket, -lnsl, etc.) when
1342         configuring Customs.
1344         * configure.in (make_try_customs): Invoke new network libs macro.
1346 1998-07-06  Paul D. Smith  <psmith@gnu.org>
1348         * Version 3.76.92 released.
1350         * README.customs: Added to the distribution.
1352         * configure.in (make_try_customs): Rewrite to require an installed
1353         Customs library, rather than looking at the build directory.
1355         * Makefile.am (man_MANS): Install make.1.
1356         * make.1: Renamed from make.man.
1358         * make.texinfo (Bugs): New mailing list address for GNU make bug
1359         reports.
1361 1998-07-02  Paul D. Smith  <psmith@gnu.org>
1363         * Version 3.76.91 released.
1365         * default.c: Added default rule for new-style RCS master file
1366         storage; ``% :: RCS/%''.
1367         Added default rules for DOS-style C++ files with suffix ".cpp".
1368         They use the new LINK.cpp and COMPILE.cpp macros, which are set by
1369         default to be equal to LINK.cc and COMPILE.cc.
1371 1998-06-19  Eli Zaretskii  <eliz@is.elta.co.il>
1373         * job.c (start_job_command): Reset execute_by_shell after an empty
1374         command was skipped.
1376 1998-06-09  Paul D. Smith  <psmith@gnu.org>
1378         * main.c (main): Keep track of the temporary filename created when
1379         reading a makefile from stdin (-f-) and attempt to remove it
1380         as soon as we know we're not going to re-exec.  If we are, add it
1381         to the exec'd make's cmd line with "-o" so the exec'd make doesn't
1382         try to rebuild it.  We still have a hole: if make re-execs then
1383         the temporary file will never be removed.  To fix this we'd need
1384         a brand new option that meant "really delete this".
1385         * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
1386         Updated mailing addresses.
1388 1998-06-08  Paul D. Smith  <psmith@gnu.org>
1390         * main.c (main): Andreas Luik <luik@isa.de> points out that the
1391         check for makefile :: rules with commands but no dependencies
1392         causing a loop terminates incorrectly.
1394         * maintMakefile: Make a template for README.DOS to update version
1395         numbers.
1397 1998-05-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1399         * remake.c (update_file_1): Don't free the memory for the
1400         dependency structure when dropping a circular dependency.
1402 1998-05-30  Eli Zaretskii  <eliz@is.elta.co.il>
1404         * dir.c (file_exists_p, file_impossible_p, file_impossible)
1405         [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
1406         dirname of "d:foo" be "d:".
1408 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1410         * read.c (read_makefile): Avoid running past EOS when scanning
1411         file name after `include'.
1413 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1415         * make.texinfo (Flavors): Correct description of conditional
1416         assignment, which is not equivalent to ifndef.
1417         (Setting): Likewise.
1419 1998-05-24  Paul D. Smith  <psmith@gnu.org>
1421         * arscan.c (ar_name_equal): strncmp() might be implemented as a
1422         macro, so don't put preprocessor conditions inside the arguments
1423         list.
1425 1998-05-23  Eli Zaretskii  <eliz@is.elta.co.il>
1427         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
1428         drive specs when parsing targets, target-specific variables and
1429         static pattern rules.  A colon can only be part of drive spec if
1430         it is after the first letter in a token.
1432 1998-05-22  Eli Zaretskii  <eliz@is.elta.co.il>
1434         * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
1435         yelling bloody murder.
1437         * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
1439         * read.c (parse_file_seq): Combine the special file-handling code
1440         for WINDOWS32 and __MSDOS__ into a single snippet.
1441         (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
1442         colon as part of a drive spec.
1444         * job.c (batch_mode_shell) [__MSDOS__]: Declare.
1446 1998-05-20  Paul D. Smith  <psmith@gnu.org>
1448         * Version 3.76.90 released.
1450 1998-05-19  Paul D. Smith  <psmith@gnu.org>
1452         * make.texinfo (Make Errors): Added a new appendix describing
1453         common errors make might generate and how to resolve them (or at
1454         least more information on what they mean).
1456         * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
1457         to create a dependency file to construct Makefile.DOS, SMakefile,
1458         and NMakefile.
1459         (.dep_segment): Generate the dependency fragment file.
1461 1998-05-14  Paul D. Smith  <psmith@gnu.org>
1463         * make.man: Minor changes.
1465 1998-05-13  Paul D. Smith  <psmith@gnu.org>
1467         * function.c (pattern_matches,expand_function): Change variables
1468         and types named "word" to something else, to avoid compilation
1469         problems on Cray C90 Unicos.
1470         * variable.h: Modify the function prototype.
1472 1998-05-11  Rob Tulloh  <rob_tulloh@tivoli.com>
1474         * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
1475         echo when using a batch file, and make sure the command ends in a
1476         newline.
1478 1998-05-03  Paul D. Smith  <psmith@gnu.org>
1480         * configure.in (make_try_customs): Add some customs flags if the
1481         user configures custom support.
1483         * job.c, remote-cstms.c: Merge in changes for custom library.
1485         * remote-stub.c: Add option to stub start_remote_job_p().
1487 1998-05-01  Paul D. Smith  <psmith@gnu.org>
1489         * remake.c (f_mtime): Install VPATH+ handling for archives; use
1490         the hname field instead of the name field, and rehash when
1491         appropriate.
1493 1998-04-30  Paul D. Smith  <psmith@gnu.org>
1495         * rule.c (print_rule_data_base): Print out any pattern-specific
1496         variable values into the rules database.
1498         * variable.c (print_variable_set): Make this variable extern, to
1499         be called by print_rule_data_base() for pattern-specific variables.
1501         * make.texinfo (Pattern-specific): Document pattern-specific
1502         variables.
1504 1998-04-29  Paul D. Smith  <psmith@gnu.org>
1506         * expand.c (variable_expand_for_file): Make static; its only
1507         called internally.  Look up this target in the list of
1508         pattern-specific variables and insert the variable set into the
1509         queue to be searched.
1511         * filedef.h (struct file): Add a new field to hold the
1512         previously-found pattern-specific variable reference.  Add a new
1513         flag to remember whether we already searched for this file.
1515         * rule.h (struct pattern_var): New structure for storing
1516         pattern-specific variable values.  Define new function prototypes.
1518         * rule.c: New variables pattern_vars and last_pattern_var for
1519         storage and handling of pattern-specific variable values.
1520         (create_pattern_var): Create a new pattern-specific variable value
1521         structure.
1522         (lookup_pattern_var): Try to match a target to one of the
1523         pattern-specific variable values.
1525 1998-04-22  Paul D. Smith  <psmith@gnu.org>
1527         * make.texinfo (Target-specific): Document target-specific
1528         variables.
1530 1998-04-21  Paul D. Smith  <psmith@gnu.org>
1532         * variable.c (define_variable_in_set): Made globally visible.
1533         (lookup_variable_in_set): New function: like lookup_variable but
1534         look only in a specific variable set.
1535         (target_environment): Use lookup_variable_in_set() to get the
1536         correct export rules for a target-specific variable.
1537         (create_new_variable_set): Create a new variable set, and just
1538         return it without installing it anywhere.
1539         (push_new_variable_scope): Reimplement in terms of
1540         create_new_variable_set.
1542         * read.c (record_target_var): Like record_files, but instead of
1543         files create a target-specific variable value for each of the
1544         listed targets.  Invoked from read_makefile() when the target line
1545         turns out to be a target-specific variable assignment.
1547 1998-04-19  Paul D. Smith <psmith@gnu.org>
1549         * read.c (read_makefile): Rewrite the entire target parsing
1550         section to implement target-specific variables.  In particular, we
1551         cannot expand the entire line as soon as it's read in, since we
1552         may want to evaluate parts of it with different variable contexts
1553         active.  Instead, start expanding from the beginning until we find
1554         the `:' (or `::'), then determine what kind of line this is and
1555         continue appropriately.
1557         * read.c (get_next_mword): New function to parse a makefile line
1558         by "words", considering an entire variable or function as one
1559         word.  Return the type read in, along with its starting position
1560         and length.
1561         (enum make_word_type): The types of words that are recognized by
1562         get_next_mword().
1564         * variable.h (struct variable): Add a flag to specify a per-target
1565         variable.
1567         * expand.c: Make variable_buffer global.  We need this during the
1568         new parsing of the makefile.
1569         (variable_expand_string): New function.  Like variable_expand(),
1570         but start at a specific point in the buffer, not the beginning.
1571         (variable_expand): Rewrite to simply call variable_expand_string().
1573 1998-04-13  Paul D. Smith  <psmith@gnu.org>
1575         * remake.c (update_goal_chain): Allow the rebuilding makefiles
1576         step to use parallel jobs.  Not sure why this was disabled:
1577         hopefully we won't find out :-/.
1579 1998-04-11  Paul D. Smith  <psmith@gnu.org>
1581         * main.c (main): Set the CURDIR makefile variable.
1582         * make.texinfo (Recursion): Document it.
1584 1998-03-17  Paul D. Smith  <psmith@gnu.org>
1586         * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
1587         * variable.c (try_variable_definition): Use new feature.
1589 1998-03-10  Paul D. Smith  <psmith@gnu.org>
1591         * main.c (main): Don't pass included, rebuilt makefiles to
1592         re-exec'd makes with -o.  Reopens a possible loop, but it caused
1593         too many problems.
1595 1998-03-02  Paul D. Smith  <psmith@gnu.org>
1597         * variable.c (try_variable_definition): Implement ?=.
1598         * make.texinfo (Setting): Document it.
1600 1998-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
1602         * job.c (start_job_command): Reset execute_by_shell after an empty
1603         command, like ":", has been seen.
1605 Tue Oct 07 15:00:00 1997  Phil Brooks <phillip_brooks@hp.com>
1607         * make.h [WINDOWS32]: make case sensitivity configurable
1608         * dir.c [WINDOWS32]: make case sensitivity configurable
1609         * README.W32: Document case sensitivity
1610         * config.ami: Share case warping code with Windows
1612 Mon Oct  6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1614         * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
1615         (turn on HAVE_MKS_SHELL).
1616         * read.c [WINDOWS32]: Fixed a problem with multiple target rules
1617         reported by Gilbert Catipon (gcatipon@tibco.com).  If multiple
1618         path tokens in a rule did not have drive letters, make would
1619         incorrectly concatenate the 2 tokens together.
1620         * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
1621         follow what MSDOS did. In addition to watching for SHELL variable
1622         updates, make's main will attempt to default the value of SHELL
1623         before and after makefiles are parsed.
1624         * job.c/job.h [WINDOWS32]: The latest changes made to enable use
1625         of the GNUWIN32 shell from make could cause make to fail due to a
1626         concurrency condition between parent and child processes.  Make
1627         now creates a batch file per job instead of trying to reuse the
1628         same singleton batch file.
1629         * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
1630         from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
1631         logic to reduce complexity. WINDOWS32 now uses the unixy_shell
1632         variable to detect Bourne-shell compatible environments. There is
1633         also a batch_mode_shell variable that determines whether not
1634         command lines should be executed via script files. A WINDOWS32
1635         system with no sh.exe installed would have unixy_shell set to
1636         FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
1637         that does not behave well when invoking things via 'sh -c xxx',
1638         you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
1639         improve.
1640         * NMakefile: Added /D DEBUG to debug build flags so that unhandled
1641         exceptions could be debugged.
1643 Mon Oct  6 00:04:25 1997  Rob Tulloh <rob_tulloh@dev.tivoli.com>
1645         * main.c [WINDOWS32]: The function define_variable() does not
1646         handle NULL. Test before calling it to set Path.
1647         * main.c [WINDOWS32]: Search Path again after makefiles have been
1648         parsed to detect sh.exe.
1649         * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
1650         To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
1651         * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
1653 Sun Oct  5 22:43:59 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
1655         * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
1656         case-sensitive.
1657         * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
1658         command contains a newline (e.g. from a define/enddef block).
1659         * vmsify.c (vmsify): Return relative pathnames wherever possible.
1660         * vmsify.c (vmsify): An input string like "../.." returns "[--]".
1662 Wed Oct  1 15:45:09 1997  Rob Tulloh <rob_tulloh@tivoli.com>
1664         * NMakefile: Changed nmake to $(MAKE).
1665         * subproc.bat: Take the make command name from the command
1666         line. If no command name was given, default to nmake.
1667         * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
1668         are now always created in heap memory.
1669         * w32/subproc/sub_proc.c: New implementation of make_command_line()
1670         which is more compatible with different Bourne shell implementations.
1671         Deleted the now obsolete fix_command_line() function.
1672         * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
1673         detected. Make will ensure that the special spelling `Path' is
1674         inserted into the environment when the path variable is propagated
1675         within itself and to make's children.
1676         * main.c [WINDOWS32]: Detection of sh.exe was occurring too
1677         soon. The 2nd check for the existence of sh.exe must come after
1678         the call to read_all_makefiles().
1680 Fri Sep 26 01:14:18 1997  <zinser@axp602.gsi.de>
1682         * makefile.com [VMS]: Fixed definition of sys.
1683         * readme.vms: Comments on what's changed lately.
1685 Fri Sep 26 01:14:18 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
1687         * read.c (read_all_makefiles): Allow make to find files named
1688         "MAKEFILE" with no extension on VMS.
1689         * file.c (lookup_file): Lowercase filenames on VMS.
1691 1997-09-29  Paul D. Smith  <psmith@baynetworks.com>
1693         * read.c (read_makefile): Reworked target detection again; the old
1694         version had an obscure quirk.
1696 Fri Sep 19 09:20:49 1997  Paul D. Smith  <psmith@baynetworks.com>
1698         * Version 3.76.1 released.
1700         * Makefile.am: Add loadavg files to clean rules.
1702         * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
1703         * Makefile.ami (distclean): Ditto.
1704         * SMakefile (distclean): Ditto.
1706         * main.c (main): Arg count should be int, not char!  Major braino.
1708 Tue Sep 16 10:18:22 1997  Paul D. Smith  <psmith@baynetworks.com>
1710         * Version 3.76 released.
1712 Tue Sep  2 10:07:39 1997  Paul D. Smith  <psmith@baynetworks.com>
1714         * function.c (expand_function): When processing $(shell...)
1715         translate a CRLF (\r\n) sequence as well as a newline (\n) to a
1716         space.  Also remove an ending \r\n sequence.
1717         * make.texinfo (Shell Function): Document it.
1719 Fri Aug 29 12:59:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1721         * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
1722         paths which contain single character entries like `.' are not
1723         handled correctly.
1725         * README.W32: Document path handling issues on Windows systems.
1727 Fri Aug 29 02:01:27 1997  Paul D. Smith  <psmith@baynetworks.com>
1729         * Version 3.75.93.
1731 Thu Aug 28 19:39:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1733         * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
1734         from main() to re-exec make, the call to execvp() would
1735         incorrectly return control to parent shell before the exec'ed
1736         command could run to completion. I believe this is a feature of
1737         the way that execvp() is implemented on top of WINDOWS32 APIs. To
1738         alleviate the problem, use the supplied process launch function in
1739         the sub_proc library and suspend the parent process until the
1740         child process has run.  When the child exits, exit the parent make
1741         with the exit code of the child make.
1743 Thu Aug 28 17:04:47 1997  Paul D. Smith  <psmith@baynetworks.com>
1745         * Makefile.DOS.template (distdir): Fix a line that got wrapped in
1746         email.
1748         * Makefile.am (loadavg): Give the necessary cmdline options when
1749         linking loadavg.
1751         * configure.in: Check for pstat_getdynamic for getloadvg on HP.
1753         * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
1754         command optimization on these systems; it doesn't make sense.
1756 Wed Aug 27 17:09:32 1997  Paul D. Smith  <psmith@baynetworks.com>
1758         * Version 3.75.92
1760 Tue Aug 26 11:59:15 1997  Paul D. Smith  <psmith@baynetworks.com>
1762         * main.c (print_version): Add '97 to copyright years.
1764         * read.c (do_define): Check the length of the array before looking
1765         at a particular offset.
1767         * job.c (construct_command_argv_internal): Examine the last byte
1768         of the previous arg, not the byte after that.
1770 Sat Aug 23 1997  Eli Zaretskii  <eliz@is.elta.co.il>
1772         * Makefile.DOS.template: New file (converted to Makefile.DOS in
1773         the distribution).
1775         * configure.bat: Rewrite to use Makefile.DOS instead of editing
1776         Makefile.in.  Add support for building from outside of the source
1777         directory.  Fail if the environment block is too small.
1779         * configh.dos: Use <sys/config.h>.
1781         * README.DOS: Update instructions.
1783 Fri Aug 22 1997  Eli Zaretskii  <eliz@is.elta.co.il>
1785         * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
1786         literally, use value of unixy_shell instead.
1788         * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
1789         time_t is unsigned.
1791 Sat Aug 16 00:56:15 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
1793         * vmsify.c (vmsify, case 11): After translating `..' elements, set
1794         nstate to N_OPEN if there are still more elements to process.
1795         (vmsify, case 2): After translating `foo/bar' up to the slash,
1796         set nstate to N_OPEN, not N_DOT.
1798 Fri Aug  8 15:18:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
1800         * dir.c (vmsstat_dir): Leave name unmodified on exit.
1801         * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
1802         * vpath.c: Fix comments to refer to path separator, not colon.
1803         (selective_vpath_search): Avoid Unixy slash handling for VMS.
1805 Thu Aug  7 22:24:03 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
1807         * ar.c [VMS]: Don't declare ar_member_touch.
1808         Delete VMS version of ar_member_date.
1809         Enable non-VMS versions of ar_member_date and ar_member_date_1 for
1810         VMS too.
1811         * arscan.c (VMS_get_member_info): New function.
1812         (ar_scan): Provide version for VMS systems.
1813         (ar_name_equal): Simply compare name and mem on VMS systems.
1814         Don't define ar_member_pos or ar_member_touch on VMS systems.
1816         * config.h-vms (pid_t, uid_t): Don't define.
1818         * remake.c: Delete declaration of vms_stat.
1819         (name_mtime): Don't call vms_stat.
1820         (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
1822         * file.c (print_file): [VMS] Use ctime, not cvt_time.
1824         * make.h [VMS]: Don't define POSIX.
1826         * makefile.com (filelist): Include ar and arscan.
1827         Also include them in the link commands.
1828         Don't define NO_ARCHIVES in cc command.
1830         * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
1831         (defines): Delete NO_ARCHIVES from list.
1833         * remake.c (f_mtime): Only check to see if intermediate file is
1834         out of date if it also exists (i.e., mtime != (time_t) -1).
1836         * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
1838 Fri Jun 20 23:02:07 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1840         * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
1841         (#!/bin/sh) in script files correctly.
1842         Fixed a couple of memory leaks.
1843         Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
1844         files with extensions are preferred over files without extensions.
1845         Added search for files with .cmd extension too.
1846         * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
1848 Mon Aug 18 09:41:08 1997  Paul D. Smith  <psmith@baynetworks.com>
1850         * Version 3.75.91
1852 Fri Aug 15 13:50:54 1997  Paul D. Smith  <psmith@baynetworks.com>
1854         * read.c (do_define): Remember to count the newline after the endef.
1856 Thu Aug 14 23:14:37 1997  Paul D. Smith  <psmith@baynetworks.com>
1858         * many: Rewrote builds to use Automake 1.2.
1860         * AUTHORS: New file.
1861         * maintMakefile: Contains maintainer-only make snippets.
1862         * GNUmakefile: This now only runs the initial auto* tools.
1863         * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
1864         automatically by automake).
1865         * compatMakefile: Removed (not needed anymore).
1866         * README,build.sh.in: Removed (built from templates).
1867         * config.h.in,Makefile.in: Removed (built by tools).
1869 Wed Aug 13 02:22:08 1997  Paul D. Smith  <psmith@baynetworks.com>
1871         * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
1872         * README,README.DOS: Ditto.
1874         * remake.c (update_file_1,f_mtime): Fix GPATH handling.
1875         * vpath.c (gpath_search): Ditto.
1877         * file.c (rename_file): New function: rehash, but also rename to
1878         the hashname.
1879         * filedef.h: Declare it.
1881         * variable.c (merge_variable_set_lists): Remove free() of variable
1882         set; since various files can share variable sets we don't want to
1883         free them here.
1885 Tue Aug 12 10:51:54 1997  Paul D. Smith  <psmith@baynetworks.com>
1887         * configure.in: Require autoconf 2.12
1889         * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
1890         more stylistically correct "cd subdir && $(MAKE)".
1892         * main.c: Global variable `clock_skew_detected' defined.
1893         (main): Print final warning if it's set.
1894         * make.h: Declare it.
1895         * remake.c (f_mtime): Test and set it.
1897         * job.c (start_job_command): Add special optimizations for
1898         "do-nothing" rules, containing just the shell no-op ":".  This is
1899         useful for timestamp files and can make a real difference if you
1900         have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
1902         * configure.in,Makefile.in: Rewrote to use the new autoconf
1903         program_transform_name macro.
1905         * function.c (function_strip): Strip newlines as well as spaces
1906         and TABs.
1908 Fri Jun  6 23:41:04 1997  Rob Tulloh <rob_tulloh@tivoli.com>
1910         * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
1911         even seconds when stored, so if the date check fails on WINDOWS32
1912          systems, see if this "off-by-one" error is the problem.
1914         * General: If your TZ environment variable is not set correctly
1915         then all your timestamps will be off by hours.  So, set it!
1917 Mon Apr  7 02:06:22 1997  Paul D. Smith  <psmith@baynetworks.com>
1919         * Version 3.75.1
1921         * compatMakefile (objs): Define & use the $(GLOB) variable so
1922         that it's removed correctly from build.sh.in when it's built.
1924         * configure.in: On Solaris we can use the kstat_*() functions to
1925         get load averages without needing special permissions.  Add a
1926         check for -lkstat to see if we have it.
1928         * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
1929         the test to enable kstat_open(), etc. processing.
1931 Fri Apr  4 20:21:18 1997  Eli Zaretskii  <eliz@is.elta.co.il>
1933         * <lots>: Fixes to work in the DJGPP DOS environment.
1935 Mon Mar 31 02:42:52 1997  Paul D. Smith  <psmith@baynetworks.com>
1937         * function.c (expand_function): Added new function $(wordlist).
1939         * make.texinfo (Filename Functions): Document $(wordlist) function.
1941         * vpath.c (build_vpath_lists): Construct the GPATH variable
1942         information in the same manner we used to construct VPATH.
1943         (gpath_search): New function to search GPATH.
1945         * make.h: Declare the new function.
1947         * remake.c (update_file_1): Call it, and keep VPATH if it's found.
1949         * make.texinfo (Search Algorithm): Document GPATH variable.
1951 Sun Mar 30 20:57:16 1997  Paul D. Smith  <psmith@baynetworks.com>
1953         * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
1954         variable to contain the user options passed in on the cmd line.
1956         * make.texinfo (Goals): Document MAKECMDGOALS variable.
1958         * remake.c (f_mtime): Print a warning if we detect a clock skew
1959         error, rather than failing.
1961         * main.c (main): If we rebuild any makefiles and need to re-exec,
1962         add "-o<mkfile>" options for each makefile rebuilt to avoid
1963         infinite looping.
1965 Fri Mar 28 15:26:05 1997  Paul D. Smith  <psmith@baynetworks.com>
1967         * job.c (construct_command_argv_internal): Track whether the last
1968         arg in the cmd string was empty or not (Roland).
1969         (construct_command_argv_internal): If the shell line is empty,
1970         don't do anything (Roland).
1972         * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
1973         the latest changes from the GLIBC version of glob (Ulrich Drepper).
1975         * getloadavg.c,make-stds.texi: New version (Roland).
1977         * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
1979 Mon Mar 24 15:33:34 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1981         * README.W32: Describe preliminary FAT support.
1983         * build_w32.bat: Use a variable for the final exe name.
1985         * dir.c (find_directory): W32: Find the filesystem type.
1986         (dir_contents_file_exists_p): W32: for FAT filesystems, always
1987         rehash since FAT doesn't change directory mtime on change.
1989         * main.c (handle_runtime_exceptions): W32: Add an
1990         UnhandledExceptionFilter so that when make bombs due to ^C or a
1991         bug, it won't cause a GUI requestor to pop up unless debug is
1992         turned on.
1993         (main): Call it.
1995 Mon Mar 24 00:57:34 1997  Paul D. Smith  <psmith@baynetworks.com>
1997         * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
1998         Check for memmove() function.
2000         * make.h (bcopy): If memmove() available, define bcopy() to use it.
2001         Otherwise just use bcopy().  Don't use memcpy(); it's not guaranteed
2002         to handle overlapping moves.
2004         * read.c (read_makefile): Fix some uninitialized memory reads
2005         (reported by Purify).
2007         * job.c (construct_command_argv_internal): Use bcopy() not
2008         strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
2010         * Makefile.in: Change install-info option ``--infodir'' to
2011         ``--info-dir'' for use with new texinfo.
2013         * function.c (expand_function): $(basename) and $(suffix) should
2014         only search for suffixes as far back as the last directory (e.g.,
2015         only the final filename in the path).
2017 Sun Mar 23 00:13:05 1997  Paul D. Smith  <psmith@baynetworks.com>
2019         * make.texinfo: Add @dircategory/@direntry information.
2020         (Top): Remove previous reference to (dir) (from RMS).
2021         (Static Usage): Add "all:" rule to example.
2022         (Automatic Dependencies): fix .d file creation example.
2024         * Install VPATH+ patch:
2026         * filedef.h (struct file): Add in hname field to store the hashed
2027         filename, and a flag to remember if we're using the vpath filename
2028         or not.  Renamed a few functions for more clarity.
2030         * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
2031         in the hash table based on their "hash name".  We can change this
2032         while keeping the original target in "name".
2033         (rehash_file): Renamed from "rename_file" to be more accurate.
2034         Changes the hash name, but not the target name.
2036         * remake.c (update_file_1): Modify -d output for more detailed
2037         VPATH info.  If we don't need to rebuild, use the VPATH name.
2038         (f_mtime): Don't search for vpath if we're ignoring it.  Call
2039         renamed function rehash_file.  Call name_mtime instead of
2040         file_mtime, to avoid infinite recursion since the file wasn't
2041         actually renamed.
2043         * implicit.c (pattern_search): if we find an implicit file in
2044         VPATH, save the original name not the VPATH name.
2046         * make.texinfo (Directory Search): Add a section on the new VPATH
2047         functionality.
2049 Sun Dec  1 18:36:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2051         * dir.c (file_exists_p, file_impossible, file_impossible_p): If
2052         dirname is empty replace it by the name of the root directory.
2053         Note that this doesn't work (yet) for W32, Amiga, or VMS.
2055 Tue Oct 08 13:57:03 1996  Rob Tulloh  <tulloh@tivoli.com>
2057         * main.c (main): W32 bug fix for PATH vars.
2059 Tue Sep 17 1996  Paul Eggert  <eggert@twinsun.com>
2061         * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
2062         32-bit quantity.
2064         * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
2065         INTEGER_TYPE_MINIMUM): New macros.
2067 Tue Aug 27 01:06:34 1996  Roland McGrath  <roland@baalperazim.frob.com>
2069         * Version 3.75 released.
2071         * main.c (print_version): Print out bug-reporting address.
2073 Mon Aug 26 19:55:47 1996  Roland McGrath  <roland@baalperazim.frob.com>
2075         * main.c (print_data_base): Don't declare ctime; headers do it for us
2076         already.
2078 Sun Jul 28 15:37:09 1996  Rob Tulloh (tulloh@tivoli.com)
2080         * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
2081         real function. This was done so that VPATH could contain
2082         white space separated pathnames. Please note that directory
2083         paths (in VPATH/vpath context) containing white space are not
2084         supported (just as they are not under Unix). See README.W32
2085         for suggestions.
2087         * w32/include/pathstuff.h: Added prototype for the new
2088         function convert_vpath_to_w32. Deleted macro for same.
2090         * README.W32: Added some notes about why I chose not to try
2091         and support pathnames which contain white space and some
2092         workaround suggestions.
2094 Thu Jul 25 19:53:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2096         * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
2098         * Version 3.74.7.
2100         * main.c (define_makeflags): Back up P to point at null terminator
2101         when killing final space and dash before setting MFLAGS.
2103         From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
2104         * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
2105         `__opendir_flags' initialized to 0.
2106         (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
2107         (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
2108         __opendir_flags to __OPENDIR_PRESERVE_CASE.
2110         * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
2112         * GNUmakefile (w32files): Add NMakefile.
2114         * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
2116 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
2118         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
2119         modtime check.
2120         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
2122 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2124         * configure.in: Require autoconf 2.10 or later.
2126 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2128         * Version 3.74.6.
2130         * GNUmakefile (w32files): New variable.
2131         (distfiles): Add it.
2132         * w32: Updated by Rob Tulloh.
2134         * makefile.vms (LOADLIBES): Fix typo.
2136 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2138         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
2140         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
2142         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
2144         * Version 3.74.5.
2146         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
2148 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2150         * configure.in: Don't check for _sys_siglist.
2151         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
2152         no strsignal or sys_siglist.
2154         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
2155         same as `ifeq (a, b)'.
2157         * job.c (reap_children): Don't call die if handling_fatal_signal.
2159         * file.c (file_hash_enter): Allow renaming :: to : when latter is
2160         non-target, or : to :: when former is non-target.
2162         * job.c (start_job_command): Call block_sigs.
2163         (block_sigs): New function, broken out of start_job_command.
2164         (reap_children): Block fatal signals around removing dead child from
2165         chain and adjusting job_slots_used.
2166         * job.h: Declare block_sigs.
2168         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
2169         * main.c (main): Call remote_setup.
2170         (die): Call remote_cleanup.
2172         * job.c (reap_children): Quiescent value of shell_function_pid is
2173         zero, not -1.
2175         * main.c (print_version): Add 96 to copyright years.
2177 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2179         * read.c (find_char_unquote): Avoid calling strlen on every call
2180         just to throw away the value most of the time.
2182 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2184         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
2185         no '=', regardless of ARGC.
2186         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
2187         word is short option, regardless of WORDS.
2189 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2191         * makefile.vms: Set LOADLIBES.
2192         * makefile.com (link_using_library): Fix typo.
2194 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2196         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
2197         long.
2199 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
2201         * dir.c: W32 does not support inode. For now, fully qualified
2202         pathname along with st_mtime will be keys for files.
2203         Fixed problem where vpath can be confused when files
2204         are added to a directory after the directory has already been
2205         read in. The code now attempts to reread the directory if it
2206         discovers that the datestamp on the directory has changed since
2207         it was cached by make. This problem only seems to occur on W32
2208         right now so it is lumped under port #ifdef WINDOWS32.
2210         * function.c: W32: call subproc library (CreateProcess()) instead of
2211         fork/exec.
2213         * job.c: W32: Added the code to do fork/exec/waitpid style processing
2214         on W32 systems via calls to subproc library.
2216         * main.c: W32: Several things added here. First, there is code
2217         for dealing with PATH and SHELL defaults. Make tries to figure
2218         out if the user has %PATH% set in the environment and sets it to
2219         %Path% if it is not set already. Make also looks to see if sh.exe
2220         is anywhere to be found. Code path through job.c will change
2221         based on existence of a working Bourne shell. The checking for
2222         default shell is done twice: once before makefiles are read in
2223         and again after. Fall back to MSDOS style execution mode if no sh.exe
2224         is found. Also added some debug support that allows user to pause make
2225         with -D switch and attach a debugger. This is especially useful for
2226         debugging recursive calls to make where problems appear only in the
2227         sub-make.
2229         * make.h: W32: A few macros and header files for W32 support.
2231         * misc.c: W32: Added a function end_of_token_w32() to assist
2232         in parsing code in read.c.
2234         * read.c: W32: Fixes similar to MSDOS which allow colon to
2235         appear in filenames. Use of colon in filenames would otherwise
2236         confuse make.
2238         * remake.c: W32: Added include of io.h to eliminate compiler
2239         warnings. Added some code to default LIBDIR if it is not set
2240         on W32.
2242         * variable.c: W32: Added support for detecting Path/PATH
2243         and converting them to semicolon separated lists for make's
2244         internal use. New function sync_Path_environment()
2245         which is called in job.c and function.c before creating a new
2246         process. Caller must set Path in environment since we don't
2247         have fork() to do this for us.
2249         * vpath.c: W32: Added detection for filenames containing
2250         forward or backward slashes.
2252         * NMakefile: W32: Visual C compatible makefile for use with nmake.
2253         Use this to build GNU make the first time on Windows NT or Windows 95.
2255         * README.W32: W32: Contains some helpful notes.
2257         * build_w32.bat: W32: If you don't like nmake, use this the first
2258         time you build GNU make on Windows NT or Windows 95.
2260         * config.h.W32: W32 version of config.h
2262         * subproc.bat: W32: A bat file used to build the
2263         subproc library from the top-level NMakefile. Needed because
2264         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
2266         * w32/include/dirent.h
2267         * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
2269         * w32/include/pathstuff.h: W32: used by files needed functions
2270         defined in pathstuff.c (prototypes).
2272         * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
2274         * w32/include/w32err.h: W32: prototypes for w32err.c.
2276         * w32/pathstuff.c: W32: File and Path/Path conversion functions.
2278         * w32/subproc/build.bat: W32: build script for subproc library
2279         if you don't wish to use nmake.
2281         * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
2282         with nmake. Used to build subproc library.
2284         * w32/subproc/misc.c: W32: subproc library support code
2285         * w32/subproc/proc.h: W32: subproc library support code
2286         * w32/subproc/sub_proc.c: W32: subproc library source code
2287         * w32/subproc/w32err.c: W32: subproc library support code
2289 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2291         * Version 3.74.4.
2293         * GNUmakefile (vmsfiles): Fix typo.
2295         * GNUmakefile (amigafiles): Add amiga.h.
2297 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
2299         * dir.c: New function: amigafy() to fold filenames
2300         Changes HASH() to HASHI() to fold filenames on Amiga.
2301         Stringcompares use strieq() instead of streq()
2302         The current directory on Amiga is "" instead of "."
2303         * file.c: Likewise.
2305         * amiga.c: New function wildcard_expansion(). Allows to use
2306         Amiga wildcards with $(wildcard )
2308         * amiga.h: New file. Prototypes for amiga.c
2310         * function.c: Use special function wildcard_expansion() for
2311         $(wildcard ) to allow Amiga wildcards
2312         The current directory on Amiga is "" instead of "."
2314         * job.c: No Pipes on Amiga, too
2315         (load_too_high) Neither on Amiga
2316         ENV variable on Amiga are in a special directory and are not
2317         passed as third argument to main().
2319         * job.h: No envp on Amiga
2321         * make.h: Added HASHI(). This is the same as HASH() but converts
2322         it's second parameter to lowercase on Amiga to fold filenames.
2324         * main.c: (main), variable.c Changed handling of ENV-vars. Make
2325         stores now the names of the variables only and reads their contents
2326         when they are accessed to reflect that these variables are really
2327         global (ie. they CAN change WHILE make runs !) This handling is
2328         made in lookup_variable()
2330         * Makefile.ami: renamed file.h to filedep.h
2331         Updated dependencies
2333         * read.c: "find_semicolon" is declared as static but never defined.
2334         No difference between Makefile and makefile on Amiga; added
2335         SMakefile to *default_makefiles[].
2336         (read_makefile) SAS/C want's two_colon and pattern_percent be set
2337         before use.
2338         The current directory on Amiga is "" instead of "."
2339         Strange #endif moved.
2341         * README.Amiga: updated feature list
2343         * SMakefile: Updated dependencies
2345         * variable.c: Handling of ENV variable happens inside lookup_variable()
2347 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2349         * variable.c (try_variable_definition): Count parens in lhs variable
2350         refs to avoid seeing =/:=/+= inside a ref.
2352 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2354         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
2355         conditional.
2357         * main.c (main): Use unsigned for fread return.
2359         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
2360         conflict issues.
2361         * dep.h: Fix prototype.
2363         * function.c (expand_function) [_AMIGA]: Fix some typos.
2364         (patsubst_expand): Make len vars unsigned.
2366         * GNUmakefile (globfiles): Add AmigaDOS support files.
2367         (distfiles): Add $(amigafiles).
2368         (amigafiles): New variable.
2370 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
2372         * Added Amiga support in commands.c, dir.c, function.c,
2373         job.c, main.c, make.h, read.c, remake.c
2374         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
2375         * dir.c: Amiga has filenames with Upper- and Lowercase,
2376         but "FileName" is the same as "filename". Added strieq()
2377         which is use to compare filenames. This is like streq()
2378         on all other systems. Also there is no such thing as
2379         "." under AmigaDOS.
2380         * function.c: On Amiga, the environment is not passed as envp,
2381         there are no pipes and Amiga can't fork. Use my own function
2382         to create a new child.
2383         * job.c: default_shell is "" (The system automatically chooses
2384         a shell for me). Have to use the same workaround as MSDOS for
2385         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
2386         known on Amiga. Cloned code to run children from MSDOS. Own
2387         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
2388         * main.c: Force stack to 20000 bytes. Read environment from ENV:
2389         device. On Amiga, exec_command() does return, so I exit()
2390         afterwards.
2391         * make.h: Added strieq() to compare filenames.
2392         * read.c: Amiga needs special extension to have passwd. Only
2393         one include-dir. "Makefile" and "makefile" are the same.
2394         Added "SMakefile".  Added special code to handle device names (xxx:)
2395         and "./" in rules.
2396         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
2397         instead of "lib%s.a".
2398         * main.c, rule.c, variable.c: Avoid floats at all costs.
2399         * vpath.c: Get rid of as many alloca()s as possible.
2401 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2403         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
2405 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2407         * GNUmakefile (vmsfiles): New variable.
2408         (distfiles): Include $(vmsfiles).
2410 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2412         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
2413         * make.h (PARAMS): New macro.
2414         * config.h-vms: New file.
2415         * makefile.com: New file.
2416         * makefile.vms: New file.
2417         * readme.vms: New file.
2418         * vmsdir.h: New file.
2419         * vmsfunctions.c: New file.
2420         * vmsify.c: New file.
2421         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
2422         * ar.c: Added prototypes and changes for VMS.
2423         * commands.c: Likewise.
2424         * commands.h: Likewise.
2425         * default.c: Likewise.
2426         * dep.h: Likewise.
2427         * dir.c: Likewise.
2428         * expand.c: Likewise.
2429         * file.c: Likewise.
2430         * function.c: Likewise.
2431         * implicit.c: Likewise.
2432         * job.c: Likewise.
2433         * job.h: Likewise.
2434         * main.c: Likewise.
2435         * make.h: Likewise.
2436         * misc.c: Likewise.
2437         * read.c: Likewise.
2438         * remake.c: Likewise.
2439         * remote-stub.c: Likewise.
2440         * rule.c: Likewise.
2441         * rule.h: Likewise.
2442         * variable.c: Likewise.
2443         * variable.h: Likewise.
2444         * vpath.c: Likewise.
2445         * compatMakefile (srcs): Rename file.h to filedef.h.
2447 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
2449         * remake.c (check_dep): For a secondary file, try implicit and
2450         default rules if appropriate.
2452 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
2454         * remake.c (check_dep): If an intermediate file exists,
2455         do consider its actual date.
2457 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
2459         * file.h (struct file): New field `secondary'.
2460         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
2461         (remove_intermediates): Don't delete .SECONDARY files.
2463 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2465         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
2467 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2469         * Version 3.74.3.
2471         * remake.c (f_mtime): Move future modtime check before FILE is
2472         clobbered by :: loop.
2474         * dir.c: Use canonical code from autoconf manual for dirent include.
2475         [_D_NAMLEN]: Redefine NAMLEN using this.
2476         (dir_contents_file_exists_p): Use NAMLEN macro.
2477         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
2479         * compatMakefile (objs): Add missing backslash.
2481 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2483         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
2484         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
2486         * remake.c (f_mtime): Check for future timestamps; give error and mark
2487         file as "failed to update".
2489 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2491         * job.c: Don't declare unblock_sigs; job.h already does.
2493 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2495         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
2497         * job.c (NGROUPS_MAX): Don't try to define this macro.
2499 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2501         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
2502         (objs, srcs): Include their values here instead of references.
2504 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2506         * Version 3.74.2.
2508         * job.c (reap_children): Call unblock_sigs after start_job_command.
2510 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
2512         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
2513         Avoid & before function names to silence bogus sunos4 compiler.
2515         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
2517 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2519         * Version 3.74.1.
2521         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
2522         reallocating it!
2524 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2526         * misc.c (collapse_continuations): Fix skipping of trailing \s so
2527         it can never dereference before the beginning of the array.
2529         * read.c (find_semicolon): Function removed.
2530         (read_makefile): Don't use find_semicolon or remove_comments for
2531         rule lines.  Use find_char_unquote directly and handle quoted comments
2532         properly.
2534         * default.c: Remove all [M_XENIX] code.
2536         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
2537         (D_NAMLEN): Macro removed.
2538         (FAKE_DIR_ENTRY): New macro.
2539         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
2540         D_NAMLEN.
2541         (read_dirstream): Return a struct dirent * for new glob interface.
2542         (init_dir): Function removed.
2543         (dir_setup_glob): New function.
2544         * main.c (main): Don't call init_dir.
2545         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
2546         GLOB_ALTDIRFUNC flag.
2548         * misc.c (safe_stat): Function removed.
2549         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
2550         safe_stat.
2552 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2554         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
2556         * main.c (log_working_directory): Made global.
2557         Print entering msg only once.
2558         * make.h (log_working_directory): Declare it.
2559         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
2560         nonzero.  Call log_working_directory.
2561         * remake.c: Pass new arg in `message' calls.
2562         * job.c (start_job_command): Pass new arg to `message'; fix
2563         inverted test in that call.
2565 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2567         * job.c (start_job_command): Use `message' to print the command,
2568         and call it with null if the command is silent.
2569         * remake.c (touch_file): Use message instead of printf.
2571 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2573         * main.c (enter_command_line_file): Barf if NAME is "".
2575 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2577         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
2579 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2581         * configure.in: Don't check for getdtablesize.
2582         * job.c (getdtablesize): Remove decls and macros.
2584 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2586         * main.c (define_makeflags): Omit command line variable
2587         definitions from MFLAGS value.
2589         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
2590         indicating a valid, but empty, archive.
2592 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2594         * dir.c (file_impossible_p): Correctly reset FILENAME to name
2595         within directory before hash search.
2597         * job.c (child_error): Do nothing if IGNORED under -s.
2599         * job.c (exec_command): Correctly use ARGV[0] for script name when
2600         running shell directly.
2602 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2604         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
2605         dup'ing from them.  Don't try to close all excess descriptors;
2606         getdtablesize might return a huge value.  Any open descriptors in
2607         the parent should have FD_CLOEXEC set.
2608         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
2610 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2612         * read.c (read_all_makefiles): Properly append default makefiles
2613         to the end of the `read_makefiles' chain.
2615 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2617         * Version 3.74 released.
2619 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2621         * Version 3.73.3.
2623 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2625         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
2626         install-info cmd.
2628 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2630         * file.c (print_file): Grok update_status of 1 for -q.
2632 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2634         * Version 3.73.2.
2636 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2638         * file.c (remove_intermediates): Fix inverted test to bail under
2639         -n for signal case.  Bail under -q or -t.
2640         Skip files with update_status==-1.
2642         * job.c (job_next_command): Skip empty lines.
2643         (new_job): Don't test the return of job_next_command.
2644         Just let start_waiting_job handle the case of empty commands.
2646 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2648         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
2650         * Version 3.73.1.
2652 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2654         * remake.c (notice_finished_file): Set FILE->update_status to zero
2655         if it's -1.
2657 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2659         * Version 3.73 released.
2661 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2663         * main.c (main): Fixed braino in assert.
2665         * Version 3.72.13.
2667 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2669         * main.c: Avoid string in assert expression.  Some systems are broken.
2671 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2673         * main.c (main): Handle 1 and 2 returns from update_goal_chain
2674         makefile run properly.
2676         * Version 3.72.12.
2678         * main.c (handle_non_switch_argument): New function, broken out of
2679         decode_switches.
2680         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
2681         When getopt_long returns EOF, break the loop and handle remaining args
2682         with a simple second loop.
2684         * remake.c (remake_file): Set update_status to 2 instead of 1 for
2685         no rule to make.  Mention parent (dependent) in error message.
2686         (update_file_1): Handle FILE->update_status == 2 in -d printout.
2687         * job.c (start_job_command, reap_children): Set update_status to 2
2688         instead of 1 for failed commands.
2690 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2692         * job.c (search_path): Function removed (was already #if 0'd out).
2693         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
2695 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2697         * configure.bat: Write @CPPFLAGS@ translation.
2699 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2701         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
2702         to not skip the elt immediately preceding `l(...'.
2704 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2706         * Version 3.72.11.
2708         * read.c (find_char_unquote): Make second arg a string of stop
2709         chars instead of a single stop char.  Stop when any char in the
2710         string is hit.  All callers changed.
2711         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
2712         instead of using two calls.  If the match is not a ; but a #,
2713         return zero.
2714         * misc.c: Changed find_char_unquote callers here too.
2716         * Version 3.72.10.
2718         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
2719         __MSDOS__.
2721         * GNUmakefile (globfiles): Add glob/configure.bat.
2722         (distfiles): Add configh.dos, configure.bat.
2724 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2726         Fixes for MS-DOS from DJ Delorie.
2727         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
2728         as separator in "C:\...".
2729         * configh.dos (STDC_HEADERS): Define only if undefined.
2730         (HAVE_SYS_PARAM_H): Don't define this.
2731         (HAVE_STRERROR): Define this.
2732         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
2734         * Version 3.72.9.
2736         * main.c (decode_switches): Reset optind to 1 instead of 0.
2738 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
2740         * main.c (decode_switches): If non-option arg is "-", ignore it.
2742 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2744         * Version 3.72.8.
2746 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2748         * Version 3.72.7.
2750 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2752         * main.c (main): Pass missing arg to tmpnam.
2754         * configure.in: Check for strsignal.
2755         * job.c (child_error): Use strsignal.
2756         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
2758         * misc.c (strerror): Fix swapped args in sprintf.
2760 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2762         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
2764 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2766         * main.c (print_version): Add 95 to copyright years.
2768         * Version 3.72.6.
2770         * job.c (start_job_command): Remember to call notice_finished_file
2771         under -n when not recursing.  To do this, consolidate that code
2772         under the empty command case and goto there for the -n case.
2774 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2776         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
2777         declare it int.
2779 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2781         * read.c (read_makefile): For bogus line starting with tab, ignore
2782         it if blank after removing comments.
2784         * main.c: Cast results of `alloca' to `char *'.
2785         * expand.c: Likewise.
2787 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2789         * Version 3.72.5.
2791         * configure.in: Check for mktemp.
2792         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
2794         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
2795         (_SC_OPEN_MAX)'.
2796         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
2797         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
2798         using sysconf.
2800 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2802         * remake.c (update_file_1): When !MUST_MAKE, don't set
2803         FILE->update_status to zero before calling notice_finished_file.
2804         (notice_finished_file): Touch only when FILE->update_status is zero.
2805         (remake_file): Set FILE->update_status to zero after not calling
2806         execute_file_command and deciding to touch instead.
2808 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2810         * main.c (debug_signal_handler): New function; toggles debug_flag.
2811         (main): Handle SIGUSR1 with that.
2813 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2815         * compatMakefile (realclean): Remove Info files.
2817 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2819         * Version 3.72.4.
2821         * job.c (start_job_command): Save and restore environ around vfork
2822         call.
2823         (search_path): Function #if 0'd out.
2824         (exec_command): Use execvp instead of search_path.
2826         * expand.c (variable_expand): Rewrote computed variable name and
2827         substitution reference handling to be simpler.  First expand the
2828         entire text between the parens if it contains any $s, then examine
2829         the result of that for subtitution references and do no further
2830         expansion while parsing them.
2832         * job.c (construct_command_argv_internal): Handle " quoting too,
2833         when no backslash, $ or ` characters appear inside the quotes.
2835         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
2836         defined, just use int.
2838 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2840         * default.c (default_variables) [__hpux]: Remove special
2841         definition of ARFLAGS.  Existence of the `f' flag is not
2842         consistent across HPUX versions; and one might be using GNU ar
2843         anyway.
2845         * compatMakefile (clean): Don't remove Info files.
2847         * compatMakefile (check): Remove gratuitous target declaration.
2849 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2851         * compatMakefile (ETAGS, CTAGS): Don't use -t.
2853         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
2855         * main.c (decode_switches): For --help, print usage to stdout.
2857 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2859         * Version 3.72.3.
2861         * remake.c (update_file_1): Do set_command_state (FILE,
2862         cs_not_started) only if old state was deps_running.
2864 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2866         * job.c (start_waiting_job): Use set_command_state.
2868         * build.template (CPPFLAGS): New variable.
2869         (prefix, exec_prefix): Set from @...@.
2870         (compilation loop): Pass $CPPFLAGS to compiler.
2872         * GNUmakefile (build.sh.in): Make it executable.
2874         * GNUmakefile (globfiles): Add configure.in, configure.
2876         * Version 3.72.2.
2878         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
2880         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
2882         * configure.in: Don't check for ranlib.
2884 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2886         * remake.c (notice_finished_file): Only mark also_make's as
2887         updated if really ran cmds.
2889 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2891         * configure.in: Put dnls before random whitespace.
2893 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2895         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
2896         (RANLIB): Variable removed.
2897         (prefix, exec_prefix): Set these from @...@.
2898         (.c.o): Use $(CPPFLAGS).
2899         (glob/libglob.a): Don't pass down variables to sub-make.
2900         glob/Makefile should be configured properly by configure.
2901         (distclean): Remove config.log and config.cache (autoconf stuff).
2903 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2905         * acconfig.h: Add #undef HAVE_UNION_WAIT.
2906         * configure.in: Converted to Autoconf v2.
2907         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
2908         of DIRENT, SYSDIR, NDIR.
2909         * build.sh.in (prefix, exec_prefix): Set these from @...@.
2910         (CPPFLAGS): New variable, set from @CPPFLAGS@.
2911         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
2912         * install.sh: File renamed to install-sh.
2914         * main.c (define_makeflags): When no flags, set WORDS to zero.
2916 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2918         * Version 3.72.1.
2920         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
2921         empty.
2923 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2925         * Version 3.72.
2927 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2929         * Version 3.71.5.
2931         * job.c (start_job_command): When ARGV is nil, only set
2932         update_state and call notice_finished_file if job_next_command
2933         returns zero.
2935         * job.c (start_job_command): Call notice_finished_file for empty
2936         command line.
2938 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2940         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
2941         COMMANDS_NOERROR.
2943 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2945         * Version 3.71.4.
2947 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2949         * file.c (snap_deps): Set command_flags bits in all :: entries.
2951 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2953         * make.h (posix_pedantic): Declare it.
2954         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
2955         snap_deps.
2956         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
2957         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
2958         command_flags and don't set -i.  Likewise .SILENT.
2959         * job.c (start_job_command): In FLAGS initialization, OR in
2960         CHILD->file->command_flags.
2961         * file.h (struct file): New member `command_flags'.
2963 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2965         * main.c (switches): Bump flag values for --no-print-directory and
2966         --warn-undefined-variables, so neither is 1 (which indicates a
2967         nonoption argument).
2969 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2971         * main.c (main): Add missing code in .IGNORE test.
2973 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2975         * variable.c (define_automatic_variables): Define +D and +F.
2977 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2979         * main.c (main): Define hidden automatic variable with command
2980         vars, and MAKEOVERRIDES to a reference to that.
2981         (define_makeflags): If posix_pedantic, write a reference to that
2982         instead.
2984 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2986         * main.c (posix_pedantic): New variable.
2987         (main): Set posix_pedantic if .POSIX is a target.
2988         Fix .IGNORE and .SILENT checks to require is_target.
2990         * commands.c (set_file_variables): Define new automatic variable
2991         $+, like $^ but before calling uniquize_deps.
2993         * job.c (reap_children): Call delete_child_targets for non-signal
2994         error if .DELETE_ON_ERROR is a target.
2996 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2998         * Version 3.71.3.
3000 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3002         * job.c (reap_children): Don't change C->file->command_state when
3003         dying.  Test it only after calling start_job_command for a new
3004         command line.  When no more cmds, just set C->file->update_status.
3005         (start_job_command): When the last line is empty or under -n, set
3006         C->file->update_status.
3007         (start_waiting_job): Grok cs_not_started after start_job_command
3008         as success.
3009         (new_job): Set C->file->update_status when there are no cmds.
3010         (job_next_command): When out of lines, don't set
3011         CHILD->file->update_status or CHILD->file->command_state.
3013         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
3014         if nonzero, also double $s.
3015         (main): Define MAKEOVERRIDES from command_variables here.
3016         (define_makeflags): Don't use command_variables here; instead write a
3017         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
3019         * dir.c [__MSDOS__]: Fixed typo.
3021         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
3023 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3025         * remake.c: Include <assert.h> and use assert instead of printfs
3026         and abort.
3028         * main.c (decode_switches): Loop until optind hits ARGC, not just
3029         until getopt_long returns EOF.  Initialize C to zero before loop;
3030         in loop if C is EOF, set optarg from ARGV[optind++], else call
3031         getopt_long.
3032         (decode_env_switches): Use variable_expand instead of
3033         allocated_variable_expand.  Allocate a fresh buffer to copy split
3034         words into; scan characters by hand to break words and
3035         debackslashify.
3036         (shell_quote): New function.
3037         (define_makeflags): Allocate doubled space for switch args, and command
3038         variable names and values; use shell_quote to quote those things.
3040 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3042         * Version 3.71.2.
3044         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
3046         * main.c (decode_switches): The non-option return from getopt is
3047         1, not 0.
3048         (command_variables): New type and variable.
3049         (decode_switches, decode_env_switches): After making a variable
3050         definition, record the struct variable pointer in the
3051         command_variables chain.
3052         (define_makeflags): If ALL, write variable definitions for
3053         command_variables.
3055         * main.c (other_args): Variable removed.
3056         (goals, lastgoal): New static variables (moved from auto in main).
3057         (main): Don't process OTHER_ARGS at all.
3058         Don't set variable MAKEOVERRIDES at all; define MAKE to just
3059         $(MAKE_COMMAND).
3060         (init_switches): Prepend a - {return in order} instead of a +
3061         {require order}.
3062         (decode_switches): Don't set OTHER_ARGS at all.
3063         Grok '\0' return from getopt_long as non-option argument; try
3064         variable definition and (if !ENV) enter goal targets here.
3065         (decode_env_switches): Use allocated_variable_expand to store value.
3066         Use find_next_token to simplify word-splitting loop.  Don't
3067         prepend a dash to uninterpreted value.  Instead, if split into
3068         only one word, try variable definition and failing that prepend a
3069         dash to the word and pass it to decode_switches as a single arg.
3071 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3073         * remake.c (notice_finished_file): Only recheck modtimes if
3074         FILE->command_state was cs_running on entry (meaning the commands
3075         actually just ran).
3076         (update_file_1): Whenever we set FILE->update_status, call
3077         notice_finished_file instead of just set_command_state.
3078         * job.c (start_job_command): Whenever we set
3079         CHILD->file->update_status, call notice_finished_file instead of
3080         just set_command_state.
3082 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3084         * default.c: Add missing ".
3086         * job.c: Changed all assignments of command_state members to calls
3087         to set_command_state.
3088         * remake.c: Likewise.
3089         * file.c (set_command_state): New function.
3090         * file.h: Declare set_command_state.
3092         * main.c (init_switches): Put a + first in options.
3094 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3096         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
3097         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
3098         * main.c (directory_before_chdir): New variable, moved out of main
3099         (was local).
3100         (main) [__MSDOS__]: Look for \ or : to delimit last component of
3101         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
3102         (die): Change back to `directory_before_chdir' before dying.
3103         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
3104         [__MSDOS__] and not.
3105         * job.c [__MSDOS__]: Include <process.h>.
3106         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
3107         dos_batch_file): New variables.
3108         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
3109         (unblock_sigs) [__MSDOS__]: Do nothing.
3110         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
3111         (load_too_high) [__MSDOS__]: Always return true.
3112         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
3113         Use PATH_SEPARATOR_CHAR instead of ':'.
3114         (construct_command_argv_internal) [__MSDOS__]: Wholly different
3115         values for sh_chars and sh_cmds.  Wholly new code to handle shell
3116         scripts.
3117         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
3118         implementation.
3119         * dir.c [__MSDOS__] (dosify): New function.
3120         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
3121         process the result instead of FILENAME itself.
3122         (file_impossible_p) [__MSDOS__]: Likewise.
3123         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
3124         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
3125         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
3126         `bison -y', and LEX to `flex'.
3127         * configure.bat, configh.dos: New files.
3128         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
3129         intermediates and exit.
3131         * commands.c (set_file_variables): Add parens in length
3132         computation in .SUFFIXES dep loop to quiet compiler warning.  From
3133         Jim Meyering.
3135         * read.c (read_makefile): Free FILENAME if we allocated it.  From
3136         Jim Meyering.
3138 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3140         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
3141         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
3142         * read.c (construct_include_path): Use safe_stat in place of stat.
3143         * job.c (search_path): Use safe_stat in place of stat.
3144         * dir.c (find_directory): Use safe_stat in place of stat.
3145         * commands.c (delete_target): Use safe_stat in place of stat.
3146         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
3147         * remake.c (name_mtime): Use safe_stat in place of stat.
3148         (touch_file) [EINTR]: Do EINTR looping around fstat.
3150 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3152         * read.c (read_makefile): Check for a shell command first, and
3153         then strip leading tabs before further checking if it's not a
3154         shell command line.
3156         * make.h [__arm]: Undefine POSIX.
3157         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
3158         functions that return int.
3160         * job.c (construct_command_argv_internal): After swallowing a
3161         backslash-newline combination, if INSTRING is set goto string_char
3162         (new label) for normal INSTRING handling code.
3164 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3166         * configure.in: Don't check for sys_siglist and _sys_siglist with
3167         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
3169 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3171         * Version 3.71.1 released.
3173         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
3174         _POSIX_VERSION for these declarations.
3176         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
3177         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
3179 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3181         * Version 3.71 released.
3183         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
3184         and [HAVE_SETGID].  Every system has those, and configure doesn't
3185         check for them.
3187         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
3189         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
3190         getloadavg.c.
3191         (loadavg.c): Link or copy it from getloadavg.c.
3192         (distclean): Remove loadavg.c.
3194 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3196         * Version 3.70.4.
3198         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
3199         and HAVE_SETEGID.
3201         * default.c (default_terminal_rules): In SCCS rules, put
3202         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
3203         only before the file name.
3204         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
3206 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3208         * job.c (construct_command_argv_internal): Swallow
3209         backslash-newline combinations inside '' strings too.
3211 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3213         * read.c (do_define): Call collapse_continuations on each line
3214         before all else.
3216 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3218         * job.c (construct_command_argv_internal): Notice newline inside
3219         '' string when RESTP is non-null.
3221 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3223         * Version 3.70.3.
3225         * remake.c (update_goal_chain): Reset FILE to G->file after the
3226         double-colon loop so it is never null for following code.
3228         * read.c (read_makefile): Fix `override define' parsing to skip
3229         whitespace after `define' properly.
3231         * compatMakefile (srcdir): Define as @srcdir@; don't reference
3232         $(VPATH).
3233         (glob/Makefile): New target.
3235 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3237         * Version 3.70.2.
3239         * misc.c (remove_comments): Use find_char_unquote.
3240         * make.h (find_char_unquote): Declare it.
3241         * read.c (find_char_unquote): New function, generalized from
3242         find_percent.
3243         (find_percent, find_semicolon, parse_file_seq): Use that.
3245 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3247         * implicit.c (pattern_search): Always allocate new storage for
3248         FILE->stem.  It is not safe to store STEM's address because it
3249         might be auto storage.
3251         * configure.in: Check for seteuid and setegid.
3252         * misc.c [HAVE_SETEUID]: Declare seteuid.
3253         [HAVE_SETEGID]: Declare setegid.
3254         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
3255         [HAVE_SETEGID]: Use setegid.
3257         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
3258         to preserve whether it's 2 for error or 1 for -q trigger.  When
3259         STATUS gets nonzero and -q is set, always stop immediately.
3260         * main.c (main, decode_switches): Die with 2 for errors.
3261         (main): Accept 2 return from update_goal_chain and die with that.
3262         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
3263         answer.
3264         * job.c (reap_children): Die with 2 for error.
3265         (start_job_command): Set update_status to 2 for error.  Set it to
3266         1 when we would run a command and question_flag is set.
3268         * read.c (read_makefile): Don't mark makefiles as precious.  Just
3269         like other targets, they can be left inconsistent and in need of
3270         remaking by aborted commands.
3272         * read.c (read_makefile): Write no error msg for -include file.
3274 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3276         * commands.c (fatal_error_signal): Don't unblock signals.
3278         * file.h (struct file): Change member `double_colon' from flag to
3279         `struct file *'.
3280         * read.c (record_files): Set double_colon pointer instead of flag.
3281         * main.c (main): When disqualifying makefiles for updating, use
3282         double_colon pointer to find all entries for a file.
3283         * file.c (enter_file): If there is already a double-colon entry
3284         for the file, set NEW->double_colon to that pointer.
3285         (file_hash_enter): Use FILE->double_colon to find all entries to
3286         set name.
3287         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
3288         (update_file): Use FILE->double_colon pointer to find all entries.
3289         (f_mtime): Likewise.
3290         (notice_finished_file): Propagate mtime change to all entries.
3292         * variable.c (try_variable_definition): Return after abort.
3294 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3296         * read.c (read_makefile): Remove unused variable.
3297         (parse_file_seq): When removing an elt that is just `)', properly
3298         fix up the previous elt's next pointer.
3300 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
3302         * configure.in: Do AC_SET_MAKE.
3303         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
3305 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3307         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
3308         the search string is the empty string, find a match at the end of
3309         each word (using end_of_token in place of sindex).
3311         * misc.c (end_of_token): Don't treat backslashes specially; you
3312         can no longer escape blanks with backslashes in export, unexport,
3313         and vpath.  This was never documented anyway.
3315 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3317         * read.c (read_makefile): Variable name for `define' is not just
3318         first token; use whole rest of line and strip trailing blanks.
3320 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3322         * Version 3.70.1.
3324         * read.c (read_makefile): Add -d msg stating args.
3326         * read.c (read_makefile): Use isspace to skip over leading
3327         whitespace, and explicitly avoid skipping over tabs.  Don't want
3328         to skip just spaces though; formfeeds et al should be skipped.
3330         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
3332         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
3333         sizeof ar_name for max length to compare.
3335         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
3336         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
3338         * main.c (main): Call user_access after setting `program', in case
3339         it needs to use it in an error message.
3341         * read.c (read_makefile): Ignore an empty line starting with a tab.
3343 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3345         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
3346         AC_COMPILE_CHECK that is now its contents.
3348 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3350         * make.h: #undef strerror after #include <string.h>.
3351         [! ANSI_STRING]: Declare strerror.
3353 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3355         * misc.c (strerror): #undef any macro before function definition.
3357 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3359         * variable.c (try_variable_definition): Calculate BEG before loop
3360         to strip blanks by decrementing END.  Don't decr END to before BEG.
3362         * read.c (read_makefile): Skip over leading space characters, but
3363         not tabs, after removing continuations and comments (it used to
3364         use isspace).
3366 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3368         * variable.c (define_automatic_variables): In $(@D) et al, use
3369         patsubst to remove trailing slash.
3371         * commands.c (delete_target): New function, broken out of
3372         delete_child_targets.  Check for archive members and give special msg.
3373         (delete_child_targets): Use delete_target.
3375 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3377         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
3378         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
3380 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3382         * GNUmakefile (tarfiles): Omit make-doc.
3383         (make-$(version).tar): Include make.info*.
3385 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3387         * compatMakefile (configure, config.h.in): Comment out rules.
3389 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3391         * compatMakefile (binprefix, manprefix): New variables.
3392         (instname): Variable removed.
3393         (install): Use $({bin,man}prefix)make in place of $(instname).
3394         File targets likewised renamed.
3396 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3398         * Version 3.70 released.
3400 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3402         * Version 3.69.3.
3404         * read.c (parse_file_seq): Inside multi-word archive ref
3405         translation loop, check NEW1==0 at end and break out of the loop.
3407         * GNUmakefile (make-$(version).tar): Distribute install.sh.
3408         * install.sh: New file.
3410         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
3411         cmds outside subshell parens, to avoid "command not found" msgs
3412         from the shell.
3414 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3416         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
3417         Redirect output & error from get to /dev/null.
3418         Fix reversed sense of test.
3420 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3422         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
3423         braces inside if condition command; some shells lose.
3425 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3427         * Version 3.69.2.
3429         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
3430         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
3432         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
3434 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3436         * main.c (main): Cast result of pointer arith to unsigned int
3437         before passing to define_variable for envars.  Matters when
3438         sizeof(unsigned)!=sizeof(ptrdiff_t).
3440 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3442         * configure.in: Add new check for SCCS_GET_MINUS_G.
3443         * config.h.in: Add #undef SCCS_GET_MINUS_G.
3444         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
3445         place of `-G $@' in SCCS commands.
3446         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
3447         to "-G$@".
3449         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
3450         (so it goes in config.status), rather than afterward.
3452         * ar.c (ar_member_date): Don't call enter_file on the archive file
3453         if it doesn't exist (by file_exists_p).
3455         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
3456         with `$$dir/make.info' in install-info invocation (oops).
3458         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
3459         we do not unlink and free PATH.
3461         * file.c (print_file_data_base): Fix inverted calculation for
3462         average files per hash bucket.
3464         * read.c (readline): When we see a NUL, give only a warning and
3465         synthesize a newline to terminate the building line (used to
3466         fatal).  Move fgets call into the loop condition, and after the
3467         loop test ferror (used to test !feof in the loop).
3469 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3471         * configure.in: Check for strerror in AC_HAVE_FUNCS.
3473 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3475         Differentiate different flavors of missing makefile error msgs,
3476         removing gratuitous `fopen: ' and giving caller for included makefiles.
3477         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
3478         (perror_with_name, pfatal_with_name): Use strerror instead of
3479         replicating its functionality.
3480         * read.c (read_makefile): Return int instead of void.
3481         (read_all_makefiles, read_makefile): Change callers to notice zero
3482         return and give error msg.
3484 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3486         * Version 3.69.1.
3488         * default.c: Put `-G $@' before $< in SCCS cmds.
3490 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3492         * read.c (read_makefile): After trying a variable defn, notice if
3493         the line begins with a tab, and diagnose an error.
3495 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3497         * Version 3.69.
3499 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3501         * Version 3.68.10.
3503         * implicit.c (try_implicit_rule): Look for a normal rule before an
3504         archive rule.
3506 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3508         * function.c (expand_function: `sort'): Double NWORDS when it
3509         overflows, instead of adding five.
3511         * compatMakefile (clean): Remove loadavg.
3513 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3515         * Version 3.68.9.
3517         * file.h (NEW_MTIME): Define new macro.
3518         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
3519         current time returned from system.  Removed variable NOW.
3520         * remake.c (notice_finished_file): Use NEW_MTIME in place of
3521         current time here too.
3523 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3525         * Version 3.68.8.
3527         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
3528         cmds and !DEPS_CHANGED unless also !NOEXIST.
3530 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3532         * read.c (parse_file_seq): When converting multi-word archive
3533         refs, ignore a word beginning with a '('.
3535 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3537         * configure.in: Check for sys/timeb.h.
3538         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
3540 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3542         * Version 3.68.7.
3544         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
3545         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
3546         TARGNAME to initialize PERCENTS[0].
3548 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3550         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3551         Remove AC_USG; it is no longer used.
3553         * file.c (print_file): New function, broken out of
3554         print_file_data_base.
3555         (print_file_data_base): Call it.
3556         * rule.c (print_rule): New function, broken out of
3557         print_rule_data_base.
3558         (print_rule_data_base): Call it.
3560 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3562         * default.c (install_default_suffix_rules): New function, broken
3563         out of install_default_implicit_rules.
3564         (install_default_implicit_rules): Move suffix rule code there.
3565         * make.h: Declare install_default_suffix_rules.
3566         * main.c (main): Call install_default_suffix_rules before reading
3567         makefiles.  Move convert_to_pattern call before
3568         install_default_implicit_rules.
3570         * job.h (struct child): Make `pid' member type `pid_t' instead of
3571         `int'.
3573         * compatMakefile (RANLIB): New variable, set by configure.
3574         (glob/libglob.a): Pass RANLIB value down to submake.
3576         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
3577         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
3578         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
3579         defined but NOFILES_MAX is, define it to be that.
3581 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3583         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
3584         is distributed.
3586 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3588         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
3590 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3592         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
3593         is another symbol for | in some shells.
3594         * main.c (main): Add it to CMD_DEFS quoting list as well.
3596 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3598         * job.c (construct_command_argv_internal): Remove '=' from
3599         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
3600         first word without an unquoted '='.
3602         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
3604 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3606         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
3608         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
3610         * commands.c (delete_child_targets): Don't delete phony files.
3612         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
3613         see a `+' at the beginning of the command line.
3615 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3617         * Version 3.68.6.
3619 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3621         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
3623 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3625         * expand.c (variable_expand): Fatal on an unterminated reference.
3627 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3629         * Version 3.68.5.
3631         * variable.c (define_automatic_variables): Define new o_default
3632         variable `MAKE_VERSION' from version_string and remote_description.
3634         * make.h (version_string, remote_description): Declare these here.
3635         * main.c: Don't declare version_string.
3636         (print_version): Don't declare remote_description.
3638 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3640         * read.c (read_makefile): Free space pointed to by CONDITIONALS
3641         before restoring the old pointer.
3643 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3645         * compatMakefile ($(objs)): Depend on config.h.
3647         * GNUmakefile (build.sh.in): Depend on compatMakefile.
3649         * configure.in: Touch stamp-config after AC_OUTPUT.
3651 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3653         * Version 3.68.4.
3655 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3657         * make.h: Include <config.h> instead of "config.h".
3659 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3661         * main.c (main): Make all variables interned from ENVP be v_export.
3662         * variable.c (try_variable_definition): In v_default case, don't
3663         check for an o_file variable that `getenv' finds.
3665         * job.c (reap_children): New local variable ANY_LOCAL; set it
3666         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
3668         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
3670         * function.c (expand_function): #if 0 out freeing of ENVP since it
3671         is environ.
3673 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3675         * Version 3.68.3.
3677         * remote-stub.c (remote_status): Set errno to ECHILD before return.
3678         * job.c (reap_children): Scan the chain for remote children and
3679         never call remote_status if there are none.
3681         * function.c (expand_function: `shell'): #if 0 out calling
3682         target_environment; just set ENVP to environ instead.
3684         * job.c (reap_children): Check for negative return from
3685         remote_status and fatal for it.
3686         When blocking local child wait returns 0, then try a blocking call
3687         to remote_status.
3689 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3691         * compatMakefile (clean): Delete make.info* and make.dvi here.
3692         (distclean): Not here.
3694         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
3695         compilers that don't like enum values used as ints.
3697 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3699         * compatMakefile (loadavg): Add $(LOADLIBES).
3701 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3703         * Version 3.68.2.
3705         * compatMakefile (loadavg, check-loadavg): New targets.
3706         (check): Depend on check-loadavg.
3708         * compatMakefile (glob/libglob.a): Depend on config.h.
3710         * misc.c (log_access): Write to stderr instead of stdout.
3712 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3714         * Version 3.68.1.
3716 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3718         * configure.in (SYS_SIGLIST_DECLARED): In test program include
3719         <unistd.h> #ifdef HAVE_UNISTD_H.
3721         * compatMakefile (.PHONY): Put after `all' et al.
3723         * configure.in: Add AC_IRIX_SUN.
3725 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3727         * Version 3.68.
3729 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3731         * Version 3.67.8.
3733 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3735         * Version 3.67.7.
3737         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
3738         Run install-info script if present.
3740 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3742         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
3744         * configure.in: Add AC_STAT_MACROS_BROKEN.
3746 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3748         * Version 3.67.6.
3750         * read.c (read_makefile): Recognize directive `-include', like
3751         `include' but sets RM_DONTCARE flag.
3753         * variable.c (target_environment): If FILE is nil, use
3754         current_variable_set_list in place of FILE->variables.
3755         * function.c (expand_function: `shell'): Get an environment for
3756         the child from target_environment instead of using environ.
3758         * dep.h: Declare read_all_makefiles here.
3759         (RM_*): Define new enum constants.
3760         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
3761         Treat it as a bit mask containing RM_*.
3762         (read_all_makefiles): For default makefiles, set D->changed to
3763         RM_DONTCARE instead of 1.
3764         * main.c: Don't declare read_all_makefiles here.
3765         (main): Check `changed' member of read_makefiles elts for RM_*
3766         flags instead of specific integer values.
3768 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3770         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
3772 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3774         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
3775         as well as VPATH.
3776         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
3777         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
3779         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
3780         PERCENTS, whose storage is not consumed by create_pattern_rule.
3782         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
3784 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3786         * Version 3.67.5.
3788         * rule.c (max_pattern_targets): New variable.
3789         (count_implicit_rule_limits): Compute its value.
3790         * rule.h: Declare it.
3791         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
3792         times bigger.  Move adding new TRYRULES elt inside the inner
3793         targets loop, so each matching target gets its own elt in MATCHES
3794         and CHECKED_LASTSLASH.
3796         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
3797         instead of just `file' in error msg.
3799 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3801         * job.c (construct_command_argv): Turn off
3802         --warn-undefined-variables around expansion of SHELL and IFS.
3803         * read.c (tilde_expand): Likewise for HOME.
3804         (read_all_makefiles): Likewise for MAKEFILES.
3805         * vpath.c (build_vpath_lists): Likewise for VPATH.
3807         * main.c (warn_undefined_variables_flag): New flag variable.
3808         (switches): Add --warn-undefined-variables.
3809         * make.h (warn_undefined_variables_flag): Declare it.
3810         * expand.c (warn_undefined): New function.
3811         (reference_variable): Call it if the variable is undefined.
3812         (variable_expand): In substitution ref, call warn_undefined if the
3813         variable is undefined.
3815         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
3816         `%.tex: %.w %.ch' rules.
3817         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
3818         (default_suffixes): Add `.ch'.
3820 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3822         * default.c (default_suffixes): Replace `.cweb' with `.w'.
3823         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
3824         and `.w.tex'.
3826 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3828         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
3830 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3832         * Version 3.67.4.
3834         * read.c (multi_glob): Don't free OLD and OLD->name in the
3835         FOUND!=0 fork.  Use new block-local variable F instead of
3836         clobbering OLD.
3838         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
3839         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
3840         contains no metacharacters.
3842 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3844         * ar.c (ar_glob{_match,_alphacompare}): New function.
3846         * dep.h [! NO_ARCHIVES]: Declare it.
3847         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
3849         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
3850         multi_glob (which doesn't take a 3rd arg).
3851         * rule.c (install_pattern_rule): Likewise.
3852         * default.c (set_default_suffixes): Here too.
3853         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
3855         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
3856         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
3858 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3860         * compatMakefile (installdirs): Actually pass directory names.
3861         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
3862         if it fails, echo a warning msg, but don't make the rule fail.
3864         * read.c (tilde_expand): New function, broken out of tilde_expand.
3865         (multi_glob): Call it.
3866         (construct_include_path): Expand ~ in directory names.
3867         * dep.h: Declare tilde_expand.
3868         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
3869         (main): Expand ~ in -C args.
3870         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
3872 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3874         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
3876         * main.c (main): Put result of alloca in temporary variable with
3877         simple assignment, to make SGI compiler happy.
3879 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3881         * Version 3.67.3.
3883         * main.c (main): Before re-execing, remove intermediate files, and
3884         print the data base under -p.  Sexier debugging message.
3886         * implicit.c (pattern_search): Allocate an extra copy of the name
3887         of a winning intermediate file when putting it in FOUND_FILES.
3889 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3891         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
3892         multi_glob (which doesn't take a 3rd arg).
3894         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
3895         chars within D_NAMLEN that are NULs.
3897         * main.c (decode_switches): Don't savestring ARGV[0] to put it
3898         into `other_args'.
3899         For string switch, don't savestring `optarg'.
3900         (main): Don't free elts of makefiles->list that are "-".
3901         Use alloca'd rather than savestring'd storage for elts of
3902         makefiles->list that are temporary file names.
3903         * read.c (read_all_makefiles): Don't free *MAKEFILES.
3904         * file.c (enter_file): Don't strip `./'s.
3905         * main.c (enter_command_line_file): New function.
3906         (main): Use it in place of enter_file for command-line goals from
3907         other_files, and for old_files and new_files.
3909 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3911         * Version 3.67.2.
3913         * compatMakefile (.SUFFIXES): Add .info.
3914         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
3915         else in $srcdir.  Use basename to remove dir name from installed name.
3917 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3919         * implicit.c (pattern_search): When interning FOUND_FILES, try
3920         lookup_file first; if found, free the storage for our copy of the name.
3922 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3924         * Version 3.67.1.
3926         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
3927         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
3929 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3931         * rule.c (convert_suffix_rule): New function.
3932         (convert_to_pattern): Use it instead of doing all the work here
3933         several times.
3934         For target suffix `.a', generate both the archive magic rule and
3935         the normal rule.
3937         * compatMakefile (distclean): Remove stamp-config.
3939 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3941         * Version 3.67.
3943         * file.c (remove_intermediates): Don't write extra space after `rm'.
3945         * main.c (struct command_switch.type): Remove `usage_and_exit'.
3946         (print_usage_flag): New variable.
3947         (switches: --help): Make type `flag', to set print_usage_flag.
3948         (init_switches): Remove `usage_and_exit' case.
3949         (decode_switches): Likewise.
3950         (decode_switches): Print usage if print_usage_flag is set.
3951         When printing usage, die with status of BAD.
3952         (main): Die with 0 if print_version_flag.
3954 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3956         * Version 3.66.
3958 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3960         * compatMakefile (installdirs): New target.
3961         (install): Depend on it.
3963 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3965         * Version 3.65.2.
3967 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3969         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
3970         set LASTPATH to PATH, not NEXT.
3972         * dir.c (read_dirstream): Break out of loop after incrementing
3973         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
3974         dereference DS->contents->files[DIRFILE_BUCKETS].
3976         * read.c (read_makefile): Clear no_targets after reading a
3977         targetful rule line.
3979         * main.c (main): If print_version_flag is set, exit after printing
3980         the version.
3981         (switches): Change --version docstring to say it exits.
3983         * make.h [butterfly]: #undef POSIX.
3985 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3987         * Version 3.65.1.
3989         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
3990         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
3992         * function.c (handle_function): Use fatal instead of
3993         makefile_fatal when reading_filename is nil.
3995         * configure.in: Add AC_GETGROUPS_T.
3996         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
3998 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4000         * Version 3.65.
4002 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4004         * function.c (handle_function): Fatal for unmatched paren.
4006 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4008         * Version 3.64.3.
4010         * commands.c (handling_fatal_signal): New variable.
4011         (fatal_error_signal): Set it.
4012         * job.c (reap_children): Avoid nonreentrant operations if that is set.
4013         * make.h: Declare handling_fatal_signal.
4015         * expand.c (reference_variable): New function, snippet of code
4016         broken out of simple-reference case of variable_expand.
4017         (variable_expand): Use it for simple refs.
4018         (variable_expand): When checking for a computed variable name,
4019         notice a colon that comes before the final CLOSEPAREN.  Expand
4020         only up to the colon, and then replace the pending text with a
4021         copy containing the expanded name and fall through to subst ref
4022         handling.
4023         (variable_expand): Don't bother expanding the name if a colon
4024         appears before the first $.
4025         (expand_argument): Use alloca instead of savestring.
4026         (variable_expand): For subst ref, expand both sides of = before
4027         passing to [pat]subst_expand.  Use find_percent instead of lindex
4028         to check the lhs for a %.
4030 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4032         * Version 3.64.2.
4034 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4036         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
4038         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
4039         not to multi_glob.
4041 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4043         * Version 3.64.1.
4045         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
4046         we read the member name in any of the fashions that allow it to be
4047         arbitrarily long.  Pass its negation to FUNCTION.
4048         (describe_member): Take TRUNCATED from ar_scan and print it.
4049         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
4050         the first sizeof (struct ar_hdr.ar_name) chars.
4051         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
4052         * ar.c (ar_member_date_1): Likewise.
4054 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4056         * job.c (reap_children): Before calling start_job_command to start
4057         the next command line, reset C->remote by calling start_remote_job_p.
4059 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4061         * arscan.c (ar_scan): New local var NAMEMAP.
4062         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
4063         flag IS_NAMEMAP.  When extracting the member name, always put a
4064         null at its end first.  If the name is "//" or "/ARFILENAMES", set
4065         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
4066         like " /N", get full name from NAMEMAP+N.
4067         Else if NAME looks like "#1/N", read N chars from the
4068         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
4069         the elt's data into alloca'd NAMEMAP.
4070         (ar_name_equal): #if 0 truncating code.
4072         * make.h: Don't declare vfork at all.  It returns int anyway,
4073         unless <unistd.h> declared it; and we conflicted with some systems.
4075         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
4076         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
4077         define it to something like "-no-print-directory".
4078         Use %g format instead of %f for floating-valued things.
4080 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4082         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
4083         to change remote-%.dep to remote-stub.dep.
4085 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4087         * Version 3.64.
4089 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4091         * compatMakefile (install): Remove - prefix from chgrp+chmod.
4093         * Version 3.63.8.
4095 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4097         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
4098         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
4099         else to "get".
4100         * default.c (default_variables): Set GET to macro SCCS_GET.
4102         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
4103         if nonzero.  I hope this is the last time this argument is added
4104         or removed.
4105         (read_makefile): Pass it 1 when parsing include file names.
4106         Pass it 1 when parsing target file names.
4107         Pass it 1 when parsing static pattern target pattern names.
4108         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
4109         * default.c (set_default_suffixes): Pass it 1 when parsing
4110         default_suffixes.
4111         * function.c (string_glob): Pass it 0 here.
4113 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4115         * misc.c (log_access): New function.
4116         ({init,user,make,child}_access): Call it.
4117         (child_access): Abort if !access_inited.
4119         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
4120         single-letter option.
4121         (init_switches, decode_switches, define_makeflags): An option with
4122         no single-letter version is no longer indicated by a value of -1;
4123         instead a value that is !isalnum.
4124         (init_switches): Don't put such switches into the string, only
4125         into the long_option table.
4127         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
4129         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
4130         bsdcc defined WIF* to use union wait.
4132         * main.c (struct command_switch): Change member `c' to type int.
4133         (switches): Make const.
4134         (decode_switches): Use `const struct command_switch *'.
4135         (define_makeflags): Likewise.
4137         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
4139 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4141         * Version 3.63.7.
4143         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
4144         Removed AC_MEMORY_H.
4145         * make.h [USG, NeXT]: Don't test these.
4146         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
4147         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
4148         [! ANSI_STRING]: Put decls of bcopy et al here.
4149         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
4150         [HAVE_SIGSETMASK]: Test this rather than USG.
4151         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
4152         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
4153         It doesn't hurt to do both if they are both defined, and testing
4154         USG is useless.
4155         * dir.c: Rationalize directory header conditionals.
4156         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
4158         * default.c (default_suffixes): Add `.txinfo'.
4159         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
4161         * variable.c (try_variable_definition): Replace RECURSIVE flag
4162         with enum FLAVOR, which can be simple, recursive, or append.
4163         Recognize += as append flavor.  Set new variable VALUE in a switch
4164         on FLAVOR.  For append flavor, prepend the variable's old value.
4165         If the variable was previously defined recursive, set FLAVOR to
4166         recursive; if it was defined simple, expand the new value before
4167         appending it to the old value.  Pass RECURSIVE flag to
4168         define_variable iff FLAVOR == recursive.
4170         * variable.c (try_variable_definition): Use alloca and bcopy for
4171         NAME, instead of savestring.  Might as well use stack storage
4172         since we free it immediately anyway.
4174 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4176         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
4178         * main.c (define_makeflags): Rename `struct flag' member `switch'
4179         to `cs', which is not a reserved word.
4181 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4183         * job.c (new_job): Call start_waiting_jobs first thing.
4184         (start_waiting_job): Changed return type from void to int.
4185         Return 0 when putting the child on the waiting_jobs chain.
4186         (start_waiting_jobs): Don't check load and job_slots here.
4187         Always take a job off the chain and call start_waiting_job on it;
4188         give up and return when start_waiting_job returns zero.
4190         * main.c (define_makeflags: struct flag): Change member `char c' to
4191         `struct command_switch *switch'.
4192         (ADD_FLAG): Set that to CS instead of CS->c.
4193         If CS->c is -1, increment FLAGSLEN for the long name.
4194         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
4195         the long name instead.
4197         * compatMakefile (stamp-config): New target of old config.h rule.
4198         Touch stamp-config after running config.status.
4199         (config.h): Just depend on stamp-config, and have empty commands.
4201 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4203         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
4205         * configure.in (AC_HAVE_FUNCS): Check for psignal.
4207 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4209         * main.c (long_option_aliases): Remove "new"; it is already an
4210         unambiguous prefix of "new-file".
4212 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4214         * Version 3.63.6.
4216 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4218         * vpath.c (selective_vpath_search): When adding the
4219         name-within-directory at the end of NAME, and we don't add a
4220         slash, don't copy FILENAME in one char too far into NAME.
4222         * variable.c (define_automatic_variables): Find default_shell's
4223         length with strlen, not numerology.
4225 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4227         * main.c (define_makeflags): Add the elts of a string option in
4228         reverse order, so they come out right when reversed again.
4230 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4232         * compatMakefile (make.info): Use `-o make.info'.
4234 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4236         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
4237         reflect new use.
4238         (objs): Replace remote.o with remote-$(REMOTE).o.
4239         (srcs): Replace remote.c with remote-$(REMOTE).c.
4240         (remote.o): Rule removed.
4242         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
4243         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
4244         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
4245         * build.template (REMOTE): New var; set to @REMOTE@.
4246         (objs): Add remote-${REMOTE}.o.
4248 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4250         * Version 3.63.5.
4252         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
4253         "Rejecting impossible" -d msg.
4255         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
4256         mod'd values there; never mod {OLD,NEW}HASH.
4258 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4260         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
4262         * compatMakefile (VPATH): Set this to @srcdir@.
4263         (srcdir): Set this to $(VPATH).
4265         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
4266         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
4267         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
4269         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
4271         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
4273 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4275         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
4276         as the sed delimiter char.
4278 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4280         * Version 3.63.4.
4282         * rule.h (struct rule): Removed `subdir' member.
4283         * rule.c (new_pattern_rule): No need to clear it.
4284         (count_implicit_rule_limits): Set the `changed' flag in each dep
4285         that refers to a nonexistent directory.  No longer set rule-global
4286         `subdir' flag with that information.
4287         (print_rule_data_base): Don't record info on `subdir' flags.
4289         * implicit.c (pattern_search): Check the DEP->changed flag rather
4290         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
4291         if it is set, the file might exist even though the DEP->changed
4292         flag is set.
4294         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
4295         name arg to dir_file_exists_p to check for existence of directory.
4297         * implicit.c (pattern_search): Inside dep-finding loop, set
4298         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
4299         rather than computing it anew.
4301         * commands.c (set_file_variables): Must alloca space for PERCENT
4302         and copy it, to avoid leaving the trailing `)' in the value.
4304         * misc.c (remove_comments): Fixed backslash-checking loop
4305         condition to allow it to look at the first char on the line.
4306         P2 >= LINE, not P2 > LINE.
4308         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
4309         $@, rm $@.old and mv $@ to $@.old.
4311         * variable.c (try_variable_definition): Take new args FILENAME and
4312         LINENO.  Fatal if the variable name is empty.
4313         * read.c (read_makefile): Change callers.
4314         * main.c (main): Likewise.
4316         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
4317         that configure will replace with the group owning /dev/kmem.
4319 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4321         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
4322         selective_vpath_search.
4323         (selective_vpath_search): Take second arg MTIME_PTR.
4324         If the dir cache thinks a file exists, stat it to make sure, and
4325         put the modtime in *MTIME_PTR.
4326         * remake.c (library_search): Take second arg MTIME_PTR.
4327         When we find a match, record its mtime there.
4328         Pass MTIME_PTR through to vpath_search to do same.
4329         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
4330         store it in FILE->last_mtime if set nonzero.
4331         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
4333         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
4334         so globbing looks somewhere it will find things.
4336         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
4337         not `$(srcdir)/make.info*'; no need to use basename.
4339 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4341         * Version 3.63.3.
4343         * compatMakefile (install): Add missing ;\s.
4345         Make -, @, and + prefixes on a pre-expanded command line affect
4346         all lines in the expansion, not just the first.
4347         * commands.h (struct commands): Replace `lines_recurse' member
4348         with `lines_flags'.
4349         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
4350         that flag byte.
4351         * commands.c (chop_commands): Set `lines_flags' instead of
4352         `lines_recurse'.  Record not only + but also @ and - prefixes.
4353         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
4354         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
4355         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
4356         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
4357         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
4358         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
4360         * remake.c (update_goal_chain): Set G->file to its prev after
4361         checking for G being finished, since that check needs to examine
4362         G->file.
4364         * configure.in (union wait check) [HAVE_WAITPID]: Try using
4365         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
4366         don't work together, we should not use union wait.
4368         * Version 3.63.2.
4370         * remake.c (update_goal_chain): When G->file->updated, move
4371         G->file to its prev.  We aren't finished until G->file is nil.
4373 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4375         * main.c (starting_directory): New global variable.
4376         (main): Set it to cwd after doing -Cs.
4377         (log_working_directory): Use it, rather than computing each time.
4378         * make.h: Declare it.
4380         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
4382         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
4383         ARGV, rather than LEN words plus one byte.
4385 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4387         * compatMakefile ($(bindir)/$(instname)): Put - before
4388         install_setgid command line, so its failure won't be an error.
4389         (infodir): New variable.
4390         (install): Depend on $(infodir)/$(instname).info.
4391         ($(infodir)/$(instname).info): New target.
4393         * read.c (read_makefile): If FILENAMES is nil when we see a line
4394         starting with a tab, don't treat it as a command.  Just fall
4395         through, rather than giving an error.
4397         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
4398         command line, don't clear it before continuing.  We want
4399         subsequent command lines to be ignored as well.
4401         * job.c (new_job): Before expanding each command line, collapse
4402         backslash-newline combinations that are inside var or fn references.
4404 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4406         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
4408         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
4410         * job.c [POSIX] (unblock_sigs): Made global.
4411         [!POSIX] (unblock_sigs): Move defns to job.h.
4412         * job.h [POSIX] (unblock_sigs): Declare.
4414 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4416         * read.c (read_makefile): In vpath parsing, after finding the
4417         pattern token, take entire rest of line as the search path, not
4418         just the next token.
4420         * compatMakefile (remote.o): Depend on remote-*.c.
4422 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4424         * commands.c (set_file_variables): Don't define any F or D versions.
4425         * variable.c (define_automatic_variables): Define them here as
4426         recursively-expanded variables that use the dir and notdir funcs.
4428         * variable.c (target_environment): In v_default case, don't export
4429         o_default or o_automatic variables.
4431         * configure.in (union wait check): Remove ` and ' inside C code;
4432         they confuse the shell script.
4434 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4436         * Version 3.63.1.
4438         * vpath.c (construct_vpath_list): When skipping further processing
4439         of an elt that is ".", don't also skip the code that pushes P past
4440         the next separator.
4442         * compatMakefile (distclean): Don't remove make-*.
4444         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
4445         defined.  If one cannot use WEXITSTATUS with a `union wait'
4446         argument, we don't want to believe the system has `union wait' at all.
4448         * remake.c (update_file): Do nothing to print "up to date" msgs.
4449         (update_goal_chain): Do it here instead.
4450         Use the `changed' flag of each goal's `struct dep' to keep track
4451         of whether files_remade (now commands_started) changed around a
4452         call to update_file for that goal.
4453         When a goal is finished, and its file's update_status is zero (i.e.,
4454         success or nothing done), test the `changed' flag and give an "up
4455         to date" msg iff it is clear.
4456         * make.h (files_remade): Renamed to commands_started.
4457         * remake.c: Changed defn.
4458         (update_goal_chain): Changed uses.
4459         * job.c (start_job_command): Increment commands_started here.
4460         (reap_children): Not here.
4462         * remake.c (update_goal_chain): Don't do anything with files'
4463         `prev' members.  update_file now completely handles this.
4465         * variable.c (target_environment): Don't expand recursive
4466         variables if they came from the environment.
4468         * main.c (define_makeflags): For flags with omitted optional args,
4469         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
4470         so stored cannot have more flags appended to the same word.
4472 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4474         * variable.c (print_variable_set): In vars/bucket calculation,
4475         don't spuriously multiply by 100.
4477         * Version 3.63.
4479         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
4480         Don't define if already defined.
4482         * remake.c (update_file): Don't keep track of the command_state before
4483         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
4484         and don't test it to decide to print the "is up to date" msg.
4485         Testing for files_remade having changed should always be sufficient.
4486         The old method lost when we are called in the goal chain run on a
4487         makefile, because the makefile's command_state is already
4488         `cs_finished' from the makefile chain run.
4490         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
4492         * configure.in: Rewrote wait checking.
4493         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
4494         Use AC_HAVE_FUNCS to check for waitpid and wait3.
4495         Use a compile check to test just for `union wait'.
4496         * job.c: Rewrote conditionals accordingly.
4497         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
4498         [HAVE_WAIT3]: Likewise.
4499         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
4501         * configure.in: Set CFLAGS and LDFLAGS before all checks.
4503         * dir.c: Add static forward decls of {open,read}_dirstream.
4505 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4507         * Version 3.62.31.
4509         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
4511         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
4512         * build.template (CFLAGS, LDFLAGS): Same here.
4513         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
4514         Set them to -g if not defined in the environment.
4516         * remake.c (library_search): Use LIBNAME consistently, setting it
4517         only once, to be the passed name sans `-l'.
4518         Pass new var FILE to be modified by vpath_search.
4520 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4522         * Version 3.62.30.
4524         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
4525         job_slots.
4527         * configure.in: Add AC_CONST for the sake of getopt.
4529         * read.c (read_makefile): Continue after parsing `override'
4530         directive, rather than falling through to lossage.
4531         Check for EOL or blank after "override define".
4533         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
4535 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4537         * Version 3.62.29.
4539         * main.c (define_makeflags): After writing everything into
4540         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
4541         just wrote " -".  Always terminate the string at *P.
4543         * remake.c (library_search): When constructing names in std dirs,
4544         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
4545         buffer we are writing into!).
4547 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4549         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
4550         define" when IGNORING is true.
4552         * compatMakefile (distclean): Remove config.status and build.sh.
4554 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4556         * Version 3.62.28.
4558         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
4559         (char *).
4561         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
4563         * variable.c (define_automatic_variables): Override SHELL value for
4564         origin o_env_override as well as o_env.
4566         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
4567         add the names of the glob objects (w/subdir) to %objs%.
4568         * build.template (globobjs): Removed.
4569         Take basename of $objs before linking.
4571 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4573         * Version 3.62.27.
4575         * configure.in (AC_OUTPUT): Also edit build.sh.
4576         * build.template: New file.
4577         * GNUmakefile (build.sh.in): New rule to create it from build.template.
4578         (make-$(version).tar.Z): Depend on build.sh.in.
4580         * main.c (die): Call print_data_base if -p.
4581         (main): Don't call it here.
4583         * compatMakefile (defines): Add @DEFS@.  configure should turn this
4584         into -DHAVE_CONFIG_H.
4586 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4588         * Version 3.62.26.
4590         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
4591         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
4592         * compatMakefile (install_setgid): New var, set by configure.
4593         (install): Install setgid $(group) only if $(install_setgid) is true.
4595 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4597         * job.c (load_too_high): If getloadavg fails with errno==0, give a
4598         message saying that load limits are not supported.
4600         * vpath.c (construct_vpath_list): Rewrote path deletion code to
4601         not try to use PATH's next link after freeing PATH.
4603         * main.c (define_makeflags): Rewritten; now handles string-valued
4604         option, and has no arbitrary limits.
4605         (switches): Set `toenv' flag for -I and -v.
4607         * main.c (decode_env_switches): Cast return value of alloca to char *.
4609         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
4610         setre[gu]id in place of set[gu]id.
4612 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4614         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
4615         origin o_default.
4617         * make.h [POSIX]: Don't test this to use ANSI_STRING.
4618         Testing STDC_HEADERS should be sufficient.
4620         * job.h: Declare start_waiting_jobs.
4622         * read.c (read_makefile): Add missing parens in if stmt that find
4623         conditional directives.
4625         * main.c (main): Declare init_dir.
4626         * implicit.c (pattern_search): Always use two % specs in a
4627         DEBUGP2, and always pass two non-nil args.
4628         Cast field width args to int.
4629         Add missing parens in !RULE->subdir if stmt.
4630         * function.c (expand_function, patsubst_expand): Add parens around
4631         assignments inside `while' stmts.
4632         * commands.c (print_commands): Cast field width args to int.
4634         * read.c (do_define): Cast return value of alloca to (char *).
4636         * main.c (init_switches): New function, broken out of decode_switches.
4637         (decode_switches): Take new arg ENV.  If set, ignore non-option
4638         args; print no error msgs; ignore options with clear `env' flags.
4639         (decode_env_switches): Rewritten to chop envar value into words
4640         and pass them to decode_switches.
4641         (switches): Set `env' flag for -I and -v.
4643         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
4645 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4647         * Version 3.62.25.
4649         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
4650         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
4651         we don't need these anyway.
4653         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
4654         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
4655         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
4656         but its set[gu]id functions aren't; its setre[gu]id functions work.
4658         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
4660         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
4662         * configure.in: Call AC_PROG_CC.
4663         * compatMakefile (CC): Define to @CC@ (autoconf magic).
4665         * compatMakefile: Add .NOEXPORT magic target.
4667 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4669         * main.c (print_version): Updated copyright to include 93.
4671 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4673         * make.h [_AIX]: Don't declare alloca.
4675 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4677         * Version 3.62.24.
4679         * compatMakefile (objs): Add signame.o.
4680         (srcs): Add signame.[ch].
4682         * compatMakefile (srcs): Add config.h.in.
4683         (remote.o): Add -I. before -I$(srcdir).
4685 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4687         * Version 3.62.23.
4689         * read.c (readline): Fatal when LEN==0, indicating a line starting
4690         with a NUL.
4691         (readline): Take new arg LINENO, for use in error msg.
4692         (read_makefile, do_define): Pass it.
4694         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
4695         (.c.o): Add -I. before -I$(srcdir).
4697 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4699         * read.c (read_makefile): Accept and ignore a rule with no targets.
4701         * compatMakefile (ALLOCA_SRC): New variable.
4702         (srcs): Include its value.
4704         * read.c (struct conditional): Renamed member `max_ignoring' to
4705         `allocated'; added new member `seen_else'.
4706         (conditional_line): Initialize seen_else flag when starting an `if...';
4707         set it when we see an `else'; fatal if set when we see `else'.
4708         (read_makefile): Fatal "missing `endif'" if there are any pending
4709         conditionals, not just if we are still ignoring.
4711 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4713         * compatMakefile (manext): Set to 1, not l.
4714         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
4716         * file.c (file_hash_enter): Don't call uniquize_deps here.
4717         * read.c (record_files): Likewise.
4718         * implicit.c (pattern_search): Likewise.
4719         * commands.c (set_file_variables): Call it only here.
4721         * default.c (default_variables) [__convex__]: FC=fc.
4723         * variable.c (target_environment): Expand the values of recursively
4724         expanded variables when putting them into the environment.
4725         * expand.c (recursively_expand): Made global.
4726         * make.h (recursively_expand): Declare it.
4728         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
4729         when a dep's command_state is cs_running or cs_deps_running.
4731         * read.c (read_makefile): Changed error msg for spurious cmds to
4732         not say "first target".
4734 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4736         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
4737         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
4738         * compatMakefile (config.h, configure, config.h.in): New rules.
4739         (defines): Removed @DEFS@.
4741 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4743         * compatMakefile (realclean): Just depend on distclean; no cmds.
4744         (distclean): Do what realclean did before; also remove Makefile and
4745         config.h; don't remove configure.
4746         (info, dvi): New targets; depend on make.{info,dvi}.
4747         (doc): Removed target.
4748         (MAKEINFO, TEXI2DVI): New vars.
4749         (make.info, make.dvi): Use them instead of explicit cmds.
4751 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4753         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
4755 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4757         * main.c (long_option_aliases): Add --new-file alias for -W.
4759         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
4760         to CXXFLAGS.
4762         * read.c (do_define): Expand the variable name before using it.
4764         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
4765         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
4767         * remake.c (library_search): Search for libNAME.a in cwd; look in
4768         vpath before looking in standard dirs, not after.
4769         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
4771 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4773         * default.c (default_pattern_rules, default_terminal_rules): Added
4774         brackets around initializers.
4776         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
4777         (try_variable_definition): Expand the name before defining the var.
4779         * job.c (init_siglist): Removed function.
4780         Removed decl of `sys_siglist'.
4781         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
4782         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
4783         only under these conditions.
4784         * main.c (main): Don't declare init_siglist.
4785         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
4787 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4789         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
4790         nil; instead just set it to MOREDEPS.
4792 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4794         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
4795         loop that sets MAXELEM.
4797 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4799         * Version 3.62.22.
4801 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4803         * job.c (start_job_command): Under -n, increment files_remade after
4804         processing (i.e., printing) all command lines.
4806 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4808         * read.c (record_files): Append new deps if this rule has no
4809         commands; prepend them to existing deps if this rule has no commands.
4811         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
4813         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
4814         (read_makefile): Changed callers.
4815         * function.c (string_glob): Likewise.
4816         * rule.c (install_pattern_rule): Likewise.
4818 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4820         * remake.c (files_remade): Made global.
4821         (notice_finished_file): Don't increment files_remade here; this
4822         function gets called in many situations where no remaking was in
4823         fact done.
4824         * job.c (reap_children): Do it here instead, when we know that
4825         actual commands have been run for the file.
4826         * make.h (files_remade): Declare it.
4828 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4830         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
4831         separate elts in the search path.
4833         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
4834         The search path can contain spaces now.
4836 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4838         * compatMakefile (check): New target; no-op.
4840         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
4841         testing for OLDHASH==0 but before using the value.
4842         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
4843         to file_hash_enter.
4845         * file.c (rename_file): Notice when OLDFILE->cmds came from
4846         default.c, and don't try to print ->filename in that case.
4848 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4850         * remake.c (update_file): Don't process F->also_make here.
4851         (notice_finished_file): Don't process FILE->also_make if no attempt
4852         to update FILE was actually made.
4853         Fixed to call f_mtime directly to refresh their modtimes.
4855 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4857         * read.c (find_percent): Don't increment P again after skipping
4858         an escaped %.
4860         * expand.c (variable_expand): In call to patsubst_expand, don't
4861         find `%'s ourselves; let that function do it.
4863         * read.c (read_makefile: record_waiting_files): Don't call
4864         record_files if FILENAMES is nil.
4865         (read_makefile): All alternatives in the parsing, except for rule
4866         lines, fall through to the end of the loop.  At the end of the
4867         loop, do record_waiting_files so we notice later spurious cmds.
4869 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4871         * variable.c (define_automatic_variables): Free old value of SHELL
4872         before replacing it.
4874 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4876         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
4878         * dir.c (open_dirstream): Cast return value to __ptr_t.
4880         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
4882         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
4883         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
4884         Define as (get_path_max ()).
4885         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
4886         [! PATH_MAX] (get_path_max): Declare fn.
4887         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
4889 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4891         * Version 3.62.21.
4893         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
4894         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4895         SYS_SIGLIST_DECLARED.
4897         * dir.c (file_impossible): When initializing DIR->contents, set
4898         DIR->contents->dirstream to nil.
4900         * compatMakefile (GLOB): Define new variable.
4901         (objs): Use it, rather than glob/libglob.a explicitly.
4903         * read.c (parse_file_seq): When stripping "./", handle cases like
4904         ".///foo" and "./////".
4905         * file.c (lookup_file, enter_file): Likewise.
4907 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4909         * dir.c (struct dirstream, {open,read}_dirstream): New
4910         data type and functions to read a directory sequentially.
4911         (init_dir): New function to hook it into glob.
4912         * main.c (main): Call init_dir.
4914         * compatMakefile (objs): Added glob/libglob.a.
4915         * configure.in: Remove code to test for glob.
4917 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4919         * read.c (record_files): Generalized test for NAME pointing
4920         somewhere into F->name.
4922         * variable.c (define_variable_in_set): Free old value when replacing.
4924         * read.c (do_define): Free the linebuffer before returning.
4925         (record_files): When clearing .SUFFIXES deps, free their data.
4926         (multi_glob): Free OLD and its data when replacing it with results
4927         of glob run.
4929         * commands.c (set_file_variables): Use alloca in place of xmalloc
4930         for temp space for $^, $?, et al.
4932         * dir.c (struct directory): New member `contents' replaces `files'
4933         and `dirstream'.
4934         (struct directory_contents): New type.
4935         (directories_contents): New hash table.
4936         (dir_struct_file_exists_p): Take a struct directory_contents.
4937         (dir_file_exists_p): Pass it the `contents' member of the dir found.
4938         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
4939         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
4940         (dir_file_exists_p, find_directory): Change all callers.
4941         (file_impossible): Use DIR->contents, initializing it if nil.
4942         (print_dir_data_base): Use DIR->contents, and print out device and
4943         inode numbers with each directory.
4945         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
4946         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
4947         (DIRFILE_BUCKETS): Decrease to 107.
4948         (find_directory): Allocate and zero a multiple of
4949         sizeof (struct dirfile *), not of sizeof (struct dirfile).
4950         (dir_struct_file_exists_p): New function, nearly all code from
4951         dir_file_exists_p.
4952         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
4953         * vpath.c (selective_vpath_search): Remove redundant
4954         dir_file_exists_p call.
4956         * configure.in: Comment out glob check; always use our code.
4958 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4960         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4961         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
4962         do have it.
4964 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4966         * main.c (main): Don't do -w automatically if -s.
4968 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4970         * main.c (printed_version): Move variable inside print_version.
4971         (print_version): Return immediately if printed_version is set.
4972         (die): Don't test printed_version here.
4973         (decode_switches): Under -v, do print_version before giving usage.
4974         (DESCRIPTION_COLUMN): New macro.
4975         (decode_switches): Use it when printing the usage message.
4976         Leave at least two spaces between options and their descriptions.
4978 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4980         * Version 3.62.20.
4982 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4984         * read.c (read_makefile): Save errno value from trying to open
4985         FILENAME, and restore it before erring; otherwise we get the errno
4986         value from the last elt of the search path.
4988 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4990         * main.c (long_option_aliases): Add --stop for -S.
4992         * read.c (word1eq): Do strncmp before dereferencing someplace that
4993         may be out in space.
4995 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4997         * remake.c (notice_finished_file): If all the command lines were
4998         recursive, don't do the touching.
5000         * job.c (start_job_command): Don't check for + here.
5001         * commands.c (chop_commands): Do it here instead.
5003         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
5005 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5007         * compatMakefile (objs): Include $(ALLOCA).
5009         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
5011 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5013         * read.c (default_include_directories): Add INCLUDEDIR first.
5014         * compatMakefile (includedir): Define.
5015         (defines): Add -D for INCLUDEDIR="$(includedir)".
5017         * read.c (read_makefile): Grok multiple files in `include';
5018         globbing too.
5020         * remake.c (library_search): New function.
5021         (library_file_mtime): Remove function.
5022         (f_mtime): Use library_search instead of library_file_mtime.
5023         * compatMakefile (libdir): Define.
5024         (defines): Add -D for LIBDIR="$(libdir)".
5025         * make.texinfo (Libraries/Search): Document change.
5027         * file.c (rename_file): Fix file_hash_enter call with missing arg.
5029 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5031         * Version 3.62.19.
5033         * main.c (main): Set command_state to cs_finished for temp files
5034         made for stdin makefiles.
5036         * main.c (decode_switches): Don't tell getopt to return non-option
5037         args in order.
5038         Ignore an argument of `-'.
5040 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5042         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
5043         the command line and go to the next.
5044         (notice_finished_file): Under -t, touch FILE.
5045         * remake.c (remake_file): Don't touch it here.
5047 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5049         * function.c (pattern_matches): Use temporary for strlen (WORD)
5050         instead of two function calls.
5052         * compatMakefile (LOAD_AVG): Remove variable and comments.
5054 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5056         * make.texinfo (Running): Node renamed to `make Invocation'.
5058 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5060         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
5061         NAMELEN != MEMLEN.
5063 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5065         * Version 3.62.18.
5067         * main.c: Don't #include <time.h>; make.h already does.
5069 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5071         * implicit.c (pattern_search): Fixed copying of suffix when building
5072         also_make elts.
5074         * function.c (expand_function: `shell'): Make sure BUFFER is
5075         null-terminated before replacing newlines.
5077         * compatMakefile (mandir): Use man$(manext), not always manl.
5079 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5081         * rule.c (new_pattern_rule): Not static.
5082         * rule.h: Declare it.
5084         * file.c (file_hash_enter): New function, most code from rename_file.
5085         (rename_file): Call it.
5086         * file.h (file_hash_enter): Declare it.
5088         * dep.h: Doc fix.
5090 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5092         * main.c (decode_switches): Handle usage_and_exit when building
5093         long options vector.
5095         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
5096         (default_variables): Define CHECKOUT,v (hairy).
5098         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5099         sys_siglist to _sys_siglist.
5101 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5103         * NEWS: Add header and tail copyright info like Emacs NEWS.
5105         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
5106         bcopy if already #define'd.
5107         [STDC_HEADERS] (qsort, abort, exit): Declare here.
5108         [! __GNU_LIBRARY__ && !POSIX]: Not here.
5110         * make.h [_AIX]: #pragma alloca first thing.
5112         * job.c (start_waiting_job): Set the command_state to cs_running
5113         when we queue a job on waiting_jobs.
5115 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5117         * variable.c (define_automatic_variables): Use "" instead of nil
5118         for empty value.
5120 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5122         * Version 3.62.17.
5124         * main.c (struct command_switch.type): Add alternative usage_and_exit.
5125         (command_switches): Add -h/--help.
5127 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5129         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
5130         * README.template: Mention NEWS.
5131         * CHANGES: Renamed to NEWS.
5133         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
5135 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5137         * main.c (main): Set -o files' command_states to cs_finished.
5139         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
5140         when tossing a rule.
5142         * main.c (main): Use alloca only in simple local var assignment,
5143         for braindead SGI compiler.
5145         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
5146         inconsistent with the number computed when listing them.
5148 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5150         * commands.c (set_file_variables): For $? and $^ elts that are archive
5151         member refs, use member name only.
5153 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5155         * variable.h (struct variable.export): Add new alternative v_ifset.
5156         * variable.c (target_environment): Check for it.
5157         (define_automatic_variables): Set it for MAKEFILES.
5159 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5161         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
5162         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
5163         (distclean, mostlyclean): New targets.
5165 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5167         * Version 3.62.16.
5169         * compatMakefile (config.status): Remove rule.
5171         * job.c (start_waiting_job): Free C after using C->file, not before.
5173 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5175         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
5176         HAVE_* instead of #ifndef *_MISSING.
5177         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
5179 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5181         * main.c (main): makelevel>0 or -C implies -w.
5183 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5185         * file.c, job.c, function.c: Don't #include <errno.h>.
5186         make.h: Do it here instead.
5187         * arscan.c (ar_member_touch): Don't declare errno.
5189 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5191         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
5193         * remake.c (update_file): If commands or deps are running after
5194         update_file_1 returns, break out of the :: rule (->prev) loop and
5195         just return.
5197         * job.c (job_next_command): New function; code from start_job.
5198         (start_job_command): Renamed from start_job.  Call job_next_command
5199         and recurse for empty command lines and -n.
5200         (start_waiting_job): Call start_job_command, not start_job.
5201         (new_job): Call job_next_command to prime the child structure, and
5202         then call start_waiting_job.
5203         (reap_children): Use job_next_command and start_job_command.
5204         (start_waiting_job): Call start_remote_job_p here, and store its
5205         result in C->remote.  If zero, check the load average and
5206         maybe put C on waiting_jobs.
5207         (start_job_command): Test CHILD->remote rather than calling
5208         start_remote_job_p.  Don't do load avg checking at all here.
5210         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
5211         SIGSEGV, SIGFPE or SIGTRAP.
5213         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
5214         configure will set it in glob/Makefile.
5216 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5218         * dir.c [DIRENT] (direct): Don't define to dirent.
5219         [! DIRENT] (direct): Define to dirent.
5220         (dir_file_exists_p): Use struct dirent instead of struct direct.
5222         * make.h (getcwd): No space between macro and ( for args!
5224         * job.c (start_job): Don't put the job on waiting_jobs if
5225         job_slots_used==0.
5227         * make.texinfo (Missing): Shortened title.
5229 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5231         * file.c (remove_intermediates): Print "rm" commands under -n.
5233 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5235         * Version 3.62.15.
5237 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5239         * arscan.c [M_UNIX]: #undef M_XENIX.
5241 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5243         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
5245 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5247         * compatMakefile (getloadavg.o): Removed special rule.
5248         (CFLAGS): Don't include $(defines).
5249         (.c.o): Define suffix rule.
5250         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
5251         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
5253         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
5255         * make.h (max): Removed.
5256         * expand.c (variable_buffer_output): Don't use it.
5258         * compatMakefile (INSTALL): Define.
5259         (Makefile): New rule to make from Makefile.in.
5260         (srcdir): Define.
5261         (VPATH): Define.
5262         (getloadavg.o, remote.o): Use autoconf $foo< hack.
5264         * commands.c (fatal_error_signal): Removed return.
5266 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5268         * Version 3.62.14.
5270         * make.texinfo (Summary): New node.
5271         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
5273         * variable.c (max): Moved to make.h.
5275         * compatMakefile (objs, srcs): Added ar & arscan.
5277         * job.c (start_waiting_job): New function, 2nd half of new_job.
5278         (new_job): Call it.
5279         (start_waiting_jobs): New function.
5280         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
5281         of the main loop.
5282         * compatMakefile (objs, srcs): Removed load, added getloadavg.
5284 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5286         * job.c (load_too_high): New function.  Uses getloadavg.
5287         (waiting_jobs): New variable.
5288         (start_job): Don't call wait_to_start_job.  Instead, if
5289         load_too_high returns nonzero, add the child to the
5290         `waiting_jobs' chain and return without starting the job.
5292 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5294         * expand.c (variable_buffer_output): Made global again.
5295         * variable.h: And declare it.
5297         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
5298         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
5299         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
5300         for a slash in the archive at run time.
5301         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
5302         cope with trailing-slash and non-trailing-slash archives.
5304         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
5305         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
5307         * load.c (load_average) [sgi]: Use sysmp call.
5309         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
5310         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
5312         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
5313         (vfork, VFORK_NAME): Don't define.
5314         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
5316         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
5317         the each file.  Rearranged PATH_MAX hacking.
5318         * job.c: Rearranged NGROUPS_MAX hacking.
5320         * remake.c (fstat, time): Don't declare.
5322         * compatMakefile (defines): Value is @DEFS@.
5323         (LOADLIBES): Value is @LIBS@.
5324         (extras): Value is @LIBOBJS@.
5325         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
5326         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
5328         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
5330         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
5331         (getcwd): Just declare if present.  If not, declare as a macro
5332         using getwd, and declare getwd.
5333         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
5334         * main.c (main, log_working_directory): Use getcwd instead of getwd.
5336         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
5338         * make.h (SIGHANDLER, SIGNAL): Removed.
5339         (RETSIGTYPE): Define if not #define'd.
5340         * main.c (main): Use signal in place of SIGNAL.
5342         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
5344         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
5345         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
5347         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
5348         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
5350         * job.c (child_handler), commands.c (fatal_error_signal): Return
5351         RETSIGTYPE instead of int.
5352         * main.c (main): Declare fatal_error_signal and child_handler here
5353         to return RETSIGTYPE; removed top-level decl of former.
5355         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
5356         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
5358 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5360         * job.c [HAVE_WAITPID]: Test this instead of USG.
5361         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
5362         (GID_T): Don't #define.
5363         (search_path): Use gid_t instead of GID_T.
5364         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
5365         these individually instead of USG for all.
5366         * make.h (ctime): Don't declare.  #include time.h instead.
5367         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
5368         _POSIX_VERSION.
5369         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
5370         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
5372         * arscan.c: Removed #ifdef mess about string.h et al.
5373         Just #include make.h instead.
5374         * make.h (fstat, atol): Declare.
5376         * commands.c (fatal_error_signal): Don't use sigmask to check for
5377         propagated signals; use ||s instead.
5378         (PROPAGATED_SIGNAL_MASK): Removed.
5379         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
5381         * variable.c (variable_buffer, variable_buffer_length,
5382         initialize_variable_output, variable_output): Moved to expand.c;
5383         made all static.
5384         (struct output_state, save_variable_output,
5385         restore_variable_output): Removed.
5386         * expand.c (initialize_variable_output): Put a NUL at the beginning
5387         of the new buffer after allocating it.
5388         (allocated_variable_expand_for_file): Don't use
5389         {save,restore}_variable_output.  Do it by hand instead, keeping
5390         state on the stack instead of malloc'ing it.
5391         (allocated_variable_expand): Removed.
5392         * variable.h (allocated_variable_expand): Define here as macro.
5393         (variable_buffer_output, initialize_variable_output,
5394         save_variable_output, restore_variable_output): Removed decls.
5396         * read.c (conditional_line): For an if cmd, if any elt of the
5397         conditionals stack is ignoring, just push a new level that ignores
5398         and return 1; don't evaluate the condition.
5400 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5402         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
5404         * job.c (getdtablesize): Don't declare or #define if already #define'd.
5406 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5408         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
5409         export_all_variables.
5410         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
5412 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5414         * Version 3.62.13.
5416         * commands.c (set_file_variables): Calculate length for ^D and ?D
5417         individually, making sure to give them at least enough space for "./".
5419         * make.h [CRAY]: #define signal to bsdsignal.
5421         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
5422         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
5424         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
5425         wasn't defined by <ar.h>.
5427 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5429         * Version 3.62.12.
5431 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5433         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
5434         pattern_rules.
5436 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5438         * main.c (decode_switches): Initialize all the long_option elt members.
5440 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5442         * make.texinfo (Text Functions): Correct filter-out description.
5444 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5446         * compatMakefile (realclean): Don't remove backup files.
5448         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
5450 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5452         * Version 3.62.11.
5454 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5456         * job.c (reap_children): Don't die if wait returns EINTR.
5458 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5460         * job.c (reap_children): Always run the next command for a
5461         successful target.  If we are going to die, we don't want to leave
5462         the target partially made.
5464 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5466         * job.c (construct_command_argv_internal): After loop, if we only
5467         have one word, check it for being a shell command.
5469         * main.c (decode_switches): Allocate ARGC slots in other_args to
5470         begin with, so we never need to worry about growing it.
5471         If we get a non-option arg and POSIXLY_CORRECT is in the
5472         environment, break out of the loop.  After the loop, add all remaining
5473         args to other_args list.
5475         * main.c (decode_switches): For positive_int and floating switches
5476         when optarg is nil, use next arg if it looks right (start with a
5477         digit, or maybe decimal point for floating).
5479         * variable.c (define_automatic_variables): Always set SHELL to
5480         default if it comes from the environment.  Set its export bit.
5481         * make.texinfo (Environment): Document change.
5483 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5485         * Version 3.62.10.
5487         * compatMakefile (tags, TAGS): Use vars for cmds.
5488         (ETAGS, CTAGS): Define.
5490         * main.c (decode_switches): If a switches elt has a nil long_name,
5491         make the long option name elt be "".
5492         Fixed loop to not ignore all the options.
5494         * make.texinfo (Option Summary): Added long options.
5496         * main.c (switches): Changed -m's description to "-b".
5497         (decode_switches): When printing the usage message, don't print
5498         switches whose descriptions start with -.
5499         When constructing the list of names for switch -C, search the
5500         switches vector for switches whose descriptions are "-C".
5502         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
5503         Call -I --include-dir, not --include-path.
5504         (long_option_aliases): Added --new == -W, --assume-new == -W,
5505         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
5506         --makefile == -f.
5508         * main.c (switches): Removed bogus "silent" elt.
5509         (long_option_aliases): Define new var.
5510         (decode_switches): Add long_option_aliases onto the end of the long
5511         options vector created for getopt_long.
5512         Look through long_option_aliases for extra names to list
5513         in usage message.
5515 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5517         * main.c (log_working_directory): Fixed to properly not print the
5518         leaving message when we haven't printed the entering message.
5520 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5522         * main.c (struct command_switch): Added elts `long_name',
5523         `description', and `argdesc'.
5524         (switches): Added initializers for new members.
5525         (decode_switches): Rewritten to use getopt_long.
5526         * compatMakefile (GETOPT, GETOPT_SRC): Define.
5527         (objs, srcs): Include them.
5529         * job.c (child_died): Renamed to dead_children; made static.
5530         (child_handler): Increment dead_children instead of setting child_died.
5531         (reap_children): Decrement dead_children instead of clearing
5532         child_died.  The point of all this is to avoid printing "waiting
5533         for unfinished jobs" when we don't actually need to block.
5534         This happened when multiple SIGCHLDs before reap_children was called.
5536         * job.c (reap_children): If ERR is set, so we don't call start_job
5537         on the child being reaped, instead set its command_state to
5538         cs_finished.
5539         (reap_children, child_handler, new_job): I added several
5540         debugging printf's while fixing this.  I left them in if (debug_flag)
5541         because they may be useful for debugging this stuff again.
5543 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5545         * read.c (read_makefile): v_export is not 1.
5547 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5549         * Version 3.62.9.
5551         * variable.c (export_all_variables): New variable.
5552         (target_environment): Export variables whose `export' member is
5553         v_default if export_all_variables is set and their names are benign.
5554         * variable.h: Declare export_all_variables.
5555         * read.c (read_makefile): If export or unexport is given with no
5556         args, set or clear export_all_variables, respectively.
5558         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
5559         so it isn't duplicated when we add it at the end.
5561 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5563         * Version 3.62.8.
5565         * variable.h (struct variable): Added new member `export'.
5566         * variable.c (define_variable_in_set): Initialize it to v_default.
5567         (target_environment): Don't check for .NOEXPORT.
5568         Export variables whose `export' member is v_default and that would
5569         have been exported under .NOEXPORT, and variables whose `export'
5570         member is v_export.
5571         (try_variable_definition): Return the variable defined.
5572         * variable.h (try_variable_definition): Changed decl.
5573         * read.c (read_makefile): Recognize `export' and `unexport' directives.
5575 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5577         * main.c (main) [POSIX]: Reversed args to sigaddset.
5579 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5581         * job.c [POSIX || !USG] (unblock_sigs): New fn.
5582         (start_job): Block signals before forking.
5583         (new_job): Unblock signals after putting the new child on the chain.
5584         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
5585         int fatal_signal_mask.
5587         * load.c [sgi] (LDAV_CVT): Define.
5589 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5591         * Version 3.62.7.
5593         * load.c (load_average) [sgi]: Clear the high bit of the address
5594         from the symbol table before looking it up in kmem.
5596         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
5597         (remake_file): No longer needed in message here.
5599         * main.c (die): Call reap_children with BLOCK==1.
5601 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5603         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
5605 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5607         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
5608         not to head of chain.  Extract next ptr before we might do
5609         freerule, and use that for next iteration.
5610         (freerule): Still do next ptr frobbing if LASTRULE is nil.
5612 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5614         * job.c (child_error): Removed extra %s from error msg format.
5616         * Version 3.62.6.
5618         * job.c (reap_children): Don't start later commands in a sequence
5619         if ERR is nonzero.
5621         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
5623         * job.c (reap_children): New function; work that used to be done in
5624         child_handler.
5625         (child_died): New global var.
5626         (child_handler): Now just sets child_died.
5627         (wait_for_children): Removed.
5628         (unknown_children_possible, block_signals, unblock_signals,
5629         push_signals_blocked_p, pop_signals_blocked_p): Removed.
5630         (child_execute_job): Removed call to unblock_signals.
5631         (new_job): Removed calls to push_signals_blocked_p and
5632         pop_signals_blocked_p.
5633         * job.h: Declare reap_children, not wait_for_children.
5634         * commands.c (fatal_error_signal), job.c (new_job),
5635         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
5636         remake.c (update_goal_chain), function.c (expand_function: `shell'):
5637         Changed wait_for_children calls to reap_children.
5638         Some needed to be loops to wait for all children to die.
5639         * commands.c (fatal_error_signal), main.c (main,
5640         log_working_directory), function.c (expand_function): Removed calls
5641         to push_signals_blocked_p and pop_signals_blocked_p.
5642         * job.h: Removed decls.
5644         * job.h: Added copyright notice.
5646 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5648         * job.c (child_error): No *** for ignored error.
5650 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5652         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
5653         avoid compiler warnings.
5655         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
5656         blank.
5658 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5660         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
5661         avoid compiler warnings.
5663         * remake.c (notice_finished_file): Run file_mtime on the also_make
5664         files, so vpath_search can happen.
5666         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
5667         (alpha-files): Include test suite tar file.
5669 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5671         * Version 3.62.5.
5673 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5675         * remake.c (update_file, update_file_1): Do check_renamed on elts
5676         of dep chains when traversing them.  Something unrelated might have
5677         renamed one of the files the dep chain points to.
5679         * file.c (rename_file): If FILE has been renamed, follow its
5680         `renamed' ptr, so we get to the final real FILE.  Using the renamed
5681         ones loses because they are not in the hash table, so the removal
5682         code loops infinitely.
5684         * read.c (read_all_makefiles): Clobber null terminator into
5685         MAKEFILES expansion, so string passed to read_makefile is properly
5686         terminated.
5688 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5690         * commands.c (set_file_variables): $* for archive member with
5691         explicit cmds is stem of member, not of whole `lib(member)'.
5693 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5695         * Version 3.62.4.
5697 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5699         * rule.c (new_pattern_rule): Rules are identical only if all their
5700         targets match (regardless of order).
5702 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5704         * remake.c (remake_file): Changed error "no way to make" to "no
5705         rule to make".  Fiat Hugh.
5707         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
5708         behavior.
5710         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
5711         target.
5713 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5715         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
5716         environment to pass to child.
5717         * job.c (start_job): Pass it.
5719 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5721         * file.c (enter_file): Also strip ./s here, to get command-line
5722         target names.
5724         * remote-cstms.c: Add comment telling people to leave me alone.
5726         * compatMakefile (manpage install): Remove target before copying.
5728 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5730         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
5731         Added paragraph describing $? incompatibility with Unix and POSIX.2.
5733 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
5735         * function.c (expand_function: `shell'): Don't declare fork or pipe.
5736         Use vfork instead of fork.
5738 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5740         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
5741         intermediate files.
5743         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
5745 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5747         * Version 3.62.3.
5749 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5751         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
5753 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5755         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
5757         * read.c (record_files): Pass arg for %s in error msg.
5759         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
5760         call.
5762 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5764         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
5766 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5768         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
5770 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5772         * Version 3.62.2.
5774 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5776         * job.c (construct_command_argv_internal): Correctly ignore
5777         whitespace after backslash-NL.
5779 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5781         * compatMakefile: Ignore errors from chgrp and chmod when installing.
5783 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5785         * main.c (main): When setting MAKELEVEL in the env to re-exec,
5786         allocate space so as not to clobber past the end of the old string.
5788         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
5789         * compatMakefile (defines): Document HAVE_ALLOCA_H.
5791 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5793         * make.h [VFORK_MISSING]: Use fork instead.
5794         * compatMakefile (defines): Document same.
5796         * job.c (construct_command_argv_internal): Don't create an empty
5797         arg if backslash-NL is at beginning of word.
5799 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5801         * main.c [DGUX]: Call setvbuf as for USGr3.
5803         * job.c (construct_command_argv_internal): Notice correctly that
5804         backslash-NL is the end of the arg (because it is replaced with a
5805         space).
5807 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5809         * job.c (construct_command_argv_internal): If SHELL is nil, set it
5810         to default_shell before proceeding.
5812         * make.h [sgi]: No alloca.h, after all.
5814 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5816         * read.c (multi_glob): Cons up the chain of the results of glob
5817         from back to front, so it comes out in forward order.
5819         * job.c (construct_command_argv_internal): Don't eat char following
5820         backslash-NL.
5822 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5824         * Version 3.62.1.
5826         * default.c (default_variables) [ultrix]: GET=get, like USG.
5828         * job.c (construct_command_argv_internal): Remove tabs following
5829         backslash-NL combos in the input line, so they don't show up when
5830         that line is printed.
5832         * read.c (read_makefile): Don't collapse_continuations the line on
5833         input; do it on the copy we do remove_comments on.
5834         For rule lines, collapse_continuations the line after chopping
5835         ";cmds" off the end, so we don't eat conts in the cmds.
5836         Give error for ";cmds" with no rule.
5837         * job.c (construct_command_argv_internal): Eat backslash-NL combos
5838         when constructing the line to recurse on for slow, too.
5840 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5842         * file.c (enter_file): Don't strip leading `./'s.
5843         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
5844         * default.c (set_default_suffixes), function.c (string_glob),
5845         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
5847         * default.c (default_variables) [_IBMR2]: FC=xlf
5849         * job.c (construct_command_argv_internal): Turn backslash-NL and
5850         following whitespace into a single space, rather than just eating
5851         the backslash.
5853         * make.texinfo (Copying): @include gpl.texinfo, rather than
5854         duplicating its contents.
5856 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5858         * job.c (construct_command_argv_internal): Make sure not to bother
5859         processing an empty line.
5861         * Version 3.62.0.
5863         * job.c (construct_command_argv_internal): Always recurse for slow;
5864         simple case didn't handle finding newlines.
5866 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5868         * job.c (construct_command_argv_internal): Set RESTP properly when
5869         slow; don't \ify past a newline.
5871 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5873         * make.h [sgi]: #include <alloca.h>.
5877 See ChangeLog.1 for earlier changes.