+Fri Jun 9 18:01:26 1995 <tytso@rsx-11.mit.edu>
+
+ * aclocal.m4 (CONFIG_RULES): CONFIG_RULES now contains the
+ standardized autoconf macros which all configure.in files
+ will include. Removed WITH_KRB5ROOT, since it's no longer
+ used.
+
+ * configure.in: Remove standardized set of autoconf macros, which
+ are now handled by CONFIG_RULES.
+
Thu Jun 8 17:42:40 1995 <tytso@rsx-11.mit.edu>
* Makefile.in: Remove excess definitions of prefix, exec_prefix,
dnl
dnl look for the top of the tree
dnl
-AC_DEFUN(AC_CONFIG_FRAGMENTS_DEFAULT,
-[AC_CONFIG_FRAGMENTS(. .. ../.. ../../.. ../../../.. ../../../../.. ../../../../../..)])dnl
+AC_DEFUN(AC_CONFIG_FRAGMENTS_DEFAULT, [
+AC_CONFIG_FRAGMENTS(. .. ../.. ../../.. ../../../.. ../../../../.. ../../../../../..)])dnl
dnl
dnl search them looking for the directory named config.
dnl Crude, but it works.
else
ac_postpend=
fi
-AC_PROVIDE([AC_CONFIG_FRAGMENTS_DEFAULT])dnl
])
dnl
dnl
dnl set up buildtop stuff
dnl
define(AC_BUILDTOP,[.])dnl
-define(AC_SET_BUILDTOP,
-[AC_CONFIG_FRAGMENTS_DEFAULT()dnl
+define(AC_SET_BUILDTOP,[dnl
+ifdef([AC_PROVIDE_AC_CONFIG_FRAGMENTS_DEFAULT], ,[AC_CONFIG_FRAGMENTS_DEFAULT()])dnl
AC_SUBST(BUILDTOP)dnl
BUILDTOP=[$]ac_reltopdir
])dnl
SUBDIREOF
])dnl
dnl
-dnl drop in standard configure rebuild rules -- CONFIG_RULES
+dnl drop in standard subdirectory rules
+dnl
+define(DO_SUBDIRS,[
+MAKE_SUBDIRS("making",all)
+MAKE_SUBDIRS("cleaning",clean)
+MAKE_SUBDIRS("installing",install)
+MAKE_SUBDIRS("checking",check)
+])dnl
+dnl
+dnl drop in standard rules for all configure files -- CONFIG_RULES
dnl
define(CONFIG_RULES,[
+AC_SET_BUILDTOP dnl
WITH_CC dnl
+WITH_CCOPTS dnl
WITH_LINKER dnl
WITH_CPPOPTS dnl
+WITH_KRB4 dnl
+WITH_NETLIB dnl
+KRB_INCLUDE dnl
AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
[
SHELL=/bin/sh
fi
)])dnl
dnl
-dnl set $(KRB5ROOT) from --with-krb5-root=value -- WITH_KRB5ROOT
-dnl
-define(WITH_KRB5ROOT,[
-AC_ARG_WITH([krb5-root],
-[ --with-krb5-root=DIR set path for Kerberos V5 config files],
-AC_MSG_RESULT(krb5-root is $withval)
-KRB5ROOT=$withval,
-AC_MSG_RESULT(krb5-root defaults to /krb5)
-KRB5ROOT=/krb5)dnl
-AC_SUBST(KRB5ROOT)])dnl
-dnl
dnl set $(KRB4) from --with-krb4=value -- WITH_KRB4
dnl
define(WITH_KRB4,[
KRB4_LIB=
KDB4_LIB=
else
- ADD_DEF(-DKRB4)
- ADD_DEF(-DBACKWARD_COMPAT)
+ ADD_DEF(-DKRB5_KRB4_COMPAT)
if test $withval = yes; then
AC_MSG_RESULT(built in krb4 support)
KRB4_LIB='$(TOPLIBD)/libkrb4.a $(TOPLIBD)/libdes425.a'
AC_INIT(configure.in)
-WITH_CCOPTS
CONFIG_RULES
-AC_SET_BUILDTOP
AC_MSG_CHECKING([for build host])
AC_CACHE_VAL(krb5_cv_host, [export CC
AC_CANONICAL_HOST
krb5_cv_host=$host])
AC_MSG_RESULT($krb5_cv_host)
-WITH_KRB5ROOT
-WITH_KRB4
-WITH_NETLIB
AC_ARG_ENABLE([shared],
[ --enable-shared build with shared libraries],[
case $krb5_cv_host in
krb524=krb524
fi
CONFIG_DIRS(util include lib kdc admin kadmin $kadminv4 kadmin.old $krb524 slave clients appl tests)
-MAKE_SUBDIRS("making",all)
-MAKE_SUBDIRS("cleaning",clean)
-MAKE_SUBDIRS("installing",install)
-MAKE_SUBDIRS("checking",check)
+DO_SUBDIRS
dnl dnl AC_OUTPUT(Makefile,[EXTRA_RULES])
V5_AC_OUTPUT_MAKEFILE