From 9d1ff8351b4a7073780f9b32445003ea96719ee3 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Sat, 1 Nov 2014 11:20:39 +0530 Subject: [PATCH] Fix libpsl configure code --- ChangeLog | 4 ++++ configure.ac | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b7bd5fb..87366e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-11-01 Darshit Shah + + * configure.ac: Fix check for libpsl + 2014-10-31 Pär Karlsson * WgetTests.pm: Proper conditional operators, tidied up code, idiomatic improvements as per modern Perl best practices. diff --git a/configure.ac b/configure.ac index 88401cf..5d063df 100644 --- a/configure.ac +++ b/configure.ac @@ -61,15 +61,17 @@ dnl dnl Process features. dnl -ENABLE_PSL=no AC_ARG_WITH(libpsl, AS_HELP_STRING([--without-libpsl], [disable support for libpsl cookie checking.]), [], + [with_libpsl=yes]) + +AS_IF([test "x$with_libpsl" = xyes], [AC_SEARCH_LIBS(psl_builtin, psl, [ENABLE_PSL=yes; AC_DEFINE([HAVE_LIBPSL], [1], [PSL Support Enabled])], - [AC_MSG_WARN(*** libpsl not found. Falling back to Wget builtin cookie checking.)]) - ]) + [ENABLE_PSL=no; AC_MSG_WARN(*** libpsl not found. Falling back to Wget builtin cookie checking.)])], + [ENABLE_PSL=no]) AC_ARG_WITH(ssl, [[ --without-ssl disable SSL autodetection -- 2.1.2