normal dbm support for compatibility.
* Makefile.in (DBFLAGS): variable to hold substitution of flags to
enable Berkeley db support.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6199
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Jun 29 06:54:00 1995 Mark Eichin <eichin@cygnus.com>
+
+ * configure.in (--with-dbm): new option, allows easy building of
+ normal dbm support for compatibility.
+ * Makefile.in (DBFLAGS): variable to hold substitution of flags to
+ enable Berkeley db support.
Thu Jun 22 11:59:28 EDT 1995 Paul Park (pjpark@mit.edu)
* kdb_dbm.c - Replace static kdb context with context which is attached
-CFLAGS = $(CCOPTS) $(DEFS) -DBERK_DB_DBM
+DBFLAGS=@DBFLAGS@
+CFLAGS = $(CCOPTS) $(DEFS) $(DBFLAGS)
LDFLAGS = -g
LIB_SUBDIRS= $(BUILDTOP)/util/berk_db/hash
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_HAVE_HEADERS(unistd.h)
+AC_ARG_WITH([dbm],
+[ --with-dbm use native dbm for kdc database
+ --without-dbm use included version of Berkeley db (default)],
+,
+withval=no)dnl
+if test "$withval" = yes; then
+ AC_MSG_RESULT(Using native dbm)
+ DBFLAGS=
+else
+ AC_MSG_RESULT(Using Berkeley db)
+ DBFLAGS=-DBERK_DB_DBM
+fi
+AC_SUBST(DBFLAGS)dnl
+dnl
V5_USE_SHARED_LIB
AC_CHECK_FUNCS(srand48 srand srandom umask)
LinkFileDir(../libkdb5.a, libkdb5.a, ./kdb)