mirror of
https://github.com/curl/curl.git
synced 2025-09-18 10:02:45 +03:00
configure: add basic test of --with-ssl prefix
When given a prefix, the $PREFIX_OPENSSL/lib/openssl.pc or $PREFIX_OPENSSL/include/openssl/ssl.h files must be present or cause an error. Helps users detect when giving configure the wrong path. Reported-by: Oleg Pudeyev Assisted-by: Per Malmberg Fixes #2580
This commit is contained in:
parent
09d16af49a
commit
d353af0014
|
@ -1591,9 +1591,11 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
|
||||||
dnl specify PKG_CONFIG_LIBDIR we're only looking where
|
dnl specify PKG_CONFIG_LIBDIR we're only looking where
|
||||||
dnl the user told us to look
|
dnl the user told us to look
|
||||||
OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
|
OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
|
||||||
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$OPENSSL_PCDIR"])
|
|
||||||
if test -f "$OPENSSL_PCDIR/openssl.pc"; then
|
if test -f "$OPENSSL_PCDIR/openssl.pc"; then
|
||||||
|
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$OPENSSL_PCDIR"])
|
||||||
PKGTEST="yes"
|
PKGTEST="yes"
|
||||||
|
elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
|
||||||
|
AC_MSG_ERROR([$PREFIX_OPENSSL is a bad --with-ssl prefix!])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl in case pkg-config comes up empty, use what we got
|
dnl in case pkg-config comes up empty, use what we got
|
||||||
|
|
Loading…
Reference in New Issue
Block a user