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-dependency-tracking \
|
||||||
--disable-docs --disable-manual \
|
--disable-docs --disable-manual \
|
||||||
--without-nghttp2 --without-libidn2 \
|
--without-nghttp2 --without-libidn2 \
|
||||||
|
--without-libpsl \
|
||||||
${options}
|
${options}
|
||||||
else
|
else
|
||||||
[ '${{ matrix.config }}' = 'OpenSSL' ] && options+=' -DCURL_USE_OPENSSL=ON'
|
[ '${{ 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 }}-${{ matrix.build }} make
|
||||||
mingw-w64-${{ matrix.env }}-openssl
|
mingw-w64-${{ matrix.env }}-openssl
|
||||||
mingw-w64-${{ matrix.env }}-libssh2
|
mingw-w64-${{ matrix.env }}-libssh2
|
||||||
|
mingw-w64-${{ matrix.env }}-libpsl
|
||||||
|
|
||||||
- name: 'autotools autoreconf'
|
- name: 'autotools autoreconf'
|
||||||
if: ${{ matrix.build == 'autotools' }}
|
if: ${{ matrix.build == 'autotools' }}
|
||||||
|
|||||||
@ -2113,7 +2113,7 @@ if test X"$OPT_LIBPSL" != Xno; then
|
|||||||
CLEANLIBS="$LIBS"
|
CLEANLIBS="$LIBS"
|
||||||
|
|
||||||
case "$OPT_LIBPSL" in
|
case "$OPT_LIBPSL" in
|
||||||
yes)
|
yes|off)
|
||||||
dnl --with-libpsl (without path) used
|
dnl --with-libpsl (without path) used
|
||||||
CURL_CHECK_PKGCONFIG(libpsl)
|
CURL_CHECK_PKGCONFIG(libpsl)
|
||||||
|
|
||||||
@ -2126,10 +2126,6 @@ if test X"$OPT_LIBPSL" != Xno; then
|
|||||||
LIB_PSL="-lpsl"
|
LIB_PSL="-lpsl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
|
||||||
off)
|
|
||||||
dnl no --with-libpsl option given, just check default places
|
|
||||||
LIB_PSL="-lpsl"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
dnl use the given --with-libpsl spot
|
dnl use the given --with-libpsl spot
|
||||||
@ -2164,8 +2160,7 @@ if test X"$OPT_LIBPSL" != Xno; then
|
|||||||
LIBS=$CLEANLIBS
|
LIBS=$CLEANLIBS
|
||||||
)
|
)
|
||||||
|
|
||||||
if test X"$OPT_LIBPSL" != Xoff &&
|
if test "$LIBPSL_ENABLED" != "1"; then
|
||||||
test "$LIBPSL_ENABLED" != "1"; then
|
|
||||||
AC_MSG_ERROR([libpsl libs and/or directories were not found where specified!])
|
AC_MSG_ERROR([libpsl libs and/or directories were not found where specified!])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -69,7 +69,7 @@ timestamp=$(grep -Eo 'SOURCE_DATE_EPOCH=[0-9]*' curl-"$curlver"/docs/RELEASE-TOO
|
|||||||
|
|
||||||
pwd=$(pwd)
|
pwd=$(pwd)
|
||||||
cd "curl-$curlver"
|
cd "curl-$curlver"
|
||||||
./configure --without-ssl
|
./configure --without-ssl --without-libpsl
|
||||||
./scripts/dmaketgz "$curlver" "$timestamp"
|
./scripts/dmaketgz "$curlver" "$timestamp"
|
||||||
|
|
||||||
mv curl-"$curlver"* ../_tarballs/
|
mv curl-"$curlver"* ../_tarballs/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user