mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
fixed building from source tith openssl
This commit is contained in:
committed by
Razvan Becheriu
parent
988f0a7ca6
commit
1fa2f5fc92
@@ -605,8 +605,11 @@ AC_ARG_WITH([gtest],
|
||||
[specify a path to gtest header files (PATH/include) and library (PATH/lib)])],
|
||||
[gtest_path="$withval"; enable_gtest="yes"], [gtest_path="no"])
|
||||
|
||||
AC_ARG_WITH(lcov,
|
||||
[ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
|
||||
AC_ARG_WITH([lcov],
|
||||
[AS_HELP_STRING([--with-lcov=PROGRAM],
|
||||
[enable gtest and coverage target using the specified lcov])],
|
||||
[lcov="$withval"],
|
||||
[lcov="no"])
|
||||
|
||||
USE_LCOV="no"
|
||||
if test "$lcov" != "no"; then
|
||||
|
@@ -408,7 +408,7 @@ else
|
||||
if test "${use_openssl}" = "/usr" ; then
|
||||
CRYPTO_CFLAGS=""
|
||||
CRYPTO_INCLUDES=""
|
||||
CRYPTO_LIBS="-lcrypto"
|
||||
CRYPTO_LIBS="-lcrypto -lssl"
|
||||
DISTCHECK_CRYPTO_CONFIGURE_FLAG="--with-openssl"
|
||||
else
|
||||
CRYPTO_CFLAGS=""
|
||||
@@ -416,20 +416,20 @@ else
|
||||
DISTCHECK_CRYPTO_CONFIGURE_FLAG="--with-openssl=${use_openssl}"
|
||||
case $host in
|
||||
*-solaris*)
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -R${use_openssl}/lib -lcrypto"
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -R${use_openssl}/lib -lcrypto -lssl"
|
||||
;;
|
||||
*-hp-hpux*)
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -Wl,+b: -lcrypto"
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -Wl,+b: -lcrypto -lssl"
|
||||
;;
|
||||
*-apple-darwin*)
|
||||
if test -f "${use_openssl}/lib/libcrypto.dylib" ; then
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto"
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto -lssl"
|
||||
else
|
||||
CRYPTO_LIBS="${use_openssl}/lib/libcrypto.a"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto"
|
||||
CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto -lssl"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
Reference in New Issue
Block a user