mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
configure: fail if PSL is not disabled but not found
Regression since 9b3f67e
(shipped in 8.7.0)
Reported-by: Ryan Carsten Schmidt
Fixes #14373
Assisted-by: Viktor Szakats
Closes #14379
This commit is contained in:
parent
7d45b52166
commit
ed2850456c
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
@ -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'
|
||||
|
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
@ -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' }}
|
||||
|
@ -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
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user