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