Commit 98d3b5b3 authored by jehan's avatar jehan

search for both libmbedtls & libpolarssl

parent 7a5e76c4
......@@ -1170,6 +1170,10 @@ if test "$polarssl_prefix" != "none" ; then
CPPFLAGS="$CPPFLAGS $POLARSSL_CFLAGS"
LIBS="$LIBS $POLARSSL_LIBS"
AC_CHECK_LIB(mbedtls, ssl_init , [POLARSSL_LIBS="$POLARSSL_LIBS -lmbedtls"],
[AC_CHECK_LIB(polarssl, ssl_init, [POLARSSL_LIBS="$POLARSSL_LIBS -lpolarssl"])])
LIBS="$LIBS $POLARSSL_LIBS" #to add right -l
AC_CHECK_HEADERS(polarssl/ssl.h, [
AC_CHECK_LIB(polarssl,sha1_hmac,
[found_polarssl=yes; AC_MSG_NOTICE([polarssl usable])],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment