From: Ivo Timmermans Date: Wed, 15 Nov 2000 00:57:26 +0000 (+0000) Subject: Also check for rand.h and err.h. If any of these files does not X-Git-Tag: import-tinc-1.1~785^2~719 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8eb60d0ccde2f1de6fd917db7300e537f271783e;p=meshlink Also check for rand.h and err.h. If any of these files does not exist, try the next alternative path. --- diff --git a/m4/openssl.m4 b/m4/openssl.m4 index c0c2cabe..6e08ebe5 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -40,15 +40,14 @@ if test "$tinc_cv_openssl_include" != "none given" ; then INCLUDES="$INCLUDES -I$tinc_cv_openssl_include" fi -osi=none -AC_CHECK_HEADERS(evp.h rsa.h, -[osi=found - break]) +osi=found +AC_CHECK_HEADERS(evp.h rsa.h rand.h err.h, +[], [osi=none; break]) if test "$osi" = "none" ; then - AC_CHECK_HEADERS(openssl/evp.h openssl/rsa.h, - [osi=found - break]) + osi=found + AC_CHECK_HEADERS(openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h, + [], [osi=none; break]) fi