From: Daniel Stenberg Date: Mon, 8 Jan 2024 15:28:50 +0000 (+0100) Subject: configure: make libpsl detection failure cause error X-Git-Tag: curl-8_6_0~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2998874bb61ac6;p=thirdparty%2Fcurl.git configure: make libpsl detection failure cause error To force users to explictily disable it if they really don't want it used and make it harder to accidentally miss it. --without-libpsl is the option to use if PSL is not wanted. Closes #12661 --- diff --git a/configure.ac b/configure.ac index 79c98b3c4e..39dc0963f7 100644 --- a/configure.ac +++ b/configure.ac @@ -2054,17 +2054,16 @@ dnl ********************************************************************** AC_ARG_WITH(libpsl, AS_HELP_STRING([--without-libpsl], - [disable support for libpsl cookie checking]), + [disable support for libpsl]), with_libpsl=$withval, with_libpsl=yes) +curl_psl_msg="no (libpsl disabled)" if test $with_libpsl != "no"; then AC_SEARCH_LIBS(psl_builtin, psl, [curl_psl_msg="enabled"; AC_DEFINE([USE_LIBPSL], [1], [PSL support enabled]) ], - [curl_psl_msg="no (libpsl not found)"; - AC_MSG_WARN([libpsl was not found]) - ] + [AC_MSG_ERROR([libpsl was not found]) ] ) fi AM_CONDITIONAL([USE_LIBPSL], [test "$curl_psl_msg" = "enabled"])