Prefer BDB3/4/5 to BDB1/2
This commit is contained in:

committed by
Viktor Dukhovni

parent
afead1717c
commit
033001e732
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include "hdb_locl.h"
|
#include "hdb_locl.h"
|
||||||
|
|
||||||
#if HAVE_DB1
|
#if defined(HAVE_DB1) && !defined(HAVE_DB3)
|
||||||
|
|
||||||
#if defined(HAVE_DB_185_H)
|
#if defined(HAVE_DB_185_H)
|
||||||
#include <db_185.h>
|
#include <db_185.h>
|
||||||
@@ -376,4 +376,4 @@ hdb_db_create(krb5_context context, HDB **db,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_DB1 */
|
#endif /* defined(HAVE_DB1) && !defined(HAVE_DB3) */
|
||||||
|
@@ -19,14 +19,14 @@ lib_LTLIBRARIES = libotp.la
|
|||||||
libotp_la_LDFLAGS = -version-info 1:5:1
|
libotp_la_LDFLAGS = -version-info 1:5:1
|
||||||
libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken)
|
libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken)
|
||||||
|
|
||||||
if HAVE_DB1
|
|
||||||
ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
|
|
||||||
libotp_la_LIBADD += $(DB1LIB)
|
|
||||||
else
|
|
||||||
if HAVE_DB3
|
if HAVE_DB3
|
||||||
ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
|
ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
|
||||||
libotp_la_LIBADD += $(DB3LIB)
|
libotp_la_LIBADD += $(DB3LIB)
|
||||||
else
|
else
|
||||||
|
if HAVE_DB1
|
||||||
|
ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
|
||||||
|
libotp_la_LIBADD += $(DB1LIB)
|
||||||
|
else
|
||||||
ndbm_wrap =
|
ndbm_wrap =
|
||||||
libotp_la_LIBADD += $(NDBMLIB)
|
libotp_la_LIBADD += $(NDBMLIB)
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user