]> granicus.if.org Git - neomutt/commitdiff
Don't abort configure if --without-sasl is given without any network
authorUnknown <exg@gentoo.org>
Mon, 24 Apr 2006 19:59:07 +0000 (19:59 +0000)
committerUnknown <exg@gentoo.org>
Mon, 24 Apr 2006 19:59:07 +0000 (19:59 +0000)
options. Gentoo's build scripts seem to generate this configuration.

configure.in

index 65f1f9ec4b1e63ae703dc159511ae495e07631a0..c01bbe83c34a2852a0644b63274621ddc8a078e4 100644 (file)
@@ -618,14 +618,14 @@ fi
 AM_CONDITIONAL(USE_SSL, test x$need_ssl = xyes)
 
 AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl[=PFX]], [Use Cyrus SASL 2 network security library]),
-        [
-        if test "$need_socket" != "yes"
-        then
-          AC_MSG_ERROR([SASL support is only useful with POP or IMAP support])
-        fi
-
+        [      
         if test "$with_sasl" != "no"
         then
+          if test "$need_socket" != "yes"
+          then
+            AC_MSG_ERROR([SASL support is only useful with POP or IMAP support])
+          fi
+
           if test "$with_sasl" != "yes"
           then
             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"