]> granicus.if.org Git - mutt/commitdiff
OpenSolaris sasl fix for configure.ac
authorWill Fiveash <Will.Fiveash@Sun.COM>
Mon, 8 Mar 2010 20:04:23 +0000 (14:04 -0600)
committerWill Fiveash <Will.Fiveash@Sun.COM>
Mon, 8 Mar 2010 20:04:23 +0000 (14:04 -0600)
configure.ac

index 60d5757d581a91d615522ba22bd4a16de6719133..24f2cb0a5b7d7cbe99d4afd022debaf755df08e1 100644 (file)
@@ -718,7 +718,7 @@ 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]),
+AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl@<:@=PFX@:>@], [Use SASL network security library]),
         [      
         if test "$with_sasl" != "no"
         then
@@ -734,15 +734,18 @@ AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl@<:@=PFX@:>@], [Use Cyrus SASL 2 ne
           fi
 
           saved_LIBS="$LIBS"
+          LIBS=
 
-          AC_CHECK_LIB(sasl2, sasl_client_init,,
-            AC_MSG_ERROR([could not find libsasl2]),)
+          sasl_libs="sasl2 sasl"
+          AC_SEARCH_LIBS(sasl_encode64, [$sasl_libs],,
+                  AC_MSG_ERROR([could not find sasl lib]),)
 
+          MUTTLIBS="$MUTTLIBS $LIBS"
           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
-          MUTTLIBS="$MUTTLIBS -lsasl2"
           LIBS="$saved_LIBS"
+
           AC_DEFINE(USE_SASL,1,
-                  [ Define if want to use the Cyrus SASL library for POP/IMAP authentication. ])
+                  [ Define if want to use the SASL library for POP/IMAP authentication. ])
           need_sasl=yes
         fi
         ])