1 2002-09-04 Paul D. Smith <psmith@gnu.org>
3 * implicit.c (pattern_search): Daniel <barkalow@reputation.com>
4 reports that GNU make sometimes doesn't recognize that targets can
5 be made, when directories can be created as prerequisites. He
6 reports changing the order of predicates in the DEP->changed flag
7 test so that lookup_file() is always performed, solves this
10 2002-08-08 Paul D. Smith <psmith@gnu.org>
12 * configure.in: Require a newer version of gettext.
14 * misc.c (perror_with_name): Translate the format string (for
15 right-to-left language support).
16 (pfatal_with_name): Ditto.
18 * main.c: Create a static array of strings to store the usage
19 text. This is done to facilitate translations.
20 (struct command_switch): Remove argdesc and description fields.
21 (switches): Remove values for obsolete fields.
22 (print_usage): Print each element of the usage array.
24 * hash.c: Change function definitions to be K&R style.
26 2002-08-02 Paul D. Smith <psmith@gnu.org>
28 * NEWS: Remove the mention of .TARGETS; we aren't going to publish
29 this one because it's too hard to get right. We'll look at it for
31 * main.c (main): Don't create the .TARGETS variable.
32 * variable.c (handle_special_var): Don't handle .TARGETS.
34 2002-08-01 Paul D. Smith <psmith@gnu.org>
36 * main.c (switches): Add a new option, -B (--always-make). If
37 specified, make will rebuild all targets that it encounters even
38 if they don't appear to be out of date.
39 (always_make_flag): New flag.
40 * make.h: Extern always_make_flag.
41 * remake.c (update_file_1): Check always_make_flag; if it's set we
42 will always rebuild any target we can, even if none of its
43 prerequisites are newer.
46 * doc/make.texi (Shell Function): Make it clear that make
47 variables marked as "export" are not passed to instances of the
50 Add new introspection variable .VARIABLES and .TARGETS.
52 * variable.c (handle_special_var): New function. If the variable
53 reference passed in is "special" (.VARIABLES or .TARGETS),
54 calculate the new value if necessary. .VARIABLES is handled here:
55 walk through the hash of defined variables and construct a value
56 which is a list of the names. .TARGETS is handled by
58 (lookup_variable): Invoke handle_special_var().
59 * file.c (build_target_list): Walk through the hask of known files
60 and construct a list of the names of all the ones marked as
62 * main.c (main): Initialize them to empty (and as simple variables).
63 * doc/make.texi (Special Variables): Document them.
66 * variable.h (struct variable): Add a new flag "exportable" which
67 is true if the variable name is valid for export.
68 * variable.c (define_variable_in_set): Set "exportable" when a new
70 (target_environment): Use the "exportable" flag instead of
71 re-checking the name here... an efficiency improvement.
73 2002-07-31 Paul D. Smith <psmith@gnu.org>
75 * config.h-vms.template: Updates to build on VMS. Thanks to
76 Brian_Benning@aksteel.com for helping verify the build.
77 * makefile.com: Build the new hash.c file.
78 * hash.h: Use strcpmi(), not stricmp(), in the
79 HAVE_CASE_INSENSITIVE_FS case.
81 2002-07-30 Paul D. Smith <psmith@gnu.org>
83 * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
84 backslashes to the HAVE_CASE_INSENSITIVE_FS case.
85 Reported by <Brian_Benning@aksteel.com>.
87 2002-07-10 Paul D. Smith <psmith@gnu.org>
89 * variable.c (pop_variable_scope): Remove variable made unused by
90 new hash infrastructure.
91 * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
92 comparisons as well as name comparisons.
93 * variable.h: Add a prototype for new hash_init_function_table().
94 * file.c (lookup_file): Remove variables made unused by new hash
96 * dir.c (directory_contents_hash_2): Missing return of hash value.
97 (dir_contents_file_exists_p): Remove variables made unused by new
101 Installed Greg McGary's integration of the hash functions from the
102 GNU id-utils package:
104 2002-07-10 Greg McGary <greg@mcgary.org>
106 * scripts/functions/filter-out: Add literals to to the
107 pattern space in order to add complexity, and trigger
108 use of an internal hash table. Fix documentation strings.
109 * scripts/targets/INTERMEDIATE: Reverse order of files
110 passed to expected `rm' command.
112 2002-07-10 Greg McGary <greg@mcgary.org>
114 * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
115 * hash.c: New file, taken from id-utils.
116 * hash.h: New file, taken from id-utils.
118 * make.h (HASH, HASHI): Remove macros.
119 (find_char_unquote): Change arglist in decl.
120 (hash_init_directories): New function decl.
121 * variable.h (hash.h): New #include.
122 (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
123 * filedef.h (hash.h): New #include.
124 (struct file) [next]: Remove member.
125 (file_hash_enter): Remove function decl.
126 (init_hash_files): New function decl.
128 * ar.c (ar_name): Delay call to strlen until needed.
129 * main.c (initialize_global_hash_tables): New function.
130 (main): Call it. Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
131 * misc.c (remove_comments): Pass char constants to find_char_unquote.
132 * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
134 * dir.c (hash.h): New #include.
135 (struct directory_contents) [next, files]: Remove members.
136 [ctime]: Add member for VMS. [dirfiles]: Add hash-table member.
137 (directory_contents_hash_1, directory_contents_hash_2,
138 directory_contents_hash_cmp): New functions.
139 (directories_contents): Change type to `struct hash_table'.
140 (struct directory) [next]: Remove member.
141 (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
142 (directory): Change type to `struct hash_table'.
143 (struct dirfile) [next]: Remove member.
144 [length]: Add member. [impossible]: widen type to fill alignment gap.
145 (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
146 (find_directory): Use new hash table package.
147 (dir_contents_file_exists_p): Likewise.
148 (file_impossible): Likewise.
149 (file_impossible_p): Likewise.
150 (print_dir_data_base): Likewise.
151 (open_dirstream): Likewise.
152 (read_dirstream): Likewise.
153 (hash_init_directories): New function.
155 * file.c (hash.h): New #include.
156 (file_hash_1, file_hash_2, file_hash_cmp): New functions.
157 (files): Change type to `struct hash_table'.
158 (lookup_file): Use new hash table package.
159 (enter_file): Likewise.
160 (remove_intermediates): Likewise.
161 (snap_deps): Likewise.
162 (print_file_data_base): Likewise.
165 (function_table_entry_hash_1, function_table_entry_hash_2,
166 function_table_entry_hash_cmp): New functions.
167 (lookup_function): Remove `table' argument.
168 Use new hash table package.
169 (struct a_word) [chain, length]: New members.
170 (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
171 (struct a_pattern): New struct.
172 (func_filter_filterout): Pass through patterns noting boundaries
173 and '%', if present. Note a_word length. Use a hash table if
174 arglists are large enough to justify cost.
175 (function_table_init): Renamed from function_table.
176 (function_table): Declare as `struct hash_table'.
177 (FUNCTION_TABLE_ENTRIES): New constant.
178 (hash_init_function_table): New function.
180 * read.c (hash.h): New #include.
181 (read_makefile): Pass char constants to find_char_unquote.
182 (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
183 (uniquize_deps): Use hash table to efficiently identify duplicates.
184 (find_char_unquote): Accept two char-constant stop chars, rather
185 than a string constant, avoiding zillions of calls to strchr.
186 Tighten inner search loops to test only for desired delimiters.
188 * variable.c (variable_hash_1, variable_hash_2,
189 variable_hash_cmp): New functions.
190 (variable_table): Declare as `struct hash_table'.
191 (global_variable_set): Remove initialization.
192 (init_hash_global_variable_set): New function.
193 (define_variable_in_set): Use new hash table package.
194 (lookup_variable): Likewise.
195 (lookup_variable_in_set): Likewise.
196 (initialize_file_variables): Likewise.
197 (pop_variable_scope): Likewise.
198 (create_new_variable_set): Likewise.
199 (merge_variable_sets): Likewise.
200 (define_automatic_variables): Likewise.
201 (target_environment): Likewise.
202 (print_variable_set): Likewise.
204 2002-07-10 Paul D. Smith <psmith@gnu.org>
206 Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
207 prerequisite list. A real SysV make will expand the entire
208 prerequisites list _twice_: we don't do that as it's a big
209 backward-compatibility problem. We only replace those specific
212 * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
213 references left in the list of prerequisites. Check for .POSIX as
214 we record targets, so we can disable non-POSIX behavior while
215 reading makefiles as well as running them.
216 (eval): Check the prerequisite list to see if we have anything
217 that looks like a SysV prerequisite variable reference.
219 2002-07-09 Paul D. Smith <psmith@gnu.org>
221 * doc/make.texi (Prerequisite Types): Add a new section describing
222 order-only prerequisites.
224 * read.c (uniquize_deps): If we have the same file as both a
225 normal and order-only prereq, get rid of the order-only prereq,
226 since the normal one supersedes it.
228 2002-07-08 Paul D. Smith <psmith@gnu.org>
230 * AUTHORS: Added Greg McGary to the AUTHORS file.
231 * NEWS: Blurbed order-only prerequisites.
232 * file.c (print_file): Show order-only deps properly when printing
235 * maintMakefile: Add "update" targets for wget'ing the latest
236 versions of various external files. Taken from Makefile.maint in
239 * dosbuild.bat: Somehow we got _double_ ^M's. Remove them.
240 Reported by Eli Zaretskii <eliz@is.elta.co.il>.
242 2002-07-07 Paul D. Smith <psmith@gnu.org>
244 * po/*.po: Remove. We'll use wget to retrieve them at release
247 * variable.c (do_variable_definition) [W32]: On W32 using cmd
248 rather than a shell you get an exception. Make sure we look up
249 the variable. Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
251 * remake.c (notice_finished_file): Fix handling of -t flag.
252 Patch provided by Henning Makholm <henning@makholm.net>.
254 * implicit.c (pattern_search): Some systems apparently run short
255 of stack space, and using alloca() in this function caused an
256 overrun. I modified it to use xmalloc() on the two variables
257 which seemed like they might get large. Fixes Bug #476.
259 * main.c (print_version): Update copyright notice to conform with
261 (print_usage): Update help output.
263 * function.c (func_eval): Create a new make function, $(eval
264 ...). Expand the arguments, put them into a buffer, then invoke
265 eval_buffer() on the resulting string.
266 (func_quote): Create a new function, $(quote VARNAME). Inserts
267 the value of the variable VARNAME without expanding it any
270 * read.c (struct ebuffer): Change the linebuffer structure to an
271 "eval buffer", which can be either a file or a buffer.
272 (eval_makefile): Move the code in the old read_makefile() which
273 located a makefile into here: create a struct ebuffer with that
274 information. Have it invoke the new function eval() with that
276 (eval_buffer): Create a new function that creates a struct ebuffer
277 that holds a string buffer instead of a file. Have it invoke
278 eval() with that ebuffer.
279 (eval): New function that contains the guts of the old
280 read_makefile() function: this function parses makefiles. Obtains
281 data to parse from the provided ebuffer. Some modifications to
282 make the flow of the function cleaner and clearer. Still could
283 use some work here...
284 (do_define): Takes a struct ebuffer instead of a FILE*. Read the
285 contents of the define/endef variable from the ebuffer.
286 (readstring): Read the next line from a string-style ebuffer.
287 (readline): Read the next line from an ebuffer. If it's a string
288 ebuffer, invoke readstring(). If it's a FILE* ebuffer, read it
291 * dep.h (eval_buffer): Prototype eval_buffer();
293 * variable.c (do_variable_definition): Make sure that all
294 non-target-specific variables are registered in the global set.
295 If we're invoked from an $(eval ...) we might be inside a $(call
296 ...) or other function which has pushed a variable scope; we still
297 want to define our variables from evaluated makefile code in the
300 2002-07-03 Greg McGary <greg@mcgary.org>
302 * dep.h (struct dep) [ignore_mtime]: New member.
303 [changed]: convert to a bitfield.
304 * implicit.c (pattern_search): Zero ignore_mtime.
305 * main.c (main, handle_non_switch_argument): Likewise.
306 * rule.c (convert_suffix_rule): Likewise.
307 * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
308 (read_makefile): Parse '|' in prerequisite list.
309 (uniquize_deps): Consider ignore_mtime when comparing deps.
310 * remake.c (update_file_1, check_dep): Don't force remake for
311 dependencies that have d->ignore_mtime.
312 * commands.c (FILE_LIST_SEPARATOR): New constant.
313 (set_file_variables): Don't include a
314 prerequisite in $+, $^ or $? if d->ignore_mtime.
317 2002-06-18 Paul D. Smith <psmith@gnu.org>
319 * make.texinfo: Updates for next revision. New date/rev/etc.
320 Recreate all Info menus. Change license on the manual to the GNU
321 Free Documentation License. A number of typos.
322 (Variables Simplify): Don't use "-" before it's defined.
323 (Automatic Prerequisites): Rewrite the target example to work
324 properly if the compile fails. Remove incorrect comments about
325 how "set -e" behaves.
326 (Text Functions): Move the "word", "wordlist", "words", and
327 "firstword" functions here, from "File Name Functions".
328 * make-stds.texi: Update from latest GNU version.
329 * fdl.texi: (created) Import the latest GNU version.
331 2002-06-06 Paul D. Smith <psmith@gnu.org>
333 * variable.c (do_variable_definition): New function: extract the
334 part of try_variable_definition() that actually sets the value
335 into a separate function.
336 (try_variable_definition): Call do_variable_definition() after
337 parsing the variable definition string.
338 (define_variable_in_set): Make the name argument const.
340 * variable.h (enum variable_flavor): Make public.
341 (do_variable_definition): Create prototype.
343 * read.c (read_all_makefiles): Create a new built-in variable,
345 (read_makefile): Add each makefile read in to this variable value.
347 2002-05-18 Eli Zaretskii <eliz@is.elta.co.il>
349 * Makefile.DOS.template: Tweak according to changes in the
350 distribution. Add back the dependencies of *.o files.
352 * configh.dos.template: Synchronize with config.h.in.
354 2002-05-09 Paul D. Smith <psmith@gnu.org>
356 * file.c (file_timestamp_now): Use K&R function declaration.
358 * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
359 getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so
360 #undef it. Remove predefined setup of NLIST_STRUCT. Decide
361 whether to include nlist.h based on HAVE_NLIST_H. Change obsolete
362 NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
363 * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
364 nlist.n_name is a pointer rather than an array.
366 * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
367 version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
368 * configure.in: Use it instead of the old version.
370 * main.c (main): Prefer setvbuf() to setlinebuf().
372 2002-05-08 Paul D. Smith <psmith@gnu.org>
374 * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
375 (loadavg_LDADD): Ditto.
377 2002-04-29 Paul D. Smith <psmith@gnu.org>
379 * expand.c (recursively_expand_for_file): Rename
380 recursively_expand() to recursively_expand_for_file() and provide
381 an extra argument, struct file. If the argument is provided, set
382 the variable scope to that of the file before expanding.
383 * variable.h (recursively_expand): Make this a macro that invokes
384 recursively_expand_for_file() with a NULL file pointer.
385 * variable.c (target_environment): Call the renamed function and
386 provide the current file context.
387 Fixes Debian bug #144306.
389 2002-04-28 Paul D. Smith <psmith@gnu.org>
391 Allow $(call ...) user-defined variables to be self-referencing
392 without throwing an error. Allows implementation of transitive
393 closures, among other possibly useful things.
394 Requested by: Philip Guenther <guenther@sendmail.com>
396 * variable.h (struct variable): Add a new field: exp_count, and
397 new macros to hold its size and maximum value.
398 (warn_undefined): Make this a macro.
399 * variable.c (define_variable_in_set): Initialize it.
400 * expand.c (recursively_expand): If we detect recursive expansion
401 of a variable, check the exp_count field. If it's greater than 0
402 allow the recursion and decrement the count.
403 (warn_undefined): Remove this (now a macro in variable.h).
404 * function.c (func_call): Before we expand the user-defined
405 function, modify its exp_count field to contain the maximum
406 number of recursive calls we'll allow. After the call, reset it
409 2002-04-21 Paul D. Smith <psmith@gnu.org>
411 Modified to use latest autoconf (2.53), automake (1.6.1), and
412 gettext (0.11.1). We're using gettext's new "external" support,
413 to avoid including libintl source with GNU make.
415 * README.cvs: New file. Explain how to build GNU make from CVS.
417 * configure.in: Modify checking for the system glob library.
418 Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of
419 GLOBDIR (we will always put "glob" in SUBDIRS, so automake
420 etc. will manage it correctly). Set an automake conditional
421 USE_LOCAL_GLOB to decide whether to compile the glob library.
423 * getloadavg.c (main): Include make.h in the "TEST" program to
426 * Makefile.am: Remove special rules for loadavg. Replace them
427 with Automake capabilities for building extra programs.
429 * signame.c: This file does nothing if the system provide
430 strsignal(). If not, it implements strsignal(). If the system
431 doesn't define sys_siglist, then we make our own; otherwise we use
433 * signame.h: Removed.
435 * main.c (main): No need to invoke signame_init(). Update copyright.
437 * ABOUT-NLS: Removed.
438 * gettext.c: Removed.
439 * gettext.h: Get a simplified copy from the gettext package.
441 * i18n/*.po: Moved to po/.
444 * config/*: Created. Contains package configuration helper files.
445 * config.guess, config.sub: Moved to config directory.
447 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
448 Rework to use new-style autoconf features. Use the "external"
449 mode for gettext. Make the build.sh config file conditional on
450 whether build.sh.in exists, to avoid autoconf errors.
451 * acinclude.m4: Removed almost all macros as being obsolete.
452 Rewrote remaining macros to use AC_DEFINE.
453 * acconfig.h: Removed.
455 * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
456 conditional to handle customs support. Remove special handling
459 2002-04-20 Paul D. Smith <psmith@gnu.org>
461 * function.c (func_call): Don't mark the argument variables $1,
462 etc. as recursive. They've already been fully expanded so
463 there's no need to do it again, and doing so strips escaped $'s.
464 Reported by Sebastian Glita <glseba@yahoo.com>.
466 * remake.c (notice_finished_file): Walk through double-colon
467 entries via the prev field, not the next field!
468 Reported by Greg McGary <greg@mcgary.org>.
470 * main.c (main): If the user specifies -q and asks for a specific
471 target which is a makefile, we got an assert. In that case it
472 turns out we should continue normally instead.
474 * i18n/de.po, i18n/fr.po: Installed an updated translation.
476 * i18n/he.po: Installed a new translation.
478 2002-01-07 Paul D. Smith <psmith@gnu.org>
480 * i18n/es.po, i18n/ru.po: Installed an updated translation.
482 2001-12-04 Paul D. Smith <psmith@gnu.org>
484 * i18n/ja.po: Installed an updated translation.
486 2001-09-04 Paul D. Smith <psmith@gnu.org>
488 * i18n/da.po: Installed an updated translation.
490 2001-08-03 Paul D. Smith <psmith@gnu.org>
492 * i18n/fr.po: Installed an updated translation.
493 Resolves Debian bug #106720.
495 2001-06-13 Paul D. Smith <psmith@gnu.org>
497 * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
500 2001-06-11 Paul D. Smith <psmith@gnu.org>
502 * i18n/ko.po: Installed a new translation.
504 2001-05-06 Paul D. Smith <psmith@gnu.org>
506 Modify the EINTR handling.
508 * job.c (new_job): Reorganize the jobserver algorithm. Reorder
509 the way in which we manage the file descriptor/signal handler race
510 trap to be more efficient.
512 2001-05-06 Paul Eggert <eggert@twinsun.com>
514 Restart almost all system calls that are interrupted, instead
515 of worrying about EINTR. The lone exception is the read() for
518 * configure.in (HAVE_SA_RESTART): New macro.
519 (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
520 * main.c (main): Use SA_RESTART instead of the old,
521 nonstandard SA_INTERRUPT.
523 * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
524 * main.c (bsd_signal): New function or macro,
525 if the implementation doesn't supply it.
526 (The bsd_signal function will be in POSIX 1003.1-200x.)
528 (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
530 * make.h (EINTR_SET): Remove.
531 (SA_RESTART): New macro.
533 * arscan.c (ar_member_touch): Don't worry about EINTR.
534 * function.c (func_shell): Likewise.
535 * job.c (reap_children, free_child, new_job): Likewise.
536 * main.c (main): Likewise.
537 * remake.c (touch_file, name_mtime): Likewise.
539 * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
540 if fstat failed with errno!=EINTR, the error was ignored.
542 * job.c (set_child_handler_action_flags): New function.
543 (new_job): Use it to temporarily clear the SIGCHLD action flags
544 while reading the token.
546 2001-05-02 Paul D. Smith <psmith@gnu.org>
548 * job.c (start_job_command): Don't add define/endef per-line flags
549 to the top-level flags setting.
551 2001-04-03 Paul D. Smith <psmith@gnu.org>
553 * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
554 bit on error, so check for odd return values, not non-0 return
556 (VMS_get_member_info): Calculate the timezone differences correctly.
557 Reported by John Fowler <jfowler@nyx.net>.
560 2001-03-14 Paul D. Smith <psmith@gnu.org>
562 * variable.c (lookup_variable) [VMS]: Null-terminate the variable
563 value before invoking define_variable().
564 Reported by John Fowler <jfowler@nyx.net>.
566 2001-02-07 Paul D. Smith <psmith@gnu.org>
568 * read.c (record_target_var): If we reset the variable due to a
569 command-line variable setting overriding it, turn off the "append"
572 2001-01-17 Paul D. Smith <psmith@gnu.org>
574 * variable.c (lookup_variable) [VMS]: When getting values from the
575 environment, allocate enough space for the _value_ plus escapes,
576 not enough space for the name plus escapes :-/.
577 Reported by John Fowler <jfowler@nyx.net>.
579 * remake.c (f_mtime): Removed the "***" prefix from the mod time
580 warnings that make generates, so it doesn't look like an error.
581 Reported by Karl Berry <karl@gnu.org>.
584 Fix for PR/2020: Rework appended target-specific variables. I'm
585 fairly confident this algorithm is finally correct.
587 * expand.c (allocated_variable_append): Rewrite. Instead of
588 expanding each appended variable then adding all the expanded
589 strings together, we append all the unexpanded values going up
590 through the variable set contexts, then expand the final result.
591 This behaves just like non-target-specific appended variable
592 values, while the old way didn't in various corner cases.
593 (variable_append): New function: recursively append the unexpanded
594 value of a variable, walking from the outermost variable scope to
596 * variable.c (lookup_variable): Remove the code that looked up the
597 variable set list if the found variable was "append". We don't
599 (lookup_variable_in_set): Make this non-static so we can use it
601 (try_variable_definition): Use lookup_variable_in_set() rather
602 than faking out current_variable_set_list by hand (cleanup).
603 * variable.h: Add a prototype for the now non-static
604 lookup_variable_in_set().
606 2000-11-17 Paul D. Smith <psmith@gnu.org>
608 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
609 WINDOWS32 port to assume timestamps can be up to 3 seconds away
610 before throwing a fit.
612 2000-11-17 Paul D. Smith <psmith@gnu.org>
614 * read.c (readline): CRLF calculations had a hole, if you hit the
615 buffer grow scenario just right. Reworked the algorithm to avoid
616 the need for len or lastlen at all. Problem description with
617 sample code chages provided by Chris Faylor <cgf@redhat.com>.
619 2000-10-24 Paul D. Smith <psmith@gnu.org>
621 * gettext.c (SWAP): Declare this with the prototype, otherwise
622 some systems don't work (non-32-bit? Reported for Cray T3E).
623 Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
625 2000-10-05 Paul D. Smith <psmith@gnu.org>
627 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
628 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
630 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
632 2000-09-22 Paul D. Smith <psmith@gnu.org>
634 * gettext.c: Don't #define _GETTEXT_H here; we only include some
635 parts of the real gettext.h here, and we expect to really include
636 the real gettext.h later. If we keep this #define, it's ignored.
638 2000-09-21 Paul D. Smith <psmith@gnu.org>
640 * main.c (log_working_directory): Rework the text to use complete
641 sentences, to make life simpler for the translators.
643 2000-08-29 Paul D. Smith <psmith@gnu.org>
645 * file.c (remove_intermediates): Print a debug message before we
646 remove intermediate files, so the user (if she uses -d) knows
649 2000-08-21 Paul D. Smith <psmith@gnu.org>
651 * variable.c (try_variable_definition): Change how we handle
652 target-specific append variable defns: instead of just setting the
653 value, expand it as an append _but_ only within the current
654 target's context. Otherwise we lose all but the last value if the
655 variable is appended more than once within the current target
656 context. Fixes PR/1831.
658 2000-08-16 Paul D. Smith <psmith@gnu.org>
660 * function.c (func_shell): Nul-terminate the buffer before
661 printing an exec error message (just in case it's not!).
662 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
664 2000-07-25 Paul D. Smith <psmith@gnu.org>
666 * job.c (construct_command_argv_internal): Add "~" to the list of
667 sh_chars[] which disallow optimizing out the shell call.
669 2000-07-23 Paul Eggert <eggert@twinsun.com>
671 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
672 supersedes --disable-nsec-timestamps.
673 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
674 * README: Remove --disable-nsec-timestamps.
676 * filedef.h (struct file.low_resolution_time): New member.
677 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
678 * remake.c (update_file_1):
679 Avoid spurious rebuilds due to low resolution time stamps,
680 generalizing the earlier code that applied only to archive members.
681 (f_mtime): Archive members always have low resolution time stamps.
683 * configure.in: Remove --disable-nsec-timestamps, as this has
684 been superseded by .LOW_RESOLUTION_TIME.
686 2000-07-23 Paul Eggert <eggert@twinsun.com>
688 * configure.in (enable_nsec_timestamps): Renamed from
689 make_cv_nsec_timestamps, since enable/disable options
692 2000-07-23 Bruno Haible <haible@clisp.cons.org>
693 and Paul Eggert <eggert@twinsun.com>
695 * file.c (file_timestamp_now):
696 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
697 so that clock_gettime is not linked unless needed.
699 * filedef.h (FILE_TIMESTAMP_HI_RES):
700 Remove definition; "configure" now does this.
702 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
703 to before high resolution file timestamp check,
704 since that check now uses uintmax_t.
705 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
706 high resolution file timestamps.
707 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
708 so that we don't link in clock_gettime unnecessarily.
710 2000-07-17 Paul D. Smith <psmith@gnu.org>
712 * i18n/ja.po: New version of the translation file.
714 2000-07-07 Paul D. Smith <psmith@gnu.org>
716 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
717 the offset calculation.
718 (name_mtime): Replace EINTR test with EINTR_SET macro.
720 2000-07-07 Paul Eggert <eggert@twinsun.com>
724 * remake.c (update_file_1):
725 Avoid spurious rebuilds of archive members due to their
726 timestamp resolution being only one second.
727 (f_mtime): Avoid spurious warnings of timestamps in the future due to
728 the clock's resolution being lower than file timestamps'.
729 When warning about future timestamps, report only the discrepancy,
730 not the absolute value of the timestamp and the current time.
732 * file.c (file_timestamp_now): New arg RESOLUTION.
733 * filedef.h (file_timestamp_now): Likewise.
734 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
736 2000-07-05 Paul D. Smith <psmith@gnu.org>
738 * variable.c (lookup_variable) [VMS]: Remove vestigial references
739 to listp. Fixes PR/1793.
741 2000-06-26 Paul Eggert <eggert@twinsun.com>
743 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
745 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
747 * remake.c (f_mtime): Remove unused var memtime.
749 2000-06-25 Martin Buchholz <martin@xemacs.org>
751 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
752 Ran spell-check on make.texinfo.
755 See ChangeLog.2 for earlier changes.