diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-09-17 14:27:43 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-09-17 14:27:43 +0200 |
commit | 37e6caf2dc1023abcdfc781c2c72c4683e1512f3 (patch) | |
tree | b8c889943b69380dbc67b1f7004d188957a16893 /rpmdb | |
parent | 8c488b95eef3df631bb531dfd886f36c02883669 (diff) | |
download | rpm-37e6caf2dc1023abcdfc781c2c72c4683e1512f3.tar.gz rpm-37e6caf2dc1023abcdfc781c2c72c4683e1512f3.tar.bz2 rpm-37e6caf2dc1023abcdfc781c2c72c4683e1512f3.zip |
Add support for extern BDB.
Diffstat (limited to 'rpmdb')
-rw-r--r-- | rpmdb/Makefile.am | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rpmdb/Makefile.am b/rpmdb/Makefile.am index b312efc99..feeedd5be 100644 --- a/rpmdb/Makefile.am +++ b/rpmdb/Makefile.am @@ -40,8 +40,12 @@ librpmdb_la_LIBADD = \ @WITH_BEECRYPT_LIB@ \ @WITH_POPT_LIB@ \ @WITH_SQLITE3_LIB@ \ - @WITH_LIBELF_LIB@ \ - $(libdb_la) + @WITH_LIBELF_LIB@ +if WITH_INTERNAL_DB +librpmdb_la_LIBADD += $(libdb_la) +else +librpmdb_la_LIBADD += @WITH_DB_LIB@ +endif tagtbl.c: Makefile.am $(top_srcdir)/lib/rpmlib.h @echo '#include "system.h"' > $@ @@ -58,6 +62,7 @@ tagtbl.c: Makefile.am $(top_srcdir)/lib/rpmlib.h @echo 'const int rpmTagTableSize = sizeof(rpmTagTbl) / sizeof(rpmTagTbl[0]) - 1;' >> $@ BUILT_SOURCES = tagtbl.c +if WITH_INTERNAL_DB nodist_pkginc_HEADERS = db.h db.h: ../$(WITH_DB_SUBDIR)/db.h @@ -171,6 +176,7 @@ rpmdb_verify_LDADD = \ $(top_builddir)/$(WITH_DB_SUBDIR)/util_cache.o \ $(top_builddir)/$(WITH_DB_SUBDIR)/util_sig.o \ librpmdb.la +endif check_PROGRAMS += tdbi tdbi_SOURCES = tdbi.c |