On Sat, 13 Feb 2010, Arjen de Korte wrote:

> Citeren Tim Rice <[email protected]>:
> 
> > While the changes to m4/nut_check_libssl.m4 have improved detection
> > of OpenSSL on Solaris, it breaks on platforms that did not have
> > pkg-config from the vendor.
> 
> I'd be happy to add additional autoconf magic if people complain that this
> doesn't work for them anymore. But note that the SSL support is still a
> largely undocumented feature. It isn't mentioned in the sample configuration
> files either, so I question if this is a widely used thing anyway. We'll see.

This patch works here.
----------
--- nut-2.4.1-r2339/m4/nut_check_libssl.m4.old  2010-02-11 13:51:28.000000000 
-0800
+++ nut-2.4.1-r2339/m4/nut_check_libssl.m4      2010-02-13 18:11:50.493678000 
-0800
@@ -37,7 +37,17 @@
                fi
        else
                AC_MSG_RESULT(not found)
-               nut_have_libssl=no
+               AC_MSG_CHECKING(for SSL library availability)
+               CFLAGS=""
+               LDFLAGS="${LDFLAGS} -lssl -lcrypto"
+               AC_TRY_LINK([#include <openssl/ssl.h>], [SSL_library_init()], 
+                       nut_have_libssl=yes, 
+                       nut_have_libssl=no)
+
+               if test "${nut_have_libssl}" != "yes"; then
+                       AC_MSG_RESULT(not found)
+                       nut_have_libssl=no
+               fi
        fi
 
        if test "${nut_have_libssl}" = "yes"; then
----------

-- 
Tim Rice                                Multitalents    (707) 887-1469
[email protected]



_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to