diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-12-19 10:43:14 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-11 17:48:02 +0300 |
commit | 8d333f946e56d813995a6640c6f3256bf2e95dfe (patch) | |
tree | 489c8e03554ec265f6d43c23be22daf5a08ec6f2 | |
parent | 09b68a64a6e99f0cfb9af4b57eedb0390762af57 (diff) | |
download | librpm-tizen-8d333f946e56d813995a6640c6f3256bf2e95dfe.tar.gz librpm-tizen-8d333f946e56d813995a6640c6f3256bf2e95dfe.tar.bz2 librpm-tizen-8d333f946e56d813995a6640c6f3256bf2e95dfe.zip |
Enable building using --with-external-db
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | lib/backend/dbconfig.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index d9bfc673c..d2074fae4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -175,7 +175,7 @@ dist_bin_SCRIPTS = scripts/gendiff bin_PROGRAMS += rpmqpack rpmqpack_SOURCES = rpmqpack.c -rpmqpack_LDADD = lib/librpm.la +rpmqpack_LDADD = lib/librpm.la @WITH_DB_LIB@ rpmconfig_DATA = rpmrc rpmrc: $(top_srcdir)/rpmrc.in diff --git a/configure.ac b/configure.ac index c5b797e5a..8e902f191 100644 --- a/configure.ac +++ b/configure.ac @@ -359,6 +359,7 @@ yes ) ],[ AC_MSG_ERROR([missing required header db.h]) ]) + AC_DEFINE(WITH_EXTERNAL_DB, 1, [Use external db?]) ;; * ) # Fall back to internal db if available if [ test -x db/dist/configure ]; then diff --git a/lib/backend/dbconfig.c b/lib/backend/dbconfig.c index fe7c01e81..446be13f9 100644 --- a/lib/backend/dbconfig.c +++ b/lib/backend/dbconfig.c @@ -71,8 +71,10 @@ static const struct poptOption rdbOptions[] = { NULL, NULL }, { "lockdbfd", 0,POPT_ARG_NONE, &staticdbi.dbi_lockdbfd, 0, NULL, NULL }, +#ifndef WITH_EXTERNAL_DB { "nofsync", 0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_NOFSYNC, NULL, NULL }, +#endif POPT_TABLEEND }; |