Don't gratuitously touch the replacement headers in ${.OBJDIR}/include;

instead, touch them only if they're changed.
This commit is contained in:
tv 2002-03-07 22:48:07 +00:00
parent fa8abf3083
commit d29f17612e
2 changed files with 299 additions and 286 deletions

572
tools/compat/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
# $NetBSD: configure.ac,v 1.10 2002/03/07 19:18:25 tv Exp $
# $NetBSD: configure.ac,v 1.11 2002/03/07 22:48:07 tv Exp $
#
# Autoconf definition file for libnbcompat.
#
@ -32,9 +32,16 @@ AC_CHECK_HEADERS(sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
AC_HEADER_DIRENT
AC_CHECK_HEADERS(sys/sysmacros.h sys/syslimits.h features.h malloc.h stddef.h stdint.h)
AC_CHECK_HEADERS(machine/bswap.h sys/cdefs.h sys/featuretest.h \
err.h inttypes.h libgen.h paths.h util.h,, [touch include/$ac_header])
err.h inttypes.h libgen.h paths.h util.h,,
[test -f include/$ac_header || touch include/$ac_header])
AC_CHECK_HEADERS(rpc/types.h fts.h getopt.h netconfig.h vis.h,,
[echo '#include "'$srcdir/../../include/$ac_header'"' >include/$ac_header])
[echo '#include "config.h"' >include/$ac_header.new
echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
rm -f include/$ac_header.new
else
mv -f include/$ac_header.new include/$ac_header
fi])
# Typedefs.
AC_TYPE_SIZE_T