LIBCRYPTO_LIBS=`$PKG_CONFIG libcrypto --libs-only-l 2>/dev/null`
LIBCRYPTO_INCLUDES=`$PKG_CONFIG libcrypto --cflags-only-I 2>/dev/null`
ssldir=`$PKG_CONFIG libcrypto --variable=prefix 2>/dev/null`
+ sslincdir=`$PKG_CONFIG libcrypto --variable=includedir 2>/dev/null`
found=true
fi
fi
LIBCRYPTO_INCLUDES="-I$ssldir/include"
LIBCRYPTO_LDFLAGS="-L$ssldir/lib"
LIBCRYPTO_LIBS="-lcrypto"
+ sslincdir="$ssldir/include"
found=true
AC_MSG_RESULT([yes])
break
# Find the headers we need for ECDSA
libcrypto_ecdsa=yes
- AC_CHECK_HEADER([$ssldir/include/openssl/ecdsa.h], [
+ AC_CHECK_HEADER([$sslincdir/openssl/ecdsa.h], [
AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [ : ], [
libcrypto_ecdsa=no
], [AC_INCLUDES_DEFAULT
-#include <$ssldir/include/openssl/evp.h>
+#include <$sslincdir/openssl/evp.h>
])
], [
libcrypto_ecdsa=no
AC_DEFINE([HAVE_LIBCRYPTO_ED25519], [1], [define to 1 if OpenSSL ed25519 support is available.])
], [ : ],
[AC_INCLUDES_DEFAULT
- #include <$ssldir/include/openssl/evp.h>])
+ #include <$sslincdir/openssl/evp.h>])
AC_CHECK_DECLS([NID_ED448], [
libcrypto_ed448=yes
AC_DEFINE([HAVE_LIBCRYPTO_ED448], [1], [define to 1 if OpenSSL ed448 support is available.])
], [ : ],
[AC_INCLUDES_DEFAULT
- #include <$ssldir/include/openssl/evp.h>])
+ #include <$sslincdir/openssl/evp.h>])
AS_IF([test "$libcrypto_ed25519" = "yes" -o "$libcrypto_ed448" = "yes"], [
AC_DEFINE([HAVE_LIBCRYPTO_EDDSA], [1], [define to 1 if OpenSSL EDDSA support is available.])