if we are using db1 or db3 (really 3,4,5), when we will need LIB_db_create, otherwise use LIB_NDBM

This commit is contained in:
Love Hörnquist Åstrand
2011-06-19 11:20:48 -07:00
parent 5a25df7851
commit 45b9139cc4

View File

@@ -14,15 +14,18 @@ include_HEADERS = otp.h
lib_LTLIBRARIES = libotp.la
libotp_la_LDFLAGS = -version-info 1:5:1
libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken) $(LIB_NDBM)
libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken)
if HAVE_DB1
ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
libotp_la_LIBADD += $(LIB_db_create)
else
if HAVE_DB3
ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
libotp_la_LIBADD += $(LIB_db_create)
else
ndbm_wrap =
libotp_la_LIBADD += $(LIB_NDBM)
endif
endif