Add in HAVE_STDARG_H to the various port config files.
[make.git] / ChangeLog
blobc166053081e986926927665fa32bef85615942b3
1 2004-02-24  Paul D. Smith  <psmith@gnu.org>
3         * config.h.W32.template: Add HAVE_STDARG_H
4         * config.h-vms.template: Ditto.
5         * config.ami.template: Ditto.
7 2004-02-23  Jonathan Grant  <jg-make@jguk.org>
9         * README.W32.template: Add a notation about -j with BATCH_MODE_ONLY.
10         * build_w32.bat: Remove extra "+".
12 2004-02-23  Paul D. Smith  <psmith@gnu.org>
14         * make.h: Create an UNUSED macro to mark unused parameters.
15         * (many): Clean up warnings by applying UNUSED, fixing
16         signed/unsigned incompatibilities, etc.
18         * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Add quoting to silence
19         autoconf warnings.
20         * filedef.h: Name the command_state enumeration.
21         * file.c (set_command_state): Use the enumeration in the function
22         argument.
24         * configure.in: Explicitly set SET_MAKE to empty, to disable
25         MAKE=make even when no make already exists.  Fix bug #3823.
27 2004-02-22  Paul D. Smith  <psmith@gnu.org>
29         * maintMakefile: Perl script to clean up all non-CVS files.  Use
30         it on all the subdirectories for the cvs-clean target.
32         * main.c (decode_switches): Require non-empty strings for all our
33         string command-line options.  Fixes Debian bug # 164165.
35         * configure.in: Check for stdarg.h and varargs.h.
36         * make.h (USE_VARIADIC): Set this if we can use variadic functions
37         for printing messages.
38         * misc.c: Check USE_VARIADIC instead of (obsolete) HAVE_STDVARARGS.
39         (message): Ditto.
40         (error): Ditto.
41         (fatal): Ditto.
43         A number of patches for OS/2 support from Andreas Buening
44         <andreas.buening@nexgo.de>:
46         * job.c (child_handler) [OS/2]: Allow this on OS/2 but we have to
47         disable the SIGCHLD handler.
48         (reap_children) [OS/2]: Remove special handling of job_rfd.
49         (set_child_handler_action_flags) [OS/2]: Use this function in OS/2.
50         (new_job) [OS/2]: Disable the SIGCHLD handler on OS/2.
51         * main.c (main) [OS/2]: Special handling for paths in OS/2.
52         * configure.in [OS/2]: Force SA_RESTART for OS/2.
53         * Makefile.am (check-regression): Use $(EXEEXT) for Windows-type
54         systems.
56 2004-02-21  Paul D. Smith  <psmith@gnu.org>
58         * w32/subproc/sub_proc.c (process_easy) [W32]: Christoph Schulz
59         <mail@kristov.de> reports that if process_begin() fails we don't
60         handle the error condition correctly in all cases.
61         * w32/subproc/w32err.c (map_windows32_error_to_string): Make sure
62         to have a newline on the message.
64         * job.c (construct_command_argv_internal): Add "test" to UNIX
65         sh_cmds[].  Fixes Savannah bug # 7606.
67 2004-02-04  Paul D. Smith  <psmith@gnu.org>
69         * job.c (vms_handle_apos) [VMS]: Fix various string handling
70         situations in VMS DCL.  Fixes Savannah bug #5533.  Fix provided by
71         Hartmut Becker <Hartmut.Becker@hp.com>.
73 2004-01-21  Paul D. Smith  <psmith@gnu.org>
75         * job.c (load_too_high): Implement an algorithm to control the
76         "thundering herd" problem when using -l to control job creation
77         via the load average.  The system only recomputes the load once a
78         second but we can start many jobs in a second.  To solve this we
79         keep track of the number of jobs started in the last second and
80         apply a weight to try to guess what a correct load would be.
81         The algorithm was provided by Thomas Riedl <thomas.riedl@siemens.com>.
82         Also fixes bug #4693.
83         (reap_children): Decrease the job count for this second.
84         (start_job_command): Increase the job count for this second.
86         * read.c (conditional_line): Expand the text after ifn?def before
87         checking to see if it's a single word.  Fixes bug #7257.
89 2004-01-09  Paul D. Smith  <psmith@gnu.org>
91         * file.c (print_file): Recurse to print all targets in
92         double-colon rules.  Fixes bug #4518, reported (with patch) by
93         Andrew Chatham <chatham@google.com>.
95 2004-01-07  Paul D. Smith  <psmith@gnu.org>
97         * acinclude.m4: Remove make_FUNC_SETVBUF_REVERSED.
98         * configure.in: Change make_FUNC_SETVBUF_REVERSED to
99         AC_FUNC_SETVBUF_REVERSED.
101         * doc/make.texi (Target-specific): Fix Savannah bug #1772.
102         (MAKE Variable): Fix Savannah bug #4898.
104         * job.c (construct_command_argv_internal): Add "!" to the list of
105         shell escape chars.  POSIX sh allows it to appear before a
106         command, to negate the exit code.  Fixes bug #6404.
108         * implicit.c (pattern_search): When matching an implicit rule,
109         remember which dependencies have the ignore_mtime flag set.
110         Original fix provided in Savannah patch #2349, by Benoit
111         Poulot-Cazajous <Benoit.Poulot-Cazajous@jaluna.com>.
113 2003-11-22  Paul D. Smith  <psmith@gnu.org>
115         * README.W32.template (Outputs): Clarification on -j with
116         BATCH_MODE_ONLY_SEHLL suggested by Jonathan R. Grant
117         <jg-make@jguk.org>.
119 2003-11-02  Paul D. Smith  <psmith@gnu.org>
121         * function.c (func_if): Strip all the trailing whitespace from the
122         condition, then don't expand it.  Fixed bug # 5798.
124         * expand.c (recursively_expand_for_file): If we're expanding a
125         variable with no file context, then use the variable's context.
126         Fixes bug # 6195.
128 2003-10-21  Paul D. Smith  <psmith@gnu.org>
130         * main.c (log_working_directory): Add newlines to printf()s.
132         * README.cvs: Add a note to ignore warnings during autoreconf.
134         * maintMakefile (po_repo): Set a new URL for PO file updates.
135         (get-config/config.guess get-config/config.sub): Get these files
136         from the Savannah config project instead of ftp.gnu.org.
138 2003-08-22  Paul D. Smith  <psmith@gnu.org>
140         * misc.c (xmalloc, xrealloc): Add one to 0 sizes, to cater to
141         systems which don't yet implement the C89 standard :-/.
143 2003-07-18  Paul D. Smith  <psmith@gnu.org>
145         * dir.c (directory_contents_hash_1, directory_contents_hash_1)
146         [WINDOWS32]: Initialize hash.
148 2003-06-19  Earnie Boyd  <earnie@uses.sf.net>
150         * dir.c (read_dirstream): Provide a workaround for broken versions of
151         the MinGW dirent structure.
153 2003-05-30  Earnie Boyd  <earnie@users.sf.net>
155         * w32/include/dirent.h: Add __MINGW32__ filter.
157 2003-05-30  Earnie Boyd  <earnie@users.sf.net>
159         * make.h: Add global declaration of *make_host.
160         * main.c (print_usage): Remove local declaration of *make_host.
161         (print_version): Display "This program built for ..." after Copyright
162         notice.
164 2003-05-30  Earnie Boyd  <earnie@users.sf.net>
166         * doc/make.texi: Change "ifinfo" to "ifnottex" as suggested by the
167         execution of "makeinfo --html make.texi".
169 2003-04-30  Paul D. Smith  <psmith@gnu.org>
171         * build.template: Make some changes to maybe allow this script to
172         work on DOS/Windows/OS2 systems.  Suggested by Andreas Buening.
174         * README.OS2.template: New file for OS/2 support.  Original
175         contributed by Andreas Buening.
176         * configure.in: Invoke new pds_AC_DOS_PATHS macro to test for
177         DOS-style paths.
179 2003-04-19  Paul D. Smith  <psmith@gnu.org>
181         Fix bug #1405: allow a target to match multiple pattern-specific
182         variables.
184         * rule.c (create_pattern_var, lookup_pattern_var): Move these to
185         variable.c, where they've always belonged.
186         * rule.h: Move the prototypes and struct pattern_var as well.
187         * variable.c (initialize_file_variables): Invoke
188         lookup_pattern_var() in a loop, until no more matches are found.
189         If a match is found, create a new variable set for the target's
190         pattern variables.  Then merge the contents of each matching
191         pattern variable set into the target's pattern variable set.
192         (lookup_pattern_var): Change this function to be usable
193         in a loop.  It takes a starting position: if NULL, start at the
194         beginning; if non-NULL, start with the pattern variable after that
195         position, and return the next matching pattern.
196         (create_pattern_var): Create a unique instance of
197         pattern-specific variables for every definition in the makefile.
198         Don't combine the same pattern together.  This allows us to
199         process the variable handling properly even when the same pattern
200         is used multiple times.
201         (parse_variable_definition): New function: break out the parsing
202         of a variable definition line from try_variable_definition.
203         (try_variable_definition): Call parse_variable_definition to
204         parse.
205         (print_variable_data_base): Print out pattern-specific variables.
206         * variable.h (struct variable): Remember when a variable is
207         conditional.  Also remember its flavor.
208         (struct pattern_var): Instead of keeping a variable set, we just
209         keep a single variable for each pattern.
210         * read.c (record_target_var): Each pattern variable contains only a
211         single variable, not a set, so create it properly.
212         * doc/make.texi (Pattern-specific): Document the new behavior.
214 2003-04-17  Paul D. Smith  <psmith@gnu.org>
216         * dir.c (file_exists_p) [VMS]: Patch provided with Bug #3018 by
217         Jean-Pierre Portier <portierjp2@free.fr>.  I don't understand the
218         file/directory naming rules for VMS so I can't tell whether this
219         is correct or not.
221 2003-04-09  Paul D. Smith  <psmith@gnu.org>
223         * configure.in (HAVE_DOS_PATHS): Define this on systems that need
224         DOS-style pathnames: backslash separators and drive specifiers.
226 2003-03-28  Paul D. Smith  <psmith@gnu.org>
228         * file.c (snap_deps): If .SECONDARY with no targets is given, set
229         the intermediate flag on all targets.  Fixes bug #2515.
231 2003-03-24  Paul D. Smith  <psmith@gnu.org>
233         * configure.in, Makefile.am, glob/Makefile.am, doc/Makefile.am:
234         Upgrade to autoconf 2.57 and automake 1.7.3.
236         * job.c: More OS/2 changes from Andreas Buening.
238         * file.c (print_file): Fix variable initialization.
239         Fixes bug #2892.
241         * remake.c (notice_finished_file):
243         * make.h (ENULLLOOP): Set errno = 0 before invoking the command;
244         some calls (like readdir()) return NULL in valid situations
245         without resetting errno.  Fixes bug #2846.
247 2003-02-25  Paul D. Smith  <psmith@gnu.org>
249         Port to OS/2 (__EMX__) by Andreas Buening <andreas.buening@nexgo.de>.
251         * job.c (_is_unixy_shell) [OS/2]: New function.
252         Set default shell to /bin/sh.
253         (reap_children): Close the job_rfd pipe here since we don't use a
254         SIGCHLD handler.
255         (set_child_handler_action_flags): define this to empty on OS/2.
256         (start_job_command): Close the jobserver pipe and use
257         child_execute_job() instead of fork/exec.
258         (child_execute_job): Rewrite to handle stdin/stdout FDs and spawn
259         rather than exec'ing, then reconfigure stdin/stdout.
260         (exec_command): Rewrite to use spawn instead of exec.  Return the
261         PID of the child.
263         * main.c (main) [OS/2]: Call initialize_main().  Handle argv[0] as
264         in DOS.  Handle the TEMP environment variable as in DOS.  Don't
265         use a SIGCHLD handler on OS/2.  Choose a shell as in DOS.  Don't
266         use -j in DOS mode.  Use child_execute_job() instead of
267         exec_command().
269         * function.c (func_shell) [OS/2]: Can't use fork/exec on OS/2: use
270         spawn() instead.
272         * job.h [OS/2]: Move CLOSE_ON_EXEC here from job.c.  Add
273         prototypes that return values.
275         * remake.c (f_mtime) [OS/2]: Handle FAT timestamp offsets for OS/2.
277         * read.c (readline) [OS/2]: Don't handle CRLF specially on OS/2.
278         * default.c (default_suffixes) [OS/2]: Set proper default suffixes
279         for OS/2.
280         * vpath.c (construct_vpath_list) [OS/2]: Handle OS/2 paths like
281         DOS paths.
283 2003-02-24  Paul D. Smith  <psmith@gnu.org>
285         * default.c [VMS]: New default rules for .cxx -> .obj compiles.
286         * job.c (child_execute_job) [VMS]: New code for handling spawn().
287         (child_execute_job) [VMS]: Handle error status properly.
288         Patches provided by Hartmut Becker <Hartmut.Becker@compaq.com>.
290         * function.c (func_shell): Use EINTRLOOP() while reading from the
291         subshell pipe (Fixes bug #2502).
292         * job.c (free_child): Use EINTRLOOP() while writing tokens to the
293         jobserver pipe.
294         * main.c (main): Ditto.
296 2003-01-30  Paul D. Smith  <psmith@gnu.org>
298         * read.c (eval): eval() was not fully reentrant, because the
299         collapsed buffer was static.  Change it to be an automatic
300         variable so that eval() can be invoked recursively.
301         Fixes bug # 2238.
302         (eval): Apply patch # 1022: fix memory reference error on long
303         target-specific variable lines.
304         Patch provided by Steve Brown <Steve.Brown@macquarie.com>.
306         * function.c (check_numeric): Combine the is_numeric() function
307         into this function, since it's only called from one place.
308         Constify this function.  Have it print the incorrect string in the
309         error message.  Fixes bug #2407.
310         (strip_whitespace): Constify.
311         (func_if): Constify.
312         * expand.c (expand_argument): Constify.
314 2003-01-29  Paul D. Smith  <psmith@gnu.org>
316         Fix bug # 2169, also reported by other people on various systems.
318         * make.h: Some systems, such as Solaris and PTX, do not fully
319         implement POSIX-compliant SA_RESTART functionality; important
320         system calls like stat() and readdir() can still fail with EINTR
321         even if SA_RESTART has been set on the signal handler.  So,
322         introduce macros EINTRLOOP() and ENULLLOOP() which can loop on
323         EINTR for system calls which return -1 or 0 (NULL), respectively,
324         on error.
325         Also, remove the old atomic_stat()/atomic_readdir() and
326         HAVE_BROKEN_RESTART handling.
328         * configure.in: Remove setting of HAVE_BROKEN_RESTART.
330         * arscan.c (ar_member_touch): Use EINTRLOOP() to wrap fstat().
331         * remake.c (touch_file): Ditto.
333         * commands.c (delete_target): Use EINTRLOOP() to wrap stat().
334         * read.c (construct_include_path): Ditto.
335         * remake.c (name_mtime): Ditto.
336         * vpath.c (selective_vpath_search): Ditto.
337         * dir.c (find_directory): Ditto.
338         (local_stat): Ditto.
339         (find_directory): Use ENULLLOOP() to wrap opendir().
340         (dir_contents_file_exists_p): Use ENULLLOOP() to wrap readdir().
342         * misc.c: Remove HAVE_BROKEN_RESTART, atomic_stat(), and
343         atomic_readdir() handling.
345 2003-01-22  Paul D. Smith  <psmith@gnu.org>
347         * function.c (func_call): Fix Bug #1744.  If we're inside a
348         recursive invocation of $(call ...), mask any of the outer
349         invocation's arguments that aren't used by this one, so that this
350         invocation doesn't "inherit" them accidentally.
352 2002-12-05  Paul D. Smith  <psmith@gnu.org>
354         * function.c (subst_expand): Valery Khamenia reported a
355         pathological performance hit when doing substitutions on very
356         large values with lots of words: turns out we were invoking
357         strlen() a ridiculous number of times.  Instead of having each
358         call to sindex() call strlen() again, keep track of how much of
359         the text we've seen and pass the length to sindex().
361 2002-11-19  Paul D. Smith  <psmith@gnu.org>
363         * README.cvs, configure.in: Upgrade to require autoconf 2.56.
366 2002-11-16  Paul D. Smith  <psmith@gnu.org>
368         * NMakefile.template (OBJS): Add hash.c object file.
369         * SMakefile.template (srcs): Ditto.
370         * Makefile.ami (objs): Ditto.
371         * build_w32.bat: Ditto.
373         * Makefile.DOS.template: Remove extra dependencies.
375 2002-10-25  Paul D. Smith  <psmith@gnu.org>
377         * expand.c (install_variable_buffer): New function.  Install a new
378         variable_buffer context and return the previous one.
379         (restore_variable_buffer): New function.  Free the current
380         variable_buffer context and put a previously saved one back.
381         * variable.h: Prototypes for {install,restore}_variable_buffer.
382         * function.c (func_eval): Push a new variable_buffer context
383         before we eval, then restore the old one when we're done.
384         Fixes Bug #1517.
386         * read.c (install_conditionals): New function.  Install a new
387         conditional context and return the previous one.
388         (restore_conditionals): New function.  Free the current
389         conditional context and put a previously saved one back.
390         (eval): Use the {install,restore}_conditionals for "include"
391         handling.
392         (eval_buffer): Use {install,restore}_conditionals to preserve the
393         present conditional state before we evaluate the buffer.
394         Fixes Bug #1516.
396         * doc/make.texi (Quick Reference): Add references to $(eval ...)
397         and $(value ...).
398         (Recursion): Add a variable index entry for CURDIR.
400         * README.cvs: Update to appropriate versions.
401         * Makefile.am (nodist_loadavg_SOURCES): automake gurus point out I
402         don't need to copy loadavg.c: automake is smart enough to create
403         it for me.  Still have a bug in automake related to ansi2knr tho.
405 2002-10-14  Paul D. Smith  <psmith@gnu.org>
407         * remake.c (notice_finished_file): Only touch targets if they have
408         at least one command (as per POSIX).  Resolve Bug #1418.
410         * *.c: Convert to using ANSI C-style function definitions.
411         * Makefile.am: Enable the ansi2knr feature of automake.
412         * configure.in: ditto.
414 2002-10-13  Paul D. Smith  <psmith@gnu.org>
416         * commands.c (set_file_variables): Bug #1379: Don't use alloca()
417         for automatic variable values like $^, etc.  In the case of very
418         large lists of prerequisites this causes problems.  Instead reuse
419         a static buffer (resizeable) for each variable.
421         * read.c (eval): Fix Bug #1391: allow "export" keyword in
422         target-specific variable definitions.  Check for it and set an
423         "exported" flag.
424         (record_target_var): Set the export field to v_export if the
425         "exported" flag is set.
426         * doc/make.texi (Target-specific): Document the ability to use
427         "export".
429         * doc/make.texi: Change the name of the section on automatic
430         variables from "Automatic" to "Automatic Variables".  Added text
431         clarifying the scope of automatic variables.
433 2002-10-04  Paul D. Smith  <psmith@gnu.org>
435         * read.c (eval): Allow SysV $$@ variables to use {} braces as well
436         as () braces.
437         (record_files): Ditto.
439         * expand.c (variable_expand_string): In $(A:x=y) expansion limit
440         the search for the '=' to only within the enclosing parens.
442 2002-10-03  Paul D. Smith  <psmith@gnu.org>
444         Version 3.80 released.
446         * dir.c: Change hash functions to use K&R function definition style.
447         * function.c: Ditto.
448         * read.c: Ditto.
449         * variable.c: Ditto.
451         Update to automake 1.7.
453         * Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7.
454         (pdf): Remove this target as automake now provides one.
456         * configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS.
458 2002-09-30  Martin P.J. Zinser  <zinser@decus.de>
460         * makefile.com: Updates for GNU make 3.80.
461         * makefile.vms: Ditto.
463 2002-09-23  Paul D. Smith  <psmith@gnu.org>
465         * read.c (enum make_word_type): Remove w_comment.
466         (get_next_mword): Don't treat comment characters as special; where
467         this function is used we will never see a comment (it's stripped
468         before we get here) and treating comments specially means that
469         targets like "foo\#bar" aren't handled properly.
471 2002-09-18  Paul D. Smith  <psmith@gnu.org>
473         * doc/make.texi (Bugs): Update with some info on Savannah, etc.
475         * read.c (eval): Expansion of arguments to export/unexport was
476         ignoring all arguments after the first one.  Change the algorithm
477         to expand the whole line once, then parse the results.
479 2002-09-17  Paul D. Smith  <psmith@gnu.org>
481         Fix Bug #940 (plus another bug I found while looking at this):
483         * read.c (record_target_var): enter_file() will add a new entry if
484         it's a double-colon target: we don't want to do that in this
485         situation.  Invoke lookup_file() and only enter_file() if it does
486         not already exist.  If the file we get back is a double-colon then
487         add this variable to the "root" double-colon target.
489         * variable.c (initialize_file_variables): If this file is a
490         double-colon target but is not the "root" target, then initialize
491         the root and make the root's variable list the parent of our
492         variable list.
494 2002-09-13  Paul D. Smith  <psmith@gnu.org>
496         * doc/make.texi (MAKE Variable): Add some indexing for "+".
498         * hash.c (round_up_2): Get rid of a warning.
500 2002-09-12  Paul D. Smith  <psmith@gnu.org>
502         * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
503         so it doesn't complain about getloadavg.c.
505         * commands.c (set_file_variables): Make sure we always alloca() at
506         least 1 character for the value of $? (for '\0').
508 2002-09-11  Paul D. Smith  <psmith@gnu.org>
510         * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
511         macro to use RESULT instead of the incorrect _RESULT_.
513         * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
514         and atomic_readdir().  We need to #include dirent.h to get this to
515         work.
516         * misc.c (atomic_readdir): Fix typos.
518 2002-09-10  Paul D. Smith  <psmith@gnu.org>
520         * read.c (eval): Expand variable lists given to export and
521         unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
522         (conditional_line): Ditto for "ifdef".  Fixes bug #103.
524         * doc/make.texi (Variables/Recursion): Document this.
525         (Conditional Syntax): And here.
527 2002-09-09  Paul D. Smith  <psmith@gnu.org>
529         * configure.in: Check for memmove().
531 2002-09-07  Paul D. Smith  <psmith@gnu.org>
533         * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
534         Michael Sterrett <msterret@coat.com> reports that while it has
535         SA_RESTART, it does not work properly.
537         * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
538         that invokes stat() and loops to do it again if it returns EINTR.
539         (atomic_readdir): Ditto, with readdir().
541         * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
542         and readdir() to atomic_stat() and atomic_readdir().
544 2002-09-04  Paul D. Smith  <psmith@gnu.org>
546         * implicit.c (pattern_search): Daniel <barkalow@reputation.com>
547         reports that GNU make sometimes doesn't recognize that targets can
548         be made, when directories can be created as prerequisites.  He
549         reports that changing the order of predicates in the DEP->changed
550         flag test so that lookup_file() is always performed, solves this
551         problem.
553 2002-08-08  Paul D. Smith  <psmith@gnu.org>
555         * configure.in: Require a newer version of gettext.
557         * misc.c (perror_with_name): Translate the format string (for
558         right-to-left language support).
559         (pfatal_with_name): Ditto.
561         * main.c: Create a static array of strings to store the usage
562         text.  This is done to facilitate translations.
563         (struct command_switch): Remove argdesc and description fields.
564         (switches): Remove values for obsolete fields.
565         (print_usage): Print each element of the usage array.
567         * hash.c: Change function definitions to be K&R style.
569 2002-08-02  Paul D. Smith  <psmith@gnu.org>
571         * NEWS: Remove the mention of .TARGETS; we aren't going to publish
572         this one because it's too hard to get right.  We'll look at it for
573         a future release.
574         * main.c (main): Don't create the .TARGETS variable.
575         * variable.c (handle_special_var): Don't handle .TARGETS.
577 2002-08-01  Paul D. Smith  <psmith@gnu.org>
579         * main.c (switches): Add a new option, -B (--always-make).  If
580         specified, make will rebuild all targets that it encounters even
581         if they don't appear to be out of date.
582         (always_make_flag): New flag.
583         * make.h: Extern always_make_flag.
584         * remake.c (update_file_1): Check always_make_flag; if it's set we
585         will always rebuild any target we can, even if none of its
586         prerequisites are newer.
587         * NEWS: Mention it.
589         * doc/make.texi (Shell Function): Make it clear that make
590         variables marked as "export" are not passed to instances of the
591         shell function.
593         Add new introspection variable .VARIABLES and .TARGETS.
595         * variable.c (handle_special_var): New function.  If the variable
596         reference passed in is "special" (.VARIABLES or .TARGETS),
597         calculate the new value if necessary.  .VARIABLES is handled here:
598         walk through the hash of defined variables and construct a value
599         which is a list of the names.  .TARGETS is handled by
600         build_target_list().
601         (lookup_variable): Invoke handle_special_var().
602         * file.c (build_target_list): Walk through the hask of known files
603         and construct a list of the names of all the ones marked as
604         targets.
605         * main.c (main): Initialize them to empty (and as simple variables).
606         * doc/make.texi (Special Variables): Document them.
607         * NEWS: Mention them.
609         * variable.h (struct variable): Add a new flag "exportable" which
610         is true if the variable name is valid for export.
611         * variable.c (define_variable_in_set): Set "exportable" when a new
612         variable is defined.
613         (target_environment): Use the "exportable" flag instead of
614         re-checking the name here... an efficiency improvement.
616 2002-07-31  Paul D. Smith  <psmith@gnu.org>
618         * config.h-vms.template: Updates to build on VMS.  Thanks to
619         Brian_Benning@aksteel.com for helping verify the build.
620         * makefile.com: Build the new hash.c file.
621         * hash.h: Use strcpmi(), not stricmp(), in the
622         HAVE_CASE_INSENSITIVE_FS case.
624 2002-07-30  Paul D. Smith  <psmith@gnu.org>
626         * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
627         backslashes to the HAVE_CASE_INSENSITIVE_FS case.
628         Reported by <Brian_Benning@aksteel.com>.
630 2002-07-10  Paul D. Smith  <psmith@gnu.org>
632         * variable.c (pop_variable_scope): Remove variable made unused by
633         new hash infrastructure.
634         * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
635         comparisons as well as name comparisons.
636         * variable.h: Add a prototype for new hash_init_function_table().
637         * file.c (lookup_file): Remove variables made unused by new hash
638         infrastructure.
639         * dir.c (directory_contents_hash_2): Missing return of hash value.
640         (dir_contents_file_exists_p): Remove variables made unused by new
641         hash infrastructure.
644         Installed Greg McGary's integration of the hash functions from the
645         GNU id-utils package:
647 2002-07-10  Greg McGary  <greg@mcgary.org>
649         * scripts/functions/filter-out: Add literals to to the
650         pattern space in order to add complexity, and trigger
651         use of an internal hash table.  Fix documentation strings.
652         * scripts/targets/INTERMEDIATE: Reverse order of files
653         passed to expected `rm' command.
655 2002-07-10  Greg McGary  <greg@mcgary.org>
657         * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
658         * hash.c: New file, taken from id-utils.
659         * hash.h: New file, taken from id-utils.
661         * make.h (HASH, HASHI): Remove macros.
662         (find_char_unquote): Change arglist in decl.
663         (hash_init_directories): New function decl.
664         * variable.h (hash.h): New #include.
665         (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
666         * filedef.h (hash.h): New #include.
667         (struct file) [next]: Remove member.
668         (file_hash_enter): Remove function decl.
669         (init_hash_files): New function decl.
671         * ar.c (ar_name): Delay call to strlen until needed.
672         * main.c (initialize_global_hash_tables): New function.
673         (main): Call it.  Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
674         * misc.c (remove_comments): Pass char constants to find_char_unquote.
675         * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
677         * dir.c (hash.h): New #include.
678         (struct directory_contents) [next, files]: Remove members.
679         [ctime]: Add member for VMS.  [dirfiles]: Add hash-table member.
680         (directory_contents_hash_1, directory_contents_hash_2,
681         directory_contents_hash_cmp): New functions.
682         (directories_contents): Change type to `struct hash_table'.
683         (struct directory) [next]: Remove member.
684         (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
685         (directory): Change type to `struct hash_table'.
686         (struct dirfile) [next]: Remove member.
687         [length]: Add member.  [impossible]: widen type to fill alignment gap.
688         (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
689         (find_directory): Use new hash table package.
690         (dir_contents_file_exists_p): Likewise.
691         (file_impossible): Likewise.
692         (file_impossible_p): Likewise.
693         (print_dir_data_base): Likewise.
694         (open_dirstream): Likewise.
695         (read_dirstream): Likewise.
696         (hash_init_directories): New function.
698         * file.c (hash.h): New #include.
699         (file_hash_1, file_hash_2, file_hash_cmp): New functions.
700         (files): Change type to `struct hash_table'.
701         (lookup_file): Use new hash table package.
702         (enter_file): Likewise.
703         (remove_intermediates): Likewise.
704         (snap_deps): Likewise.
705         (print_file_data_base): Likewise.
707         * function.c
708         (function_table_entry_hash_1, function_table_entry_hash_2,
709         function_table_entry_hash_cmp): New functions.
710         (lookup_function): Remove `table' argument.
711         Use new hash table package.
712         (struct a_word) [chain, length]: New members.
713         (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
714         (struct a_pattern): New struct.
715         (func_filter_filterout): Pass through patterns noting boundaries
716         and '%', if present.  Note a_word length.  Use a hash table if
717         arglists are large enough to justify cost.
718         (function_table_init): Renamed from function_table.
719         (function_table): Declare as `struct hash_table'.
720         (FUNCTION_TABLE_ENTRIES): New constant.
721         (hash_init_function_table): New function.
723         * read.c (hash.h): New #include.
724         (read_makefile): Pass char constants to find_char_unquote.
725         (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
726         (uniquize_deps): Use hash table to efficiently identify duplicates.
727         (find_char_unquote): Accept two char-constant stop chars, rather
728         than a string constant, avoiding zillions of calls to strchr.
729         Tighten inner search loops to test only for desired delimiters.
731         * variable.c (variable_hash_1, variable_hash_2,
732         variable_hash_cmp): New functions.
733         (variable_table): Declare as `struct hash_table'.
734         (global_variable_set): Remove initialization.
735         (init_hash_global_variable_set): New function.
736         (define_variable_in_set): Use new hash table package.
737         (lookup_variable): Likewise.
738         (lookup_variable_in_set): Likewise.
739         (initialize_file_variables): Likewise.
740         (pop_variable_scope): Likewise.
741         (create_new_variable_set): Likewise.
742         (merge_variable_sets): Likewise.
743         (define_automatic_variables): Likewise.
744         (target_environment): Likewise.
745         (print_variable_set): Likewise.
747 2002-07-10  Paul D. Smith  <psmith@gnu.org>
749         Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
750         prerequisite list.  A real SysV make will expand the entire
751         prerequisites list _twice_: we don't do that as it's a big
752         backward-compatibility problem.  We only replace those specific
753         variables.
755         * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
756         references left in the list of prerequisites.  Check for .POSIX as
757         we record targets, so we can disable non-POSIX behavior while
758         reading makefiles as well as running them.
759         (eval): Check the prerequisite list to see if we have anything
760         that looks like a SysV prerequisite variable reference.
762 2002-07-09  Paul D. Smith  <psmith@gnu.org>
764         * doc/make.texi (Prerequisite Types): Add a new section describing
765         order-only prerequisites.
767         * read.c (uniquize_deps): If we have the same file as both a
768         normal and order-only prereq, get rid of the order-only prereq,
769         since the normal one supersedes it.
771 2002-07-08  Paul D. Smith  <psmith@gnu.org>
773         * AUTHORS: Added Greg McGary to the AUTHORS file.
774         * NEWS: Blurbed order-only prerequisites.
775         * file.c (print_file): Show order-only deps properly when printing
776         the database.
778         * maintMakefile: Add "update" targets for wget'ing the latest
779         versions of various external files.  Taken from Makefile.maint in
780         autoconf, etc.
782         * dosbuild.bat: Somehow we got _double_ ^M's.  Remove them.
783         Reported by Eli Zaretskii <eliz@is.elta.co.il>.
785 2002-07-07  Paul D. Smith  <psmith@gnu.org>
787         * po/*.po: Remove.  We'll use wget to retrieve them at release
788         time.
790         * variable.c (do_variable_definition) [W32]: On W32 using cmd
791         rather than a shell you get an exception.  Make sure we look up
792         the variable.  Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
794         * remake.c (notice_finished_file): Fix handling of -t flag.
795         Patch provided by Henning Makholm <henning@makholm.net>.
797         * implicit.c (pattern_search): Some systems apparently run short
798         of stack space, and using alloca() in this function caused an
799         overrun.  I modified it to use xmalloc() on the two variables
800         which seemed like they might get large.  Fixes Bug #476.
802         * main.c (print_version): Update copyright notice to conform with
803         GNU standards.
804         (print_usage): Update help output.
806         * function.c (func_eval): Create a new make function, $(eval
807         ...).  Expand the arguments, put them into a buffer, then invoke
808         eval_buffer() on the resulting string.
809         (func_quote): Create a new function, $(quote VARNAME).  Inserts
810         the value of the variable VARNAME without expanding it any
811         further.
813         * read.c (struct ebuffer): Change the linebuffer structure to an
814         "eval buffer", which can be either a file or a buffer.
815         (eval_makefile): Move the code in the old read_makefile() which
816         located a makefile into here: create a struct ebuffer with that
817         information.  Have it invoke the new function eval() with that
818         ebuffer.
819         (eval_buffer): Create a new function that creates a struct ebuffer
820         that holds a string buffer instead of a file.  Have it invoke
821         eval() with that ebuffer.
822         (eval): New function that contains the guts of the old
823         read_makefile() function: this function parses makefiles.  Obtains
824         data to parse from the provided ebuffer.  Some modifications to
825         make the flow of the function cleaner and clearer.  Still could
826         use some work here...
827         (do_define): Takes a struct ebuffer instead of a FILE*.  Read the
828         contents of the define/endef variable from the ebuffer.
829         (readstring): Read the next line from a string-style ebuffer.
830         (readline): Read the next line from an ebuffer.  If it's a string
831         ebuffer, invoke readstring().  If it's a FILE* ebuffer, read it
832         from the file.
834         * dep.h (eval_buffer): Prototype eval_buffer();
836         * variable.c (do_variable_definition): Make sure that all
837         non-target-specific variables are registered in the global set.
838         If we're invoked from an $(eval ...) we might be inside a $(call
839         ...) or other function which has pushed a variable scope; we still
840         want to define our variables from evaluated makefile code in the
841         global scope.
843 2002-07-03  Greg McGary  <greg@mcgary.org>
845         * dep.h (struct dep) [ignore_mtime]: New member.
846         [changed]: convert to a bitfield.
847         * implicit.c (pattern_search): Zero ignore_mtime.
848         * main.c (main, handle_non_switch_argument): Likewise.
849         * rule.c (convert_suffix_rule): Likewise.
850         * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
851         (read_makefile): Parse '|' in prerequisite list.
852         (uniquize_deps): Consider ignore_mtime when comparing deps.
853         * remake.c (update_file_1, check_dep): Don't force remake for
854         dependencies that have d->ignore_mtime.
855         * commands.c (FILE_LIST_SEPARATOR): New constant.
856         (set_file_variables): Don't include a
857         prerequisite in $+, $^ or $? if d->ignore_mtime.
858         Define $|.
860 2002-06-18  Paul D. Smith  <psmith@gnu.org>
862         * make.texinfo: Updates for next revision.  New date/rev/etc.
863         Recreate all Info menus.  Change license on the manual to the GNU
864         Free Documentation License.  A number of typos.
865         (Variables Simplify): Don't use "-" before it's defined.
866         (Automatic Prerequisites): Rewrite the target example to work
867         properly if the compile fails.  Remove incorrect comments about
868         how "set -e" behaves.
869         (Text Functions): Move the "word", "wordlist", "words", and
870         "firstword" functions here, from "File Name Functions".
871         * make-stds.texi: Update from latest GNU version.
872         * fdl.texi: (created) Import the latest GNU version.
874 2002-06-06  Paul D. Smith  <psmith@gnu.org>
876         * variable.c (do_variable_definition): New function: extract the
877         part of try_variable_definition() that actually sets the value
878         into a separate function.
879         (try_variable_definition): Call do_variable_definition() after
880         parsing the variable definition string.
881         (define_variable_in_set): Make the name argument const.
883         * variable.h (enum variable_flavor): Make public.
884         (do_variable_definition): Create prototype.
886         * read.c (read_all_makefiles): Create a new built-in variable,
887         MAKEFILE_LIST.
888         (read_makefile): Add each makefile read in to this variable value.
890 2002-05-18  Eli Zaretskii  <eliz@is.elta.co.il>
892         * Makefile.DOS.template: Tweak according to changes in the
893         distribution.  Add back the dependencies of *.o files.
895         * configh.dos.template: Synchronize with config.h.in.
897 2002-05-09  Paul D. Smith  <psmith@gnu.org>
899         * file.c (file_timestamp_now): Use K&R function declaration.
901         * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
902         getloadavg.c.  Autoconf thinks QNX is SVR4-like, but it isn't, so
903         #undef it.  Remove predefined setup of NLIST_STRUCT.  Decide
904         whether to include nlist.h based on HAVE_NLIST_H.  Change obsolete
905         NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
906         * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
907         nlist.n_name is a pointer rather than an array.
909         * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
910         version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
911         * configure.in: Use it instead of the old version.
913         * main.c (main): Prefer setvbuf() to setlinebuf().
915 2002-05-08  Paul D. Smith  <psmith@gnu.org>
917         * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
918         (loadavg_LDADD): Ditto.
920 2002-04-29  Paul D. Smith  <psmith@gnu.org>
922         * expand.c (recursively_expand_for_file): Rename
923         recursively_expand() to recursively_expand_for_file() and provide
924         an extra argument, struct file.  If the argument is provided, set
925         the variable scope to that of the file before expanding.
926         * variable.h (recursively_expand): Make this a macro that invokes
927         recursively_expand_for_file() with a NULL file pointer.
928         * variable.c (target_environment): Call the renamed function and
929         provide the current file context.
930         Fixes Debian bug #144306.
932 2002-04-28  Paul D. Smith  <psmith@gnu.org>
934         Allow $(call ...) user-defined variables to be self-referencing
935         without throwing an error.  Allows implementation of transitive
936         closures, among other possibly useful things.
937         Requested by: Philip Guenther <guenther@sendmail.com>
939         * variable.h (struct variable): Add a new field: exp_count, and
940         new macros to hold its size and maximum value.
941         (warn_undefined): Make this a macro.
942         * variable.c (define_variable_in_set): Initialize it.
943         * expand.c (recursively_expand): If we detect recursive expansion
944         of a variable, check the exp_count field.  If it's greater than 0
945         allow the recursion and decrement the count.
946         (warn_undefined): Remove this (now a macro in variable.h).
947         * function.c (func_call): Before we expand the user-defined
948         function, modify its exp_count field to contain the maximum
949         number of recursive calls we'll allow.  After the call, reset it
950         to 0.
952 2002-04-21  Paul D. Smith  <psmith@gnu.org>
954         Modified to use latest autoconf (2.53), automake (1.6.1), and
955         gettext (0.11.1).  We're using gettext's new "external" support,
956         to avoid including libintl source with GNU make.
958         * README.cvs: New file.  Explain how to build GNU make from CVS.
960         * configure.in: Modify checking for the system glob library.
961         Use AC_EGREP_CPP instead of AC_TRY_CPP.  Remove the setting of
962         GLOBDIR (we will always put "glob" in SUBDIRS, so automake
963         etc. will manage it correctly).  Set an automake conditional
964         USE_LOCAL_GLOB to decide whether to compile the glob library.
966         * getloadavg.c (main): Include make.h in the "TEST" program to
967         avoid warnings.
969         * Makefile.am: Remove special rules for loadavg.  Replace them
970         with Automake capabilities for building extra programs.
972         * signame.c: This file does nothing if the system provide
973         strsignal().  If not, it implements strsignal().  If the system
974         doesn't define sys_siglist, then we make our own; otherwise we use
975         the system version.
976         * signame.h: Removed.
978         * main.c (main): No need to invoke signame_init().  Update copyright.
980         * ABOUT-NLS: Removed.
981         * gettext.c: Removed.
982         * gettext.h: Get a simplified copy from the gettext package.
983         * po/*: Created.
984         * i18n/*.po: Moved to po/.
985         * i18n/: Removed.
987         * config/*: Created.  Contains package configuration helper files.
988         * config.guess, config.sub: Moved to config directory.
990         * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
991         Rework to use new-style autoconf features.  Use the "external"
992         mode for gettext.  Make the build.sh config file conditional on
993         whether build.sh.in exists, to avoid autoconf errors.
994         * acinclude.m4: Removed almost all macros as being obsolete.
995         Rewrote remaining macros to use AC_DEFINE.
996         * acconfig.h: Removed.
998         * Makefile.am (EXTRA_DIST): Add config/config.rpath.  Use a
999         conditional to handle customs support.  Remove special handling
1000         for i18n features.
1002 2002-04-20  Paul D. Smith  <psmith@gnu.org>
1004         * function.c (func_call): Don't mark the argument variables $1,
1005         etc. as recursive.  They've already been fully expanded so
1006         there's no need to do it again, and doing so strips escaped $'s.
1007         Reported by Sebastian Glita <glseba@yahoo.com>.
1009         * remake.c (notice_finished_file): Walk through double-colon
1010         entries via the prev field, not the next field!
1011         Reported by Greg McGary <greg@mcgary.org>.
1013         * main.c (main): If the user specifies -q and asks for a specific
1014         target which is a makefile, we got an assert.  In that case it
1015         turns out we should continue normally instead.
1017         * i18n/de.po, i18n/fr.po: Installed an updated translation.
1019         * i18n/he.po: Installed a new translation.
1021 2002-01-07  Paul D. Smith  <psmith@gnu.org>
1023         * i18n/es.po, i18n/ru.po: Installed an updated translation.
1025 2001-12-04  Paul D. Smith  <psmith@gnu.org>
1027         * i18n/ja.po: Installed an updated translation.
1029 2001-09-04  Paul D. Smith  <psmith@gnu.org>
1031         * i18n/da.po: Installed an updated translation.
1033 2001-08-03  Paul D. Smith  <psmith@gnu.org>
1035         * i18n/fr.po: Installed an updated translation.
1036         Resolves Debian bug #106720.
1038 2001-06-13  Paul D. Smith  <psmith@gnu.org>
1040         * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
1041         translation.
1043 2001-06-11  Paul D. Smith  <psmith@gnu.org>
1045         * i18n/ko.po: Installed a new translation.
1047 2001-05-06  Paul D. Smith  <psmith@gnu.org>
1049         Modify the EINTR handling.
1051         * job.c (new_job): Reorganize the jobserver algorithm.  Reorder
1052         the way in which we manage the file descriptor/signal handler race
1053         trap to be more efficient.
1055 2001-05-06  Paul Eggert  <eggert@twinsun.com>
1057         Restart almost all system calls that are interrupted, instead
1058         of worrying about EINTR.  The lone exception is the read() for
1059         job tokens.
1061         * configure.in (HAVE_SA_RESTART): New macro.
1062         (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
1063         * main.c (main): Use SA_RESTART instead of the old,
1064         nonstandard SA_INTERRUPT.
1066         * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
1067         * main.c (bsd_signal): New function or macro,
1068         if the implementation doesn't supply it.
1069         (The bsd_signal function will be in POSIX 1003.1-200x.)
1070         (HANDLESIG): Remove.
1071         (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
1073         * make.h (EINTR_SET): Remove.
1074         (SA_RESTART): New macro.
1076         * arscan.c (ar_member_touch): Don't worry about EINTR.
1077         * function.c (func_shell): Likewise.
1078         * job.c (reap_children, free_child, new_job): Likewise.
1079         * main.c (main): Likewise.
1080         * remake.c (touch_file, name_mtime): Likewise.
1082         * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
1083         if fstat failed with errno!=EINTR, the error was ignored.
1085         * job.c (set_child_handler_action_flags): New function.
1086         (new_job): Use it to temporarily clear the SIGCHLD action flags
1087         while reading the token.
1089 2001-05-02  Paul D. Smith  <psmith@gnu.org>
1091         * job.c (start_job_command): Don't add define/endef per-line flags
1092         to the top-level flags setting.
1094 2001-04-03  Paul D. Smith  <psmith@gnu.org>
1096         * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
1097         bit on error, so check for odd return values, not non-0 return
1098         values.
1099         (VMS_get_member_info): Calculate the timezone differences correctly.
1100         Reported by John Fowler <jfowler@nyx.net>.
1103 2001-03-14  Paul D. Smith  <psmith@gnu.org>
1105         * variable.c (lookup_variable) [VMS]: Null-terminate the variable
1106         value before invoking define_variable().
1107         Reported by John Fowler <jfowler@nyx.net>.
1109 2001-02-07  Paul D. Smith  <psmith@gnu.org>
1111         * read.c (record_target_var): If we reset the variable due to a
1112         command-line variable setting overriding it, turn off the "append"
1113         flag.
1115 2001-01-17  Paul D. Smith  <psmith@gnu.org>
1117         * variable.c (lookup_variable) [VMS]: When getting values from the
1118         environment, allocate enough space for the _value_ plus escapes,
1119         not enough space for the name plus escapes :-/.
1120         Reported by John Fowler <jfowler@nyx.net>.
1122         * remake.c (f_mtime): Removed the "***" prefix from the mod time
1123         warnings that make generates, so it doesn't look like an error.
1124         Reported by Karl Berry <karl@gnu.org>.
1127         Fix for PR/2020:  Rework appended target-specific variables.  I'm
1128         fairly confident this algorithm is finally correct.
1130         * expand.c (allocated_variable_append): Rewrite.  Instead of
1131         expanding each appended variable then adding all the expanded
1132         strings together, we append all the unexpanded values going up
1133         through the variable set contexts, then expand the final result.
1134         This behaves just like non-target-specific appended variable
1135         values, while the old way didn't in various corner cases.
1136         (variable_append): New function: recursively append the unexpanded
1137         value of a variable, walking from the outermost variable scope to
1138         the innermost.
1139         * variable.c (lookup_variable): Remove the code that looked up the
1140         variable set list if the found variable was "append".  We don't
1141         need this anymore.
1142         (lookup_variable_in_set): Make this non-static so we can use it
1143         elsewhere.
1144         (try_variable_definition): Use lookup_variable_in_set() rather
1145         than faking out current_variable_set_list by hand (cleanup).
1146         * variable.h: Add a prototype for the now non-static
1147         lookup_variable_in_set().
1149 2000-11-17  Paul D. Smith  <psmith@gnu.org>
1151         * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
1152         WINDOWS32 port to assume timestamps can be up to 3 seconds away
1153         before throwing a fit.
1155 2000-11-17  Paul D. Smith  <psmith@gnu.org>
1157         * read.c (readline): CRLF calculations had a hole, if you hit the
1158         buffer grow scenario just right.  Reworked the algorithm to avoid
1159         the need for len or lastlen at all.  Problem description with
1160         sample code chages provided by Chris Faylor <cgf@redhat.com>.
1162 2000-10-24  Paul D. Smith  <psmith@gnu.org>
1164         * gettext.c (SWAP): Declare this with the prototype, otherwise
1165         some systems don't work (non-32-bit?  Reported for Cray T3E).
1166         Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
1168 2000-10-05  Paul D. Smith  <psmith@gnu.org>
1170         * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
1171         AM_LC_MESSAGES; it doesn't seem to do anything anyway??
1173         * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
1175 2000-09-22  Paul D. Smith  <psmith@gnu.org>
1177         * gettext.c: Don't #define _GETTEXT_H here; we only include some
1178         parts of the real gettext.h here, and we expect to really include
1179         the real gettext.h later.  If we keep this #define, it's ignored.
1181 2000-09-21  Paul D. Smith  <psmith@gnu.org>
1183         * main.c (log_working_directory): Rework the text to use complete
1184         sentences, to make life simpler for the translators.
1186 2000-08-29  Paul D. Smith  <psmith@gnu.org>
1188         * file.c (remove_intermediates): Print a debug message before we
1189         remove intermediate files, so the user (if she uses -d) knows
1190         what's going on.
1192 2000-08-21  Paul D. Smith  <psmith@gnu.org>
1194         * variable.c (try_variable_definition): Change how we handle
1195         target-specific append variable defns: instead of just setting the
1196         value, expand it as an append _but_ only within the current
1197         target's context.  Otherwise we lose all but the last value if the
1198         variable is appended more than once within the current target
1199         context.  Fixes PR/1831.
1201 2000-08-16  Paul D. Smith  <psmith@gnu.org>
1203         * function.c (func_shell): Nul-terminate the buffer before
1204         printing an exec error message (just in case it's not!).
1205         Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
1207 2000-07-25  Paul D. Smith  <psmith@gnu.org>
1209         * job.c (construct_command_argv_internal): Add "~" to the list of
1210         sh_chars[] which disallow optimizing out the shell call.
1212 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1214         * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
1215         supersedes --disable-nsec-timestamps.
1216         * make.texinfo: Consistently use "time stamp" instead of "timestamp".
1217         * README: Remove --disable-nsec-timestamps.
1219         * filedef.h (struct file.low_resolution_time): New member.
1220         * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
1221         * remake.c (update_file_1):
1222         Avoid spurious rebuilds due to low resolution time stamps,
1223         generalizing the earlier code that applied only to archive members.
1224         (f_mtime): Archive members always have low resolution time stamps.
1226         * configure.in: Remove --disable-nsec-timestamps, as this has
1227         been superseded by .LOW_RESOLUTION_TIME.
1229 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1231         * configure.in (enable_nsec_timestamps): Renamed from
1232         make_cv_nsec_timestamps, since enable/disable options
1233         shouldn't be cached.
1235 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
1236        and  Paul Eggert  <eggert@twinsun.com>
1238         * file.c (file_timestamp_now):
1239         Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
1240         so that clock_gettime is not linked unless needed.
1242         * filedef.h (FILE_TIMESTAMP_HI_RES):
1243         Remove definition; "configure" now does this.
1245         * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
1246         to before high resolution file timestamp check,
1247         since that check now uses uintmax_t.
1248         (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
1249         high resolution file timestamps.
1250         (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
1251         so that we don't link in clock_gettime unnecessarily.
1253 2000-07-17  Paul D. Smith  <psmith@gnu.org>
1255         * i18n/ja.po: New version of the translation file.
1257 2000-07-07  Paul D. Smith  <psmith@gnu.org>
1259         * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
1260         the offset calculation.
1261         (name_mtime): Replace EINTR test with EINTR_SET macro.
1263 2000-07-07  Paul Eggert  <eggert@twinsun.com>
1265         Fix for PR/1811:
1267         * remake.c (update_file_1):
1268         Avoid spurious rebuilds of archive members due to their
1269         timestamp resolution being only one second.
1270         (f_mtime): Avoid spurious warnings of timestamps in the future due to
1271         the clock's resolution being lower than file timestamps'.
1272         When warning about future timestamps, report only the discrepancy,
1273         not the absolute value of the timestamp and the current time.
1275         * file.c (file_timestamp_now): New arg RESOLUTION.
1276         * filedef.h (file_timestamp_now): Likewise.
1277         (FILE_TIMESTAMP_NS): Now returns int.  All uses changed.
1279 2000-07-05  Paul D. Smith  <psmith@gnu.org>
1281         * variable.c (lookup_variable) [VMS]: Remove vestigial references
1282         to listp.  Fixes PR/1793.
1284 2000-06-26  Paul Eggert  <eggert@twinsun.com>
1286         * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
1288         * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
1290         * remake.c (f_mtime): Remove unused var memtime.
1292 2000-06-25  Martin Buchholz  <martin@xemacs.org>
1294         * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
1295         Ran spell-check on make.texinfo.
1297 2000-06-23  Paul D. Smith  <psmith@gnu.org>
1299         * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
1300         EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
1301         * make.h: Define these macros.
1303         * Version 3.79.1 released.
1305         * configure.in: Add a new option, --disable-nsec-timestamps, to
1306         avoid using sub-second timestamps on systems that support it.  It
1307         can lead to problems, e.g. if your makefile relies on "cp -p".
1308         * README.template: Document the issue with "cp -p".
1310         * config.guess, config.sub: Updated.
1314 See ChangeLog.2, available in the CVS repository at:
1316         http://savannah.gnu.org/cvs/?group=make
1318 for earlier changes.