Add --with-dbm check
authorPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:35:53 +0000 (19:35 +0000)
committerPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:35:53 +0000 (19:35 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6331 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/convert/ChangeLog
src/admin/convert/configure.in
src/admin/edit/ChangeLog
src/admin/edit/configure.in

index 02b81707f41f6f610c60374594f0035420e372c1..29319bbe71ffde654a1ac2471e995ebffd107850 100644 (file)
@@ -1,4 +1,8 @@
 
+Thu Jul 27 14:59:53 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * configure.in - Add --with-dbm and check for already checking for dbm.
+
+
 Mon Jul 17 14:55:58 EDT 1995   Paul Park       (pjpark@mit.edu)
        * configure.in - Add KADM library.
        * kdb5_convert.c - Change calling sequence to krb5_db_fetch_mkey(),
index 444d81d74d6a0e71e02591608157e3aa17a6ca97..248acf5b0d5d7b587b33045cf71bc952d672194b 100644 (file)
@@ -1,6 +1,7 @@
 AC_INIT(kdb5_convert.c)
 CONFIG_RULES
 AC_PROG_INSTALL
+did_dbm_lib=no
 AC_ARG_WITH([kdb4],
 [  --with-kdb4         use Kerberos version 4 database library.
   --without-kdb4       Avoid using Kerberos version 4 database library.],
@@ -11,9 +12,26 @@ if test "$withval" = yes; then
        USE_KDB4_LIBRARY
        AC_CHECK_LIB(ndbm,main)
        AC_CHECK_LIB(dbm,main)
+       did_dbm_lib=yes
 else
        AC_DEFINE(KDB4_DISABLE)
 fi
+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)
+       if test "$did_dbm_lib" = no; then
+               AC_CHECK_LIB(ndbm,main)
+               AC_CHECK_LIB(dbm,main)
+       fi
+else
+       AC_MSG_RESULT(Using Berkeley db)
+fi
+AC_SUBST(DBFLAGS)dnl
+dnl
 USE_KADM_LIBRARY
 USE_KDB5_LIBRARY
 USE_KRB4_LIBRARY
index ead9c84c0b8bd1900ac94bf6a3ca80f15c17f580..86826abfc95d3316886f5577749f8d1c07e44a4a 100644 (file)
@@ -1,4 +1,8 @@
 
+Thu Jul 27 15:01:01 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * configure.in - Add --with-dbm and check for already checking for dbm.
+
+
 Thu Jul 27 02:59:05 1995   Chris Provenzano (proven@mit.edu)
 
         * dump.c kdb5_edit.c kdb5_edit.h util.c : Use new kdb format.
index 208b6fba84b860071b988c52a44630f6648b84b2..89ef9e1e8c93139321d11517145eaa48021b93f3 100644 (file)
@@ -8,6 +8,7 @@ AC_CONST
 AC_HEADER_STDC
 AC_HAVE_FUNCS(getcwd)
 SS_RULES
+edit_dbm_done=no
 AC_ARG_WITH([kdb4],
 [  --with-kdb4         use Kerberos version 4 database library.
   --without-kdb4       Avoid using Kerberos version 4 database library.],
@@ -18,9 +19,26 @@ if test "$withval" = yes; then
        USE_KDB4_LIBRARY
        AC_CHECK_LIB(ndbm,main)
        AC_CHECK_LIB(dbm,main)
+       edit_dbm_done=yes
 else
        AC_DEFINE(KDB4_DISABLE)
 fi
+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)
+       if test "$edit_dbm_done" = no; then
+               AC_CHECK_LIB(ndbm,main)
+               AC_CHECK_LIB(dbm,main)
+       fi
+else
+       AC_MSG_RESULT(Using Berkeley db)
+fi
+AC_SUBST(DBFLAGS)dnl
+dnl
 USE_KADM_LIBRARY
 USE_KDB5_LIBRARY
 USE_KRB4_LIBRARY