platform/upstream/make.git
29 years ago(main): Pass missing arg to tmpnam. 3.72.8
Roland McGrath [Wed, 22 Feb 1995 03:19:53 +0000 (03:19 +0000)]
(main): Pass missing arg to tmpnam.

29 years agoCheck for strsignal.
Roland McGrath [Wed, 22 Feb 1995 03:18:18 +0000 (03:18 +0000)]
Check for strsignal.

29 years ago(child_error): Use strsignal.
Roland McGrath [Wed, 22 Feb 1995 03:17:54 +0000 (03:17 +0000)]
(child_error): Use strsignal.

29 years ago(main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
Roland McGrath [Wed, 22 Feb 1995 03:17:22 +0000 (03:17 +0000)]
(main): Don't call signame_init #ifdef HAVE_STRSIGNAL.

29 years ago(strsignal): Declare it.
Roland McGrath [Wed, 22 Feb 1995 03:15:51 +0000 (03:15 +0000)]
(strsignal): Declare it.

29 years ago[! HAVE_STRSIGNAL] (strsignal): New function.
Roland McGrath [Wed, 22 Feb 1995 03:13:12 +0000 (03:13 +0000)]
[! HAVE_STRSIGNAL] (strsignal): New function.

29 years ago(strerror): Fix swapped args in sprintf.
Roland McGrath [Wed, 22 Feb 1995 03:10:16 +0000 (03:10 +0000)]
(strerror): Fix swapped args in sprintf.

29 years ago(CFLAGS, LDFLAGS): Don't set these variables.
Roland McGrath [Mon, 13 Feb 1995 16:50:03 +0000 (16:50 +0000)]
(CFLAGS, LDFLAGS): Don't set these variables.

29 years ago(print_version): Add 95 to copyright years.
Roland McGrath [Sat, 11 Feb 1995 01:39:58 +0000 (01:39 +0000)]
(print_version): Add 95 to copyright years.

29 years ago(start_job_command): Remember to call notice_finsihed_file under -n when 3.72.6
Roland McGrath [Fri, 10 Feb 1995 23:44:03 +0000 (23:44 +0000)]
(start_job_command): Remember to call notice_finsihed_file under -n when
not recursing.  To do this, consolidate that code under the empty command
case and goto there for the -n case.

29 years agoreal-clean renamed to maintainer-clean.
Richard M. Stallman [Tue, 7 Feb 1995 23:45:48 +0000 (23:45 +0000)]
real-clean renamed to maintainer-clean.
Description changed too.

29 years ago[! STDC_HEADERS]: Don't declare qsort. Sun headers declare it int.
Roland McGrath [Tue, 7 Feb 1995 18:36:00 +0000 (18:36 +0000)]
[! STDC_HEADERS]: Don't declare qsort.  Sun headers declare it int.

29 years ago(read_makefile): For bogus line starting with tab, ignore it if blank after
Roland McGrath [Mon, 6 Feb 1995 22:58:07 +0000 (22:58 +0000)]
(read_makefile): For bogus line starting with tab, ignore it if blank after
removing comments.

29 years agoCast results of `alloca' to `char *'.
Roland McGrath [Mon, 6 Feb 1995 22:37:36 +0000 (22:37 +0000)]
Cast results of `alloca' to `char *'.

29 years agoCast results of `alloca' to `char *' in two places.
Roland McGrath [Mon, 6 Feb 1995 22:36:43 +0000 (22:36 +0000)]
Cast results of `alloca' to `char *' in two places.

29 years agoCheck for mktemp. 3.72.5
Roland McGrath [Sun, 5 Feb 1995 23:50:12 +0000 (23:50 +0000)]
Check for mktemp.

29 years ago(main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
Roland McGrath [Sun, 5 Feb 1995 23:49:40 +0000 (23:49 +0000)]
(main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.

29 years ago(make_cv_sysconf_open_max): New check for `sysconf (_SC_OPEN_MAX)'.
Roland McGrath [Sun, 5 Feb 1995 23:45:49 +0000 (23:45 +0000)]
(make_cv_sysconf_open_max): New check for `sysconf (_SC_OPEN_MAX)'.

29 years agoAdded #undef HAVE_SYSCONF_OPEN_MAX.
Roland McGrath [Sun, 5 Feb 1995 23:36:04 +0000 (23:36 +0000)]
Added #undef HAVE_SYSCONF_OPEN_MAX.

29 years ago[HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro using sysconf.
Roland McGrath [Sun, 5 Feb 1995 23:35:39 +0000 (23:35 +0000)]
[HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro using sysconf.

29 years ago(update_file_1): When !MUST_MAKE, don't set FILE->update_status to zero
Roland McGrath [Fri, 27 Jan 1995 09:42:00 +0000 (09:42 +0000)]
(update_file_1): When !MUST_MAKE, don't set FILE->update_status to zero
before calling notice_finished_file.
(notice_finished_file): Touch only when FILE->update_status is zero.
(remake_file): Set FILE->update_status to zero after not calling
execute_file_command and deciding to touch instead.

29 years ago(debug_signal_handler): New function; toggles debug_flag.
Roland McGrath [Thu, 26 Jan 1995 06:29:18 +0000 (06:29 +0000)]
(debug_signal_handler): New function; toggles debug_flag.
(main): Handle SIGUSR1 with that.

29 years ago(realclean): Remove Info files.
Roland McGrath [Mon, 16 Jan 1995 20:46:50 +0000 (20:46 +0000)]
(realclean): Remove Info files.

29 years ago(variable_expand): Fix braino in last change. 3.72.4
Roland McGrath [Sun, 15 Jan 1995 16:33:35 +0000 (16:33 +0000)]
(variable_expand): Fix braino in last change.

29 years agoFix nits in last change.
Roland McGrath [Sun, 15 Jan 1995 16:32:10 +0000 (16:32 +0000)]
Fix nits in last change.

29 years ago(start_job_command): Save and restore environ around vfork call.
Roland McGrath [Sun, 15 Jan 1995 15:57:48 +0000 (15:57 +0000)]
(start_job_command): Save and restore environ around vfork call.
(search_path): Function #if 0'd out.
(exec_command): Use execvp instead of search_path.

29 years ago(variable_expand): Rewrote computed variable name and substitution
Roland McGrath [Sun, 15 Jan 1995 15:32:37 +0000 (15:32 +0000)]
(variable_expand): Rewrote computed variable name and substitution
reference handling to be simpler.  First expand the entire text between the
parens if it contains any $s, then examine the result of that for
subtitution references and do no further expansion while parsing them.

29 years ago(construct_command_argv_internal): Handle " quoting too, when no
Roland McGrath [Sun, 15 Jan 1995 13:43:48 +0000 (13:43 +0000)]
(construct_command_argv_internal): Handle " quoting too, when no
backslash, $ or ` characters appear inside the quotes.

29 years ago(union wait check): If WEXITSTATUS and WTERMSIG are defined, just use int.
Roland McGrath [Sun, 15 Jan 1995 13:23:03 +0000 (13:23 +0000)]
(union wait check): If WEXITSTATUS and WTERMSIG are defined, just use int.

29 years ago(Foreach Function): Correccion de gramatica espanola.
Roland McGrath [Fri, 13 Jan 1995 06:30:39 +0000 (06:30 +0000)]
(Foreach Function): Correccion de gramatica espanola.

29 years ago(default_variables) [__hpux]: Remove special definition of ARFLAGS.
Roland McGrath [Wed, 11 Jan 1995 00:14:53 +0000 (00:14 +0000)]
(default_variables) [__hpux]: Remove special definition of ARFLAGS.
Existence of the `f' flag is not consistent across HPUX versions;
and one might be using GNU ar anyway.

29 years ago(clean): Don't remove Info files.
Roland McGrath [Tue, 10 Jan 1995 11:30:56 +0000 (11:30 +0000)]
(clean): Don't remove Info files.

29 years ago($(bindir)/make): Fix typo in echo.
Roland McGrath [Tue, 10 Jan 1995 11:29:08 +0000 (11:29 +0000)]
($(bindir)/make): Fix typo in echo.

29 years agoFix typo in comment.
Roland McGrath [Tue, 10 Jan 1995 11:28:12 +0000 (11:28 +0000)]
Fix typo in comment.

29 years ago(check): Remove gratuitous target declaration.
Roland McGrath [Tue, 10 Jan 1995 11:27:24 +0000 (11:27 +0000)]
(check): Remove gratuitous target declaration.

29 years ago(ETAGS, CTAGS): Don't use -t.
Roland McGrath [Sat, 7 Jan 1995 16:59:15 +0000 (16:59 +0000)]
(ETAGS, CTAGS): Don't use -t.

29 years agoInclude config.h first.
Roland McGrath [Sat, 7 Jan 1995 16:57:36 +0000 (16:57 +0000)]
Include config.h first.

29 years ago(ar_name_equal) [cray]: Subtract 1 like [__hpux].
Roland McGrath [Sat, 7 Jan 1995 16:55:30 +0000 (16:55 +0000)]
(ar_name_equal) [cray]: Subtract 1 like [__hpux].

29 years ago(decode_switches): For --help, print usage to stdout.
Roland McGrath [Sat, 7 Jan 1995 16:38:08 +0000 (16:38 +0000)]
(decode_switches): For --help, print usage to stdout.

29 years agoinstall, uninstall, installdirs should not alter the build dir.
Richard M. Stallman [Wed, 4 Jan 1995 19:37:36 +0000 (19:37 +0000)]
install, uninstall, installdirs should not alter the build dir.

29 years ago(update_file_1): Do set_command_state (FILE, cs_not_started) only if old 3.72.3
Roland McGrath [Mon, 5 Dec 1994 17:42:13 +0000 (17:42 +0000)]
(update_file_1): Do set_command_state (FILE, cs_not_started) only if old
state was deps_running.

29 years ago(start_waiting_job): Use set_command_state.
Roland McGrath [Tue, 29 Nov 1994 01:10:47 +0000 (01:10 +0000)]
(start_waiting_job): Use set_command_state.

29 years ago(CPPFLAGS): New variable.
Roland McGrath [Mon, 28 Nov 1994 23:06:28 +0000 (23:06 +0000)]
(CPPFLAGS): New variable.
(prefix, exec_prefix): Set from @...@.
(compilation loop): Pass $CPPFLAGS to compiler.

29 years ago(build.sh.in): Make it executable.
Roland McGrath [Mon, 28 Nov 1994 23:02:42 +0000 (23:02 +0000)]
(build.sh.in): Make it executable.

29 years ago(globfiles): Add configure.in, configure.
Roland McGrath [Mon, 28 Nov 1994 22:02:23 +0000 (22:02 +0000)]
(globfiles): Add configure.in, configure.

29 years ago(make-$(version).tar): Rename install.sh to install-sh. 3.72.2
Roland McGrath [Mon, 28 Nov 1994 20:54:38 +0000 (20:54 +0000)]
(make-$(version).tar): Rename install.sh to install-sh.

29 years ago(prefix, exec_prefix): Set.
Roland McGrath [Mon, 28 Nov 1994 20:51:40 +0000 (20:51 +0000)]
(prefix, exec_prefix): Set.
(CPPFLAGS): Filter out @...@.
($(ARCH)/glob/libglob.a): Don't pass down variables.

29 years agoAbbreviate copyright years.
Roland McGrath [Mon, 28 Nov 1994 20:50:45 +0000 (20:50 +0000)]
Abbreviate copyright years.

29 years ago(AC_OUTPUT): Don't write glob/Makefile.
Roland McGrath [Mon, 28 Nov 1994 20:48:43 +0000 (20:48 +0000)]
(AC_OUTPUT): Don't write glob/Makefile.

29 years ago(AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
Roland McGrath [Mon, 28 Nov 1994 20:28:26 +0000 (20:28 +0000)]
(AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.

29 years agoDon't check for ranlib.
Roland McGrath [Mon, 28 Nov 1994 20:20:43 +0000 (20:20 +0000)]
Don't check for ranlib.

29 years ago(notice_finished_file): Only mark also_make's as updated if really ran
Roland McGrath [Wed, 23 Nov 1994 03:42:34 +0000 (03:42 +0000)]
(notice_finished_file): Only mark also_make's as updated if really ran
cmds.

29 years agoPut dnls before random whitespace.
Roland McGrath [Tue, 15 Nov 1994 11:32:39 +0000 (11:32 +0000)]
Put dnls before random whitespace.

29 years ago(CPPFLAGS): New variable, set from @CPPFLAGS@.
Roland McGrath [Sun, 13 Nov 1994 10:02:19 +0000 (10:02 +0000)]
(CPPFLAGS): New variable, set from @CPPFLAGS@.
(RANLIB): Variable removed.
(prefix, exec_prefix): Set these from @...@.
(.c.o): Use $(CPPFLAGS).
(glob/libglob.a): Don't pass down variables to sub-make.
glob/Makefile should be configured properly by configure.
(distclean): Remove config.log and config.cache (autoconf stuff).

29 years agoExplain reason for new filesystem layout.
David J. MacKenzie [Fri, 11 Nov 1994 04:33:24 +0000 (04:33 +0000)]
Explain reason for new filesystem layout.

29 years agoAdd #undef HAVE_UNION_WAIT.
Roland McGrath [Tue, 8 Nov 1994 02:09:49 +0000 (02:09 +0000)]
Add #undef HAVE_UNION_WAIT.

29 years agoConverted to Autoconf v2.
Roland McGrath [Tue, 8 Nov 1994 02:08:24 +0000 (02:08 +0000)]
Converted to Autoconf v2.

29 years agoTest HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead of DIRENT, SYSDIR,
Roland McGrath [Tue, 8 Nov 1994 00:14:50 +0000 (00:14 +0000)]
Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead of DIRENT, SYSDIR,
NDIR.

29 years ago(prefix, exec_prefix): Set these from @...@.
Roland McGrath [Mon, 7 Nov 1994 23:42:58 +0000 (23:42 +0000)]
(prefix, exec_prefix): Set these from @...@.
(CPPFLAGS): New variable, set from @CPPFLAGS@.
(compiling loop): Pass $CPPFLAGS before $CFLAGS.

29 years agoInitial revision
Roland McGrath [Mon, 7 Nov 1994 23:40:44 +0000 (23:40 +0000)]
Initial revision

29 years ago(define_makeflags): When no flags, set WORDS to zero.
Roland McGrath [Mon, 7 Nov 1994 18:57:56 +0000 (18:57 +0000)]
(define_makeflags): When no flags, set WORDS to zero.

29 years ago(define_makeflags): Terminate properly when FLAGSTRING is empty.
Roland McGrath [Sun, 6 Nov 1994 23:33:55 +0000 (23:33 +0000)]
(define_makeflags): Terminate properly when FLAGSTRING is empty.

29 years ago(rcs-mark-{alpha,beta}): Let make do the globbing instead of sh.
Roland McGrath [Fri, 4 Nov 1994 21:08:52 +0000 (21:08 +0000)]
(rcs-mark-{alpha,beta}): Let make do the globbing instead of sh.

29 years agoRemove `DRAFT' from edition. 3.72
Roland McGrath [Fri, 4 Nov 1994 20:23:23 +0000 (20:23 +0000)]
Remove `DRAFT' from edition.

29 years ago(Variables/Recursion): Fix typo. 3.71.5
Roland McGrath [Tue, 1 Nov 1994 08:40:19 +0000 (08:40 +0000)]
(Variables/Recursion): Fix typo.

29 years ago(start_job_command): When ARGV is nil, only set update_state and call
Roland McGrath [Tue, 1 Nov 1994 08:34:10 +0000 (08:34 +0000)]
(start_job_command): When ARGV is nil, only set update_state and call
notice_finished_file if job_next_command returns zero.

29 years agoDoc .DELETE_ON_ERROR.
Roland McGrath [Tue, 1 Nov 1994 08:29:31 +0000 (08:29 +0000)]
Doc .DELETE_ON_ERROR.
Doc new MAKEFLAGS/MAKEOVERRIDES.
Doc .IGNORE/.SILENT with deps.

29 years ago(start_job_command): Call notice_finished_file for empty command line.
Roland McGrath [Tue, 1 Nov 1994 06:18:07 +0000 (06:18 +0000)]
(start_job_command): Call notice_finished_file for empty command line.

29 years ago(snap_deps): Set COMMANDS_SILENT for .SILENT, not COMMANDS_NOERROR.
Roland McGrath [Thu, 27 Oct 1994 06:02:43 +0000 (06:02 +0000)]
(snap_deps): Set COMMANDS_SILENT for .SILENT, not COMMANDS_NOERROR.

29 years ago[alliant && i860] (FSCALE): Move defn before #ifndef FSCALE.
Roland McGrath [Thu, 27 Oct 1994 00:34:56 +0000 (00:34 +0000)]
[alliant && i860] (FSCALE): Move defn before #ifndef FSCALE.

29 years ago(snap_deps): Set command_flags bits in all :: entries.
Roland McGrath [Wed, 26 Oct 1994 02:49:21 +0000 (02:49 +0000)]
(snap_deps): Set command_flags bits in all :: entries.

29 years ago(snap_deps): Fix last change.
Roland McGrath [Mon, 24 Oct 1994 23:44:16 +0000 (23:44 +0000)]
(snap_deps): Fix last change.

29 years ago(posix_pedantic): Declare it.
Roland McGrath [Mon, 24 Oct 1994 23:11:57 +0000 (23:11 +0000)]
(posix_pedantic): Declare it.

29 years ago(main): Move checks .IGNORE, .SILENT, .POSIX to snap_deps.
Roland McGrath [Mon, 24 Oct 1994 22:57:07 +0000 (22:57 +0000)]
(main): Move checks .IGNORE, .SILENT, .POSIX to snap_deps.

29 years ago(snap_deps): Check .IGNORE, .SILENT, .POSIX here instead of in main.
Roland McGrath [Mon, 24 Oct 1994 22:56:27 +0000 (22:56 +0000)]
(snap_deps): Check .IGNORE, .SILENT, .POSIX here instead of in main.
If .IGNORE has deps, OR COMMANDS_NOERROR into their command_flags and
don't set -i.  Likewise .SILENT.

29 years ago(start_job_command): In FLAGS initialization, OR in
Roland McGrath [Mon, 24 Oct 1994 22:50:01 +0000 (22:50 +0000)]
(start_job_command): In FLAGS initialization, OR in
CHILD->file->command_flags.

29 years ago(struct file): New member `command_flags'.
Roland McGrath [Mon, 24 Oct 1994 22:47:43 +0000 (22:47 +0000)]
(struct file): New member `command_flags'.

29 years ago(Automatic Dependencies): Improve recommended sed command.
Roland McGrath [Mon, 24 Oct 1994 05:05:43 +0000 (05:05 +0000)]
(Automatic Dependencies): Improve recommended sed command.
Mention -MM flag to gcc.

29 years ago(Commands): Add warning about "blank" line starting with a tab.
Roland McGrath [Mon, 17 Oct 1994 00:02:27 +0000 (00:02 +0000)]
(Commands): Add warning about "blank" line starting with a tab.

29 years ago(switches): Bump flag values for --no-print-directory and
Roland McGrath [Sun, 16 Oct 1994 05:01:46 +0000 (05:01 +0000)]
(switches): Bump flag values for --no-print-directory and
--warn-undefined-variables, so neither is 1 (which indicates a nonoption
argument).

29 years ago(main): Add missing code in .IGNORE test.
Roland McGrath [Sun, 16 Oct 1994 03:39:35 +0000 (03:39 +0000)]
(main): Add missing code in .IGNORE test.

29 years agoDocument $+ and $(+D), $(+F).
Roland McGrath [Mon, 10 Oct 1994 08:10:13 +0000 (08:10 +0000)]
Document $+ and $(+D), $(+F).

29 years ago(define_automatic_variables): Define +D and +F.
Roland McGrath [Mon, 10 Oct 1994 08:08:58 +0000 (08:08 +0000)]
(define_automatic_variables): Define +D and +F.

29 years ago(main): Define hidden automatic variable with command vars, and
Roland McGrath [Sat, 1 Oct 1994 08:07:35 +0000 (08:07 +0000)]
(main): Define hidden automatic variable with command vars, and
MAKEOVERRIDES to a reference to that.
(define_makeflags): If posix_pedantic, write a reference to that instead.

29 years ago(posix_pedantic): New variable.
Roland McGrath [Fri, 30 Sep 1994 01:04:54 +0000 (01:04 +0000)]
(posix_pedantic): New variable.
(main): Set posix_pedantic if .POSIX is a target.
Fix .IGNORE and .SILENT hecks to require is_target.

29 years agoComment fix.
Roland McGrath [Thu, 29 Sep 1994 19:52:49 +0000 (19:52 +0000)]
Comment fix.

29 years ago(set_file_variables): Define new automatic variable $+, like $^ but before
Roland McGrath [Thu, 29 Sep 1994 08:23:25 +0000 (08:23 +0000)]
(set_file_variables): Define new automatic variable $+, like $^ but before
calling uniquize_deps.

29 years ago(reap_children): Call delete_child_targets for non-signal error if
Roland McGrath [Thu, 29 Sep 1994 04:14:20 +0000 (04:14 +0000)]
(reap_children): Call delete_child_targets for non-signal error if
.DELETE_ON_ERROR is a target.

29 years ago[alliant && i860] (LOAD_AVE_TYPE, FSCALE, NLIST_STRUCT): Define.
Roland McGrath [Wed, 28 Sep 1994 21:00:06 +0000 (21:00 +0000)]
[alliant && i860] (LOAD_AVE_TYPE, FSCALE, NLIST_STRUCT): Define.

29 years ago(reap_children): Don't change C->file->command_state when dying.
Roland McGrath [Mon, 26 Sep 1994 23:02:40 +0000 (23:02 +0000)]
(reap_children): Don't change C->file->command_state when dying.
Test it only after calling start_job_command for a new command line.
When no more cmds, just set C->file->update_status.
(start_job_command): When the last line is empty or under -n, set
C->file->update_status.
(start_waiting_job): Grok cs_not_started after start_job_command as success.
(new_job): Set C->file->update_status when there are no cmds.
(job_next_command): When out of lines, don't set CHILD->file->update_status or
CHILD->file->command_state.

29 years ago(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.
Roland McGrath [Mon, 26 Sep 1994 22:45:08 +0000 (22:45 +0000)]
(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.

29 years ago(quote_as_word): Renamed from shell_quote.
Roland McGrath [Mon, 26 Sep 1994 22:37:10 +0000 (22:37 +0000)]
(quote_as_word): Renamed from shell_quote.
Take new arg; if nonzero, also double $s.
(main): Define MAKEOVERRIDES from command_variables here.
(define_makeflags): Don't use command_variables here; instead write a
reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.

29 years ago[__MSDOS__]: Fixed typo.
Roland McGrath [Mon, 26 Sep 1994 22:20:56 +0000 (22:20 +0000)]
[__MSDOS__]: Fixed typo.

29 years ago(selective_vpath_search): Reset EXISTS when stat fails.
Roland McGrath [Mon, 26 Sep 1994 22:16:51 +0000 (22:16 +0000)]
(selective_vpath_search): Reset EXISTS when stat fails.

29 years agoremove CONFIG_BROKETS
David J. MacKenzie [Mon, 26 Sep 1994 21:57:54 +0000 (21:57 +0000)]
remove CONFIG_BROKETS

29 years agoREMOVE CONFIG_BROKETS
David J. MacKenzie [Mon, 26 Sep 1994 21:56:21 +0000 (21:56 +0000)]
REMOVE CONFIG_BROKETS

29 years agoremove CONFIG_BROKETS
David J. MacKenzie [Mon, 26 Sep 1994 21:52:40 +0000 (21:52 +0000)]
remove CONFIG_BROKETS

29 years ago(getloadavg): Add OSF_ALPHA support.
Richard M. Stallman [Sat, 17 Sep 1994 00:16:57 +0000 (00:16 +0000)]
(getloadavg): Add OSF_ALPHA support.

29 years agoInclude <assert.h> and use assert instead of printfs and abort.
Roland McGrath [Sat, 10 Sep 1994 15:04:57 +0000 (15:04 +0000)]
Include <assert.h> and use assert instead of printfs and abort.

29 years ago(decode_switches): Loop until optind hits ARGC, not just until getopt_long
Roland McGrath [Sat, 10 Sep 1994 07:01:10 +0000 (07:01 +0000)]
(decode_switches): Loop until optind hits ARGC, not just until getopt_long
returns EOF.  Initialize C to zero before loop; in loop if C is EOF, set
optarg from ARGV[optind++], else call getopt_long.
(decode_env_switches): Use variable_expand instead of
allocated_variable_expand.  Allocate a fresh buffer to copy split words
into; scan characters by hand to break words and debackslashify.
(shell_quote): New function.
(define_makeflags): Allocate doubled space for switch args, and command
variable names and values; use shell_quote to quote those things.