Dirty hack to determine BDB .la name automatically
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Jan 2008 15:50:25 +0000 (17:50 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Jan 2008 15:50:25 +0000 (17:50 +0200)
rpmdb/Makefile.am

index 5260a37..3df98ac 100644 (file)
@@ -58,9 +58,12 @@ if WITH_INTERNAL_DB
 libdb_la = $(top_builddir)/db3/libdb.la
 
 # XXX grrr, force noinst libdb.la for db3.
-$(libdb_la): $(top_builddir)/db3/libdb-4.6.la
+# there are more reliable ways to get the BDB version info, just a dirty
+# hack for now...
+BDBVER = $(shell grep ^LIBVERSION $(top_builddir)/db3/Makefile|cut -f2)
+$(libdb_la): $(top_builddir)/db3/libdb-$(BDBVER).la
        sed -e"/^libdir=/s/^.*$$/libdir=''/" \
-         < $(top_builddir)/db3/libdb-4.6.la > $(libdb_la)
+         < $(top_builddir)/db3/libdb-$(BDBVER).la > $(libdb_la)
 CLEANFILES += $(libdb_la)
 
 rpmlibexec_PROGRAMS =