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