]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: fail if PSL is not disabled but not found
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 Aug 2024 14:38:11 +0000 (16:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Aug 2024 06:33:58 +0000 (08:33 +0200)
Regression since 9b3f67e (shipped in 8.7.0)
Reported-by: Ryan Carsten Schmidt
Fixes #14373
Assisted-by: Viktor Szakats
Closes #14379

.github/workflows/macos.yml
.github/workflows/windows.yml
configure.ac
scripts/verify-release

index 74ebca86b829e562470cae29a569df8bda1e609c..c8bff3abcf7eb2e983b113edeabaf869436bce08 100644 (file)
@@ -585,6 +585,7 @@ jobs:
               --disable-dependency-tracking \
               --disable-docs --disable-manual \
               --without-nghttp2 --without-libidn2 \
+              --without-libpsl \
               ${options}
           else
             [ '${{ matrix.config }}' = 'OpenSSL' ]         && options+=' -DCURL_USE_OPENSSL=ON'
index 9cec1f8bc76d58d317f3831817a747d94c2e23e4..916332f8b0144f4c879e7a68a63e4769635e9ee8 100644 (file)
@@ -78,6 +78,7 @@ jobs:
             mingw-w64-${{ matrix.env }}-${{ matrix.build }} make
             mingw-w64-${{ matrix.env }}-openssl
             mingw-w64-${{ matrix.env }}-libssh2
+            mingw-w64-${{ matrix.env }}-libpsl
 
       - name: 'autotools autoreconf'
         if: ${{ matrix.build == 'autotools' }}
index 056efbe89a394852a0c97f735489ecaf45402e4d..cee96e541f3c14fe80baae03509cbfab9eff93aa 100644 (file)
@@ -2113,7 +2113,7 @@ if test X"$OPT_LIBPSL" != Xno; then
   CLEANLIBS="$LIBS"
 
   case "$OPT_LIBPSL" in
-  yes)
+  yes|off)
     dnl --with-libpsl (without path) used
     CURL_CHECK_PKGCONFIG(libpsl)
 
@@ -2126,10 +2126,6 @@ if test X"$OPT_LIBPSL" != Xno; then
       LIB_PSL="-lpsl"
     fi
 
-    ;;
-  off)
-    dnl no --with-libpsl option given, just check default places
-    LIB_PSL="-lpsl"
     ;;
   *)
     dnl use the given --with-libpsl spot
@@ -2164,8 +2160,7 @@ if test X"$OPT_LIBPSL" != Xno; then
       LIBS=$CLEANLIBS
   )
 
-  if test X"$OPT_LIBPSL" != Xoff &&
-     test "$LIBPSL_ENABLED" != "1"; then
+  if test "$LIBPSL_ENABLED" != "1"; then
     AC_MSG_ERROR([libpsl libs and/or directories were not found where specified!])
   fi
 fi
index 3b8977def24ee1af23326469c2e8d48879aefc4a..2f7a0bf89fea5f6a87ee67440904b5c2a7aa17d8 100755 (executable)
@@ -69,7 +69,7 @@ timestamp=$(grep -Eo 'SOURCE_DATE_EPOCH=[0-9]*' curl-"$curlver"/docs/RELEASE-TOO
 
 pwd=$(pwd)
 cd "curl-$curlver"
-./configure --without-ssl
+./configure --without-ssl --without-libpsl
 ./scripts/dmaketgz "$curlver" "$timestamp"
 
 mv curl-"$curlver"* ../_tarballs/