* aclocal.m4 (WITH_KRB4): make --with-krb4 the default, and have
authorMark Eichin <eichin@mit.edu>
Thu, 27 Apr 1995 19:21:01 +0000 (19:21 +0000)
committerMark Eichin <eichin@mit.edu>
Thu, 27 Apr 1995 19:21:01 +0000 (19:21 +0000)
it use the included krb4 directories. If a pathname is given, use
them instead. To disable krb4 support, use --without-krb4.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5555 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 2470ea787ad6272dc9fdb6e990445cac1fab486b..fe09a3c876b3bb56dc701f7b1af103c8e5ce8151 100644 (file)
@@ -1,3 +1,9 @@
+Thu Apr 27 15:19:34 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * aclocal.m4 (WITH_KRB4): make --with-krb4 the default, and have
+       it use the included krb4 directories. If a pathname is given, use
+       them instead. To disable krb4 support, use --without-krb4.
+
 Wed Apr 27 11:00:00 1995 Keith Vetter (keithv@fusion.com)
 
        * Makefile.in: added stuff for new directory: util/profile. This
index 32ed370e9e4b19ec63d2749a770ba2e49d2adf49..9662eab57585049de1c486265dd3dd3600088eca 100644 (file)
@@ -322,12 +322,32 @@ dnl set $(KRB4) from --with-krb4=value -- WITH_KRB4
 dnl
 define(WITH_KRB4,[
 AC_ARG_WITH([krb4],
-[  --with-krb4=KRB4DIR     build with Kerberos V4 backwards compatibility],
-AC_MSG_RESULT(krb4 is $withval)
-KRB4=$withval,
-AC_MSG_RESULT(no krb4 support; use --with-krb4=krb4dir)
-KRB4=)dnl
-AC_SUBST(KRB4)])dnl
+[  --without-krb4          don't include Kerberos V4 backwards compatibility
+   --with-krb4             use V4 libraries included with V5 (default)
+   --with-krb4=KRB4DIR     use preinstalled V4 libraries],
+,
+withval=yes
+)dnl
+if test $withval = no; then
+       AC_MSG_RESULT(no krb4 support)
+       KRB4_LIB=
+       KDB4_LIB=
+else 
+ ADD_DEF(-DKRB4)
+ ADD_DEF(-DBACKWARD_COMPAT)
+ if test $withval = yes; then
+       AC_MSG_RESULT(built in krb4 support)
+       KRB4_LIB='$(TOPLIBD)/libkrb4.a $(TOPLIBD)/libdes425.a'
+       KDB4_LIB='$(TOPLIBD)/libkdb4.a'
+ else
+       AC_MSG_RESULT(preinstalled krb4 in $withval)
+       KRB4_LIB='$(withval)/lib/libkrb.a $(TOPLIBD)/libdes425.a'
+       KDB4_LIB='$(withval)/libkdb.a'
+ fi
+fi
+AC_SUBST(KRB4_LIB)
+AC_SUBST(KDB4_LIB)
+])dnl
 dnl
 dnl set $(CC) from --with-cc=value
 dnl
@@ -623,6 +643,6 @@ AC_CACHE_VAL(krb5_cv_has_ansi_volatile,
 krb5_cv_has_ansi_volatile=yes, krb5_cv_has_ansi_volatile=no)])
 AC_MSG_RESULT($krb5_cv_has_ansi_volatile)
 if test $krb5_cv_has_ansi_volatile = no; then
-AC_DEFINE([volatile=])
+ADD_DEF(-Dvolatile=)
 fi
 ])dnl