summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-06-09 22:12:59 +0000
committerTheodore Tso <tytso@mit.edu>1995-06-09 22:12:59 +0000
commit96ec51b134e3fefd63d41ea114bd1c4138ec6086 (patch)
tree8b7d4c8fdea1aa3a49e5316f87015b401b8bb593
parent8b348ca19dca3535fdaf1998a0ea253284f56bfb (diff)
downloadkrb5-96ec51b134e3fefd63d41ea114bd1c4138ec6086.tar.gz
krb5-96ec51b134e3fefd63d41ea114bd1c4138ec6086.tar.xz
krb5-96ec51b134e3fefd63d41ea114bd1c4138ec6086.zip
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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6001 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/ChangeLog10
-rw-r--r--src/aclocal.m439
-rw-r--r--src/configure.in10
3 files changed, 31 insertions, 28 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0931f1c75..ae87b12d5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
+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,
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 993288f0f..0aa0c6eb9 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -17,8 +17,8 @@ AC_DIVERT_POP()dnl
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.
@@ -50,15 +50,14 @@ fi
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
@@ -137,12 +136,26 @@ undivert(AC_DIVERSION_MAKEFILE)
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
@@ -307,17 +320,6 @@ if test $krb5_cv_struct_sigjmp_buf = yes; then
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,[
@@ -333,8 +335,7 @@ if test $withval = no; then
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'
diff --git a/src/configure.in b/src/configure.in
index 12d72b1db..d2b0786fb 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,15 +1,10 @@
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
@@ -53,9 +48,6 @@ kadminv4=kadmin.v4
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