Do the right thing if we are compiling without V4 support. (The
authorTheodore Tso <tytso@mit.edu>
Mon, 19 Dec 1994 23:07:39 +0000 (23:07 +0000)
committerTheodore Tso <tytso@mit.edu>
Mon, 19 Dec 1994 23:07:39 +0000 (23:07 +0000)
dump_v4db command is disabled.)

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

src/admin/edit/ChangeLog
src/admin/edit/Makefile.in
src/admin/edit/configure.in
src/admin/edit/dumpv4.c

index c1516e9f38be4627e3061ce40e18a6e841247fbc..c7049b1087251b542be8412db092890ba0c7970c 100644 (file)
@@ -1,3 +1,10 @@
+Mon Dec 19 18:04:11 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * configure.in:
+       * Makefile.in:
+       * dumpv4.c (dump_v4db): Do the right thing if we are compiling
+               without V4 support.  (The dump_v4db command is disabled.)
+
 Wed Dec  7 00:07:46 1994    <tytso@rsx-11.mit.edu>
 
        * dumpv4.c (v4_print_time): gmtime expects a pointer to a time_t,
index 65c84dc7f877bd52e833026e4f85dfe3a1f9c061..335092337ae0e1269b1669c0199d3762afa727c6 100644 (file)
@@ -9,8 +9,7 @@ DBMLIB=
 KDBLIB=$(TOPLIBD)/libkdb5.a 
 DEPKDBLIB=$(TOPLIBD)/libkdb5.a 
 
-KDB4LIB=$(KRB4)/lib/libkdb.a
-KRB4LIB=$(KRB4)/lib/libkrb.a $(TOPLIBD)/libdes425.a
+K4LIB=@K4LIB@
 
 all::
 
@@ -19,7 +18,7 @@ DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(SSLIB) $(COMERRLIB) $(DB
 
 
 DEPLIBS = $(DEPKDBLIB) $(DEPKLIB)
-LOCAL_LIBRARIES = $(KDBLIB) $(KLIB) $(KDB4LIB) $(KRB4LIB)
+LOCAL_LIBRARIES = $(KDBLIB) $(KLIB) $(K4LIB)
 LOCALINCLUDE=-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV
 
 OBJS= kdb5_edit.o kdb5_ed_ct.o util.o dump.o dumpv4.o ss_wrapper.o
index d3a3cbc8141e68455262a4fa680177d09073bb23..73d33b82834ebaf7a54fa2619eb5b0387b02656a 100644 (file)
@@ -12,5 +12,12 @@ SS_RULES
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB4
+AC_ARG_WITH([krb4],
+[  --with-krb4=KRB4DIR     build with Kerberos V4 backwards compatibility],
+ADD_DEF(-DKRB4)
+K4LIB='$(KRB4)/lib/libkdb.a $(KRB4)/lib/libkrb.a $(KRB4)/lib/libdes.a',
+echo "warning: no krb4 backwards compatibility support"
+K4LIB=)
+AC_SUBST(K4LIB)
 WITH_KRB5ROOT
 V5_AC_OUTPUT_MAKEFILE
index f31c5bce77098a45b11e4bb516a490b640cafbe8..c542603b6f7cbe241b23f157e4778df76b6dd113 100644 (file)
@@ -24,6 +24,8 @@
  * Dump a KDC database into a V4 slave dump.
  */
 
+#ifdef KRB4
+
 #include <des.h>
 #include <krb.h>
 #include <krb_db.h>
@@ -364,3 +366,12 @@ handle_one_key(arg, v5master, v5key, v4key)
 
     return 0;
 }
+
+#else /* KRB4 */
+void dump_v4db(argc, argv)
+       int     argc;
+       char    **argv;
+{
+       printf("This version of krb5_edit does not support the V4 dump command.\n");
+}
+#endif /* KRB4 */