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