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).
This commit is contained in:
parent
8d8c032590
commit
444edb22a9
@ -1,7 +1,7 @@
|
||||
/* $NetBSD: config.h.in,v 1.30 2003/07/25 03:21:16 atatat Exp $ */
|
||||
/* $NetBSD: nbtool_config.h.in,v 1.1 2003/10/27 01:42:50 lukem Exp $ */
|
||||
|
||||
#ifndef __NETBSD_COMPAT_CONFIG_H__
|
||||
#define __NETBSD_COMPAT_CONFIG_H__
|
||||
#ifndef __NETBSD_NBTOOL_CONFIG_H__
|
||||
#define __NETBSD_NBTOOL_CONFIG_H__
|
||||
|
||||
/* Values set by "configure" based on available functions in the host. */
|
||||
|
||||
@ -112,4 +112,4 @@
|
||||
|
||||
#include "compat_defs.h"
|
||||
|
||||
#endif /* !__NETBSD_COMPAT_CONFIG_H__ */
|
||||
#endif /* !__NETBSD_NBTOOL_CONFIG_H__ */
|
Loading…
Reference in New Issue
Block a user