From de65b5f9343461402846dce7eeeecae80dd0817d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 25 Apr 2003 03:09:57 +0000 Subject: [PATCH] Require only autoconf 2.52. Try --include argument to autoconf and autoheader, and if the command fails, try it again with --localdir; don't tie it to some previously used version of autoconf. ticket: 1242 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15370 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 4 ++++ src/aclocal.m4 | 3 +-- src/config/ChangeLog | 5 +++++ src/config/post.in | 3 ++- src/include/ChangeLog | 6 ++++++ src/include/Makefile.in | 2 +- 6 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c389fcf2d..c87b8fa99 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-04-24 Ken Raeburn + + * aclocal.m4: Require autoconf 2.52 only. + 2003-04-23 Ken Raeburn * aclocal.m4: Require autoconf 2.53. diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 68a0461f9..1a7c11b3c 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1,5 +1,4 @@ -AC_PREREQ(2.53) -dnl 2.53 needed so we don't have to worry about using --localdir +AC_PREREQ(2.52) AC_COPYRIGHT([Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Massachusetts Institute of Technology. ]) diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 21bc14adc..28192ddc3 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,8 @@ +2003-04-24 Ken Raeburn + + * post.in (configure): Try running autoconf with --include, and if + that doesn't work, try --localdir. Don't use AUTOCONFINCFLAGS. + 2003-04-01 Tom Yu * pre.in (KDB5_DEPLIBS): Don't depend on $(DB_DEPLIB) anymore. diff --git a/src/config/post.in b/src/config/post.in index 2c49dd304..0a14ce852 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -149,7 +149,8 @@ $(srcdir)/$(thisconfigdir)/configure: $(srcdir)/$(thisconfigdir)/configure.in \ $(SRCTOP)/aclocal.m4 -$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache cd $(srcdir)/$(thisconfigdir) && \ - $(AUTOCONF) ${AUTOCONFINCFLAGS}=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS) + ($(AUTOCONF) --include=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS) || \ + $(AUTOCONF) --localdir=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS)) -$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache RECURSE_TARGETS=all-recurse clean-recurse distclean-recurse install-recurse \ diff --git a/src/include/ChangeLog b/src/include/ChangeLog index fea9e3ee1..85f892024 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2003-04-24 Ken Raeburn + + * Makefile.in ($(srcdir)/krb5/autoconf.stmp): Try running + autoheader with --include, and if that doesn't work, try + --localdir. + 2003-04-07 Ken Raeburn * fake-addrinfo.h (getaddrinfo) [NUMERIC_SERVICE_BROKEN]: diff --git a/src/include/Makefile.in b/src/include/Makefile.in index df810299f..c3f873a05 100644 --- a/src/include/Makefile.in +++ b/src/include/Makefile.in @@ -28,7 +28,7 @@ krb5/autoconf.h: $(srcdir)/krb5/autoconf.h.in (cd krb5; $(MAKE) autoconf.h) $(srcdir)/krb5/autoconf.h.in: $(srcdir)/krb5/autoconf.stmp $(srcdir)/krb5/autoconf.stmp: $(srcdir)/configure.in - cd $(srcdir) && $(AUTOHEADER) --localdir=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS) + cd $(srcdir) && ($(AUTOHEADER) --include=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS) || $(AUTOHEADER) --localdir=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS)) touch $(srcdir)/krb5/autoconf.stmp krb5.h: krb5/autoconf.h $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h \ -- 2.26.2