[Nut-upsdev] SSL test regression
Tim Rice
tim at multitalents.net
Sun Feb 14 03:05:19 UTC 2010
On Sat, 13 Feb 2010, Arjen de Korte wrote:
> Citeren Tim Rice <tim at multitalents.net>:
>
> > 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
tim at multitalents.net
More information about the Nut-upsdev
mailing list