Subject: CVS commit: src/tools/compat
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 10/27/2003 01:42:50
Module Name:	src
Committed By:	lukem
Date:		Mon Oct 27 01:42:50 UTC 2003

Added Files:
	src/tools/compat: nbtool_config.h.in
Removed Files:
	src/tools/compat: config.h.in

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -r1.30 -r0 src/tools/compat/config.h.in
cvs rdiff -r0 -r1.1 src/tools/compat/nbtool_config.h.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.