Commit Graph

17 Commits

Author SHA1 Message Date
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
msaitoh bc44d1eef4 catch SIGPIPE, too. 2003-03-28 07:38:15 +00:00
elric 3799cab605 Backing this out until it works. 2003-01-19 00:42:45 +00:00
jmmv 1f46362208 When an unknown option is found, ignore it, as it may be cc related (i.e.,
-D and -I options).
2003-01-18 22:32:20 +00:00
jmmv c69d292b43 Use getopt(3) instead of specific code to parse options.
Reviewed by jdolecek.
2003-01-18 21:13:58 +00:00
msaitoh e43fc70de5 catch SIGINT, SIGHUP, SIGQUIT and SIGTERM to clear a temporary file. 2003-01-16 08:05:09 +00:00
simonb f76ac8f4dc Split out the findcc() function that tries to determine the path to
the C compiler so other programs can use it.
2002-06-14 23:14:18 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv 5c99654526 Add hooks for cross-hosting on non-NetBSD platforms. 2002-01-21 19:22:53 +00:00
cgd f60321832b a couple of tiny whitespace cleanups 2001-03-22 02:41:02 +00:00
cgd f3dd4051a1 get closer to KNF. 2001-03-22 02:33:47 +00:00
cgd baa3e1d8d4 convert uses of hard-coded string "mkdep" to use getprogname(). 2001-03-22 00:16:50 +00:00
cgd 040de26f85 call setprogname(argv[0]) at start of main() 2001-02-21 00:06:22 +00:00
kleink fbfc6d0d28 Rather than hardcoding _PATH_TMP (and relying on const string concatenation),
try TMPDIR (if set in the environment).
1999-07-21 15:20:55 +00:00
kleink 7a5c45dac4 * Make usage string reflect reality,
* declare internal utility functions static,
* remove unneeded workarounds for bogus -Wuninitialized reports,
* delint.
1999-03-31 11:26:45 +00:00
sommerfe 05ccb4009e Do something sane if we have CC='cc -pipe' set 1999-03-18 22:01:48 +00:00
tron c0f4850d5c New C program to replace old "mkdep" script. Speeds up "make depend"
by at least 5 percent.
1999-01-25 22:10:42 +00:00