]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Make sure mysql libs/cflags aren't used if they don't work.
authorTimo Sirainen <tss@iki.fi>
Tue, 20 Jul 2010 19:23:20 +0000 (20:23 +0100)
committerTimo Sirainen <tss@iki.fi>
Tue, 20 Jul 2010 19:23:20 +0000 (20:23 +0100)
configure.in

index 66bf0cb811e6114b03725fdad5201e93236375da..292655a196adad365a6403bb7fc93b8ee31793b1 100644 (file)
@@ -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