include/krb5/autoconf.h.in and */configure if it's not enabled. Anything else
we should only rebuild in maintainer mode?
* aclocal.m4 (KRB5_AC_MAINTAINER_MODE): New macro.
(CONFIG_RULES): Invoke it.
* config/post.in (configure): Make configure depend on configure.in and
aclocal.m4 only if maintainer mode is enabled.
* include/Makefile.in ($(srcdir)/krb5/autoconf.h.in): Depend on autoconf.stmp
only if maintainer mode is enabled.
ticket: 1588
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15825
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-09-26 Ken Raeburn <raeburn@mit.edu>
+
+ * aclocal.m4 (KRB5_AC_MAINTAINER_MODE): New macro.
+ (CONFIG_RULES): Invoke it.
+
2003-08-29 Ken Raeburn <raeburn@mit.edu>
* aclocal.m4 (KRB5_AC_NEED_DAEMON): New macro.
AC_C_CONST dnl
WITH_NETLIB dnl
WITH_HESIOD dnl
+KRB5_AC_MAINTAINER_MODE dnl
AC_ARG_PROGRAM dnl
dnl
dnl This selects the correct autoconf file; either the one in our source tree,
AC_SUBST_FILE(libobj_frag)
])dnl
+dnl Maintainer mode, akin to what automake provides, 'cept we don't
+dnl want to use automake right now.
+AC_DEFUN([KRB5_AC_MAINTAINER_MODE],
+[AC_ARG_ENABLE([maintainer-mode],
+[ --enable-maintainer-mode
+ enable rebuilding of source files etc],
+USE_MAINTAINER_MODE=$enableval,
+USE_MAINTAINER_MODE=no)
+if test "$USE_MAINTAINER_MODE" = yes; then
+ MAINTAINER_MODE_TRUE=
+ MAINTAINER_MODE_FALSE='#'
+ AC_MSG_NOTICE(enabling maintainer mode)
+else
+ MAINTAINER_MODE_TRUE='#'
+ MAINTAINER_MODE_FALSE=
+fi
+MAINT=$MAINTAINER_MODE_TRUE
+AC_SUBST(MAINTAINER_MODE_TRUE)
+AC_SUBST(MAINTAINER_MODE_FALSE)
+AC_SUBST(MAINT)
+])
+
dnl This is somewhat gross and should go away when the build system
dnl is revamped. -- tlyu
dnl DECLARE_SYS_ERRLIST - check for sys_errlist in libc
+2003-09-26 Ken Raeburn <raeburn@mit.edu>
+
+ * post.in (configure): Make configure depend on configure.in and
+ aclocal.m4 only if maintainer mode is enabled.
+
2003-09-13 Ken Raeburn <raeburn@mit.edu>
* shlib.conf (*-*-linux*): Use $(CC) for linking shared libraries,
cd $(thisconfigdir) && $(SHELL) config.status $(mydir)/Makefile
$(thisconfigdir)/config.status: $(srcdir)/$(thisconfigdir)/configure
cd $(thisconfigdir) && $(SHELL) config.status --recheck
-$(srcdir)/$(thisconfigdir)/configure: $(srcdir)/$(thisconfigdir)/configure.in \
+$(srcdir)/$(thisconfigdir)/configure: @MAINT@ $(srcdir)/$(thisconfigdir)/configure.in \
$(SRCTOP)/aclocal.m4
-$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
cd $(srcdir)/$(thisconfigdir) && \
+2003-09-26 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in ($(srcdir)/krb5/autoconf.h.in): Depend on
+ autoconf.stmp only if maintainer mode is enabled.
+
2003-09-12 Ken Raeburn <raeburn@mit.edu>
* configure.in: Check for setsid() and <paths.h>.
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.h.in: @MAINT@ $(srcdir)/krb5/autoconf.stmp
$(srcdir)/krb5/autoconf.stmp: $(srcdir)/configure.in
cd $(srcdir) && ($(AUTOHEADER) --include=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS) || $(AUTOHEADER) --localdir=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS))
touch $(srcdir)/krb5/autoconf.stmp