diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
commit | 0441d265f2bb9da249c7abf333f0f771fadb4ab5 (patch) | |
tree | 3f3789daa2f6db22da6e55e92bee0062a7d613fe /m4/sql.m4 | |
parent | Initial commit. (diff) | |
download | dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.tar.xz dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.zip |
Adding upstream version 1:2.3.21+dfsg1.upstream/1%2.3.21+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'm4/sql.m4')
-rw-r--r-- | m4/sql.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/sql.m4 b/m4/sql.m4 new file mode 100644 index 0000000..3a8b67e --- /dev/null +++ b/m4/sql.m4 @@ -0,0 +1,23 @@ +AC_DEFUN([DOVECOT_SQL], [ + SQL_CFLAGS="$MYSQL_CFLAGS $PGSQL_CFLAGS $SQLITE_CFLAGS $CASSANDRA_CFLAGS" + if test "$want_sql" != "plugin"; then + SQL_LIBS="$MYSQL_LIBS $PGSQL_LIBS $SQLITE_LIBS $CASSANDRA_LIBS" + else + AC_DEFINE(SQL_DRIVER_PLUGINS,, [Build SQL drivers as plugins]) + fi + sql_drivers= + not_sql_drivers= + + if test "$found_sql_drivers" != "" || test "$want_sql" != "no"; then + sql_drivers="$found_sql_drivers" + + AC_DEFINE(PASSDB_SQL,, [Build with SQL support]) + AC_DEFINE(USERDB_SQL,, [Build with SQL support]) + AUTH_LIBS="$AUTH_LIBS $SQL_LIBS" + passdb="$passdb sql" + userdb="$userdb sql" + else + not_passdb="$not_passdb sql" + not_userdb="$not_userdb sql" + fi +]) |