Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat Redo previous differently: use AH_TOP and AH_BO...
details: https://anonhg.NetBSD.org/src/rev/50a7005d0c2d
branches: trunk
changeset: 588183:50a7005d0c2d
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Feb 11 10:35:29 2006 +0000
description:
Redo previous differently: use AH_TOP and AH_BOTTOM macros to insert
header and footer into nbtool_config.h.in directly.
diffstat:
tools/compat/Makefile | 6 +-
tools/compat/configure.ac | 13 +-
tools/compat/nbtool_config.h | 9 -
tools/compat/nbtool_config.h.in | 526 +++++++++++++++++++++++++++++++
tools/compat/nbtool_config_internal.h.in | 518 ------------------------------
5 files changed, 540 insertions(+), 532 deletions(-)
diffs (truncated from 1119 to 300 lines):
diff -r 8b9cc85cacaf -r 50a7005d0c2d tools/compat/Makefile
--- a/tools/compat/Makefile Sat Feb 11 10:35:19 2006 +0000
+++ b/tools/compat/Makefile Sat Feb 11 10:35:29 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2006/02/11 01:28:01 wiz Exp $
+# $NetBSD: Makefile,v 1.42 2006/02/11 10:35:29 wiz Exp $
HOSTLIB= nbcompat
@@ -55,7 +55,7 @@
SRCS:= ${SRCS:Nndbm*.c}
-config.cache: include/.stamp configure nbtool_config_internal.h.in defs.mk.in
+config.cache: include/.stamp configure nbtool_config.h.in defs.mk.in
rm -f ${.TARGET}
CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
@@ -74,7 +74,7 @@
cleandir: compat.clean
compat.clean:
-rm -r -f include
- -rm -f config.cache nbtool_config_internal.h
+ -rm -f config.cache nbtool_config.h
HOST_CPPFLAGS:= ${CPPFLAGS}
CPPFLAGS:= # empty
diff -r 8b9cc85cacaf -r 50a7005d0c2d tools/compat/configure.ac
--- a/tools/compat/configure.ac Sat Feb 11 10:35:19 2006 +0000
+++ b/tools/compat/configure.ac Sat Feb 11 10:35:29 2006 +0000
@@ -1,12 +1,21 @@
-# $NetBSD: configure.ac,v 1.55 2006/02/11 01:28:01 wiz Exp $
+# $NetBSD: configure.ac,v 1.56 2006/02/11 10:35:29 wiz Exp $
#
# Autoconf definition file for libnbcompat.
#
AC_INIT([libnbcompat], [noversion], [lib-bug-people%NetBSD.org@localhost])
-AC_CONFIG_HEADERS(nbtool_config_internal.h)
+AC_CONFIG_HEADERS(nbtool_config.h)
AC_CONFIG_FILES(defs.mk)
+# Autoheader header and footer
+AH_TOP([/* $NetBSD: configure.ac,v 1.56 2006/02/11 10:35:29 wiz Exp $ */
+
+#ifndef __NETBSD_NBTOOL_CONFIG_H__
+#define __NETBSD_NBTOOL_CONFIG_H__])
+
+AH_BOTTOM([#include "compat_defs.h"
+#endif /* !__NETBSD_NBTOOL_CONFIG_H__ */])
+
AC_DEFUN([AC_NETBSD],
[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
diff -r 8b9cc85cacaf -r 50a7005d0c2d tools/compat/nbtool_config.h
--- a/tools/compat/nbtool_config.h Sat Feb 11 10:35:19 2006 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-/* $NetBSD: nbtool_config.h,v 1.1 2006/02/11 01:28:01 wiz Exp $ */
-
-#ifndef __NETBSD_NBTOOL_CONFIG_H__
-#define __NETBSD_NBTOOL_CONFIG_H__
-
-#include "nbtool_config_internal.h"
-
-#include "compat_defs.h"
-#endif /* !__NETBSD_NBTOOL_CONFIG_H__ */
diff -r 8b9cc85cacaf -r 50a7005d0c2d tools/compat/nbtool_config.h.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/compat/nbtool_config.h.in Sat Feb 11 10:35:29 2006 +0000
@@ -0,0 +1,526 @@
+/* nbtool_config.h.in. Generated from configure.ac by autoheader. */
+
+/* $NetBSD: nbtool_config.h.in,v 1.12 2006/02/11 10:35:29 wiz Exp $ */
+
+#ifndef __NETBSD_NBTOOL_CONFIG_H__
+#define __NETBSD_NBTOOL_CONFIG_H__
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+ systems. This function is required for `alloca.c' support on those systems.
+ */
+#undef CRAY_STACKSEG_END
+
+/* Define to 1 if using `alloca.c'. */
+#undef C_ALLOCA
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#undef HAVE_ALLOCA
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+ */
+#undef HAVE_ALLOCA_H
+
+/* Define to 1 if you have the `asnprintf' function. */
+#undef HAVE_ASNPRINTF
+
+/* Define to 1 if you have the `asprintf' function. */
+#undef HAVE_ASPRINTF
+
+/* Define to 1 if you have the <assert.h> header file. */
+#undef HAVE_ASSERT_H
+
+/* Define to 1 if you have the `atoll' function. */
+#undef HAVE_ATOLL
+
+/* Define to 1 if you have the `basename' function. */
+#undef HAVE_BASENAME
+
+/* Define to 1 if you have the <ctype.h> header file. */
+#undef HAVE_CTYPE_H
+
+/* Define to 1 if you have the declaration of `be16toh', and to 0 if you
+ don't. */
+#undef HAVE_DECL_BE16TOH
+
+/* Define to 1 if you have the declaration of `be32toh', and to 0 if you
+ don't. */
+#undef HAVE_DECL_BE32TOH
+
+/* Define to 1 if you have the declaration of `be64toh', and to 0 if you
+ don't. */
+#undef HAVE_DECL_BE64TOH
+
+/* Define to 1 if you have the declaration of `bswap16', and to 0 if you
+ don't. */
+#undef HAVE_DECL_BSWAP16
+
+/* Define to 1 if you have the declaration of `bswap32', and to 0 if you
+ don't. */
+#undef HAVE_DECL_BSWAP32
+
+/* Define to 1 if you have the declaration of `bswap64', and to 0 if you
+ don't. */
+#undef HAVE_DECL_BSWAP64
+
+/* Define to 1 if you have the declaration of `fstatvfs', and to 0 if you
+ don't. */
+#undef HAVE_DECL_FSTATVFS
+
+/* Define to 1 if you have the declaration of `htobe16', and to 0 if you
+ don't. */
+#undef HAVE_DECL_HTOBE16
+
+/* Define to 1 if you have the declaration of `htobe32', and to 0 if you
+ don't. */
+#undef HAVE_DECL_HTOBE32
+
+/* Define to 1 if you have the declaration of `htobe64', and to 0 if you
+ don't. */
+#undef HAVE_DECL_HTOBE64
+
+/* Define to 1 if you have the declaration of `htole16', and to 0 if you
+ don't. */
+#undef HAVE_DECL_HTOLE16
+
+/* Define to 1 if you have the declaration of `htole32', and to 0 if you
+ don't. */
+#undef HAVE_DECL_HTOLE32
+
+/* Define to 1 if you have the declaration of `htole64', and to 0 if you
+ don't. */
+#undef HAVE_DECL_HTOLE64
+
+/* Define to 1 if you have the declaration of `le16toh', and to 0 if you
+ don't. */
+#undef HAVE_DECL_LE16TOH
+
+/* Define to 1 if you have the declaration of `le32toh', and to 0 if you
+ don't. */
+#undef HAVE_DECL_LE32TOH
+
+/* Define to 1 if you have the declaration of `le64toh', and to 0 if you
+ don't. */
+#undef HAVE_DECL_LE64TOH
+
+/* Define to 1 if you have the declaration of `optind', and to 0 if you don't.
+ */
+#undef HAVE_DECL_OPTIND
+
+/* Define to 1 if you have the declaration of `optreset', and to 0 if you
+ don't. */
+#undef HAVE_DECL_OPTRESET
+
+/* Define to 1 if you have the declaration of `setgroupent', and to 0 if you
+ don't. */
+#undef HAVE_DECL_SETGROUPENT
+
+/* Define to 1 if you have the declaration of `setpassent', and to 0 if you
+ don't. */
+#undef HAVE_DECL_SETPASSENT
+
+/* Define to 1 if you have the declaration of `strsuftoll', and to 0 if you
+ don't. */
+#undef HAVE_DECL_STRSUFTOLL
+
+/* Define to 1 if you have the declaration of `sys_signame', and to 0 if you
+ don't. */
+#undef HAVE_DECL_SYS_SIGNAME
+
+/* Define to 1 if you have the `devname' function. */
+#undef HAVE_DEVNAME
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_DIRENT_H
+
+/* Define to 1 if you have the `dirfd' function. */
+#undef HAVE_DIRFD
+
+/* Define to 1 if you have the `dirname' function. */
+#undef HAVE_DIRNAME
+
+/* Define to 1 if `dd_fd' is member of `DIR'. */
+#undef HAVE_DIR_DD_FD
+
+/* Define to 1 if you have the <errno.h> header file. */
+#undef HAVE_ERRNO_H
+
+/* Define to 1 if you have the <err.h> header file. */
+#undef HAVE_ERR_H
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#undef HAVE_FCNTL_H
+
+/* Define to 1 if you have the <features.h> header file. */
+#undef HAVE_FEATURES_H
+
+/* Define to 1 if you have the `fgetln' function. */
+#undef HAVE_FGETLN
+
+/* Define to 1 if you have the `flock' function. */
+#undef HAVE_FLOCK
+
+/* Define to 1 if you have the `fparseln' function. */
+#undef HAVE_FPARSELN
+
+/* Define to 1 if you have the `futimes' function. */
+#undef HAVE_FUTIMES
+
+/* Define to 1 if you have the `getopt' function. */
+#undef HAVE_GETOPT
+
+/* Define to 1 if you have the <getopt.h> header file. */
+#undef HAVE_GETOPT_H
+
+/* Define to 1 if you have the `getopt_long' function. */
+#undef HAVE_GETOPT_LONG
+
+/* Define to 1 if you have the `group_from_gid' function. */
+#undef HAVE_GROUP_FROM_GID
+
+/* Define to 1 if you have the <grp.h> header file. */
+#undef HAVE_GRP_H
+
+/* Define to 1 if you have the `heapsort' function. */
+#undef HAVE_HEAPSORT
+
+/* Define to 1 if the system has the type `id_t'. */
+#undef HAVE_ID_T
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `isblank' function. */
+#undef HAVE_ISBLANK
+
+/* Define to 1 if you have the `issetugid' function. */
+#undef HAVE_ISSETUGID
+
+/* Define to 1 if you have the `lchflags' function. */
+#undef HAVE_LCHFLAGS
+
+/* Define to 1 if you have the `lchmod' function. */
+#undef HAVE_LCHMOD
+
+/* Define to 1 if you have the `lchown' function. */
+#undef HAVE_LCHOWN
+
+/* Define to 1 if you have the <libgen.h> header file. */
+#undef HAVE_LIBGEN_H
+
+/* Define to 1 if you have the `regex' library (-lregex). */
+#undef HAVE_LIBREGEX
+
+/* Define to 1 if you have the `z' library (-lz). */
+#undef HAVE_LIBZ
+
+/* Define to 1 if you have the <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
+/* Define to 1 if the system has the type `long long'. */
+#undef HAVE_LONG_LONG
+
+/* Define to 1 if you have the `lutimes' function. */
+#undef HAVE_LUTIMES
+
+/* Define to 1 if you have the <machine/bswap.h> header file. */
Home |
Main Index |
Thread Index |
Old Index