From: Timo Sirainen Date: Tue, 20 Jul 2010 19:23:20 +0000 (+0100) Subject: configure: Make sure mysql libs/cflags aren't used if they don't work. X-Git-Tag: 2.0.rc3~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c5214a452442cfffed0439f6e85cdae425a4317;p=thirdparty%2Fdovecot%2Fcore.git configure: Make sure mysql libs/cflags aren't used if they don't work. --- diff --git a/configure.in b/configure.in index 66bf0cb811..292655a196 100644 --- a/configure.in +++ b/configure.in @@ -2142,6 +2142,7 @@ if test $want_pgsql != no; then LIBS=$old_LIBS fi +have_mysql=no if test $want_mysql != no; then AC_CHECK_PROG(MYSQL_CONFIG, mysql_config, YES, NO) if test $MYSQL_CONFIG = NO; then @@ -2197,6 +2198,7 @@ if test $want_mysql != no; then ]) ]) + have_mysql=yes AC_DEFINE(HAVE_MYSQL,, Build with MySQL support) found_sql_drivers="$found_sql_drivers mysql" ], [ @@ -2211,6 +2213,10 @@ if test $want_mysql != no; then fi ]) + if test $have_mysql != yes; then + MYSQL_LIBS= + MYSQL_CFLAGS= + fi LIBS=$old_LIBS fi