Add HAVE_SQLITE3 that allows control if you want sqlite or not

This commit is contained in:
Love Hornquist Astrand
2011-04-16 10:26:43 -07:00
parent 4244f13866
commit 7a4d4c5f4e
2 changed files with 4 additions and 0 deletions

View File

@@ -172,6 +172,8 @@ if test "X$with_sqlite3" != Xyes ; then
fi
AM_CONDITIONAL(SQLITE3, test "X$with_sqlite3" = Xyes)
AC_DEFINE(HAVE_SQLITE3, 1, [Define if you want support for sqlite in Heimdal.])
AC_ARG_ENABLE(sqlite-cache,
AS_HELP_STRING([--disable-sqlite-cache],[if you want support for cache in sqlite]))
if test "$enable_sqlite_cache" != no; then

View File

@@ -78,7 +78,9 @@ static struct hdb_method methods[] = {
{ HDB_INTERFACE_VERSION, "ldap:", hdb_ldap_create},
{ HDB_INTERFACE_VERSION, "ldapi:", hdb_ldapi_create},
#endif
#ifdef HAVE_SQLITE3
{ HDB_INTERFACE_VERSION, "sqlite:", hdb_sqlite_create},
#endif
{0, NULL, NULL}
};