From 37bbec7a90e42ceafa58bc5d1fe96fdbf5c02b4e Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 30 Apr 1996 21:17:46 +0000 Subject: [PATCH] * configure.in: Invoke AC_C_CROSS before AC_TRY_RUN to pretty up output format * Makefile.in (autoconf.h): Use timestamp file to prevent repeated rebuilding if file timestamp is out of date but contents wouldn't change. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7872 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/ChangeLog | 9 +++++++++ src/include/krb5/Makefile.in | 10 +++++++--- src/include/krb5/configure.in | 1 + 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog index e13279264..772c2b448 100644 --- a/src/include/krb5/ChangeLog +++ b/src/include/krb5/ChangeLog @@ -1,3 +1,12 @@ +Tue Apr 30 17:15:57 1996 Ken Raeburn + + * configure.in: Invoke AC_C_CROSS before AC_TRY_RUN to pretty up + output format. + + * Makefile.in (autoconf.h): Use timestamp file to prevent repeated + rebuilding if file timestamp is out of date but contents wouldn't + change. + Tue Apr 30 15:03:34 1996 Theodore Y. Ts'o * macsock.h: Added prototype for getpeername(). diff --git a/src/include/krb5/Makefile.in b/src/include/krb5/Makefile.in index 8734a1797..4ab14e0b1 100644 --- a/src/include/krb5/Makefile.in +++ b/src/include/krb5/Makefile.in @@ -15,8 +15,12 @@ all-windows: copy stock\osconf.h osconf.h echo /* not used in windows */ > autoconf.h -autoconf.h: $(srcdir)/autoconf.h.in config.status +# Should only rebuild autoconf.h here (use CONFIG_FILES=), but the weird krb5 +# makefile post-processing is unconditional and would trash the makefile. +autoconf.h: autoconf.stamp +autoconf.stamp: $(srcdir)/autoconf.h.in config.status $(SHELL) config.status + touch autoconf.stamp depend:: @@ -33,10 +37,10 @@ osconf.h: $(OSCONFSRC) @if cmp -s osconf.new osconf.h ; then :; \ else (set -x; $(RM) osconf.h ; $(CP) osconf.new osconf.h; $(RM) osconf.new) fi -clean:: +clean:: $(RM) osconf.new $(BUILT_HEADERS) clean-unix:: - $(RM) $(ET_HEADERS) autoconf.h + $(RM) $(ET_HEADERS) autoconf.h autoconf.stamp clean-mac:: clean-windows:: diff --git a/src/include/krb5/configure.in b/src/include/krb5/configure.in index c5693459e..a09c744a4 100644 --- a/src/include/krb5/configure.in +++ b/src/include/krb5/configure.in @@ -35,6 +35,7 @@ AC_CHECK_HEADERS(xom.h) AC_FUNC_CHECK([setvbuf],AC_DEFINE(HAS_SETVBUF)) dnl check for ANSI stdio, esp "b" option to fopen(). This (unfortunately) dnl requires a run check... +AC_C_CROSS AC_MSG_CHECKING([for ANSI stdio]) AC_CACHE_VAL(krb5_cv_has_ansi_stdio, [AC_TRY_RUN( -- 2.26.2