]> git.meshlink.io Git - meshlink/commitdiff
Also check for rand.h and err.h. If any of these files does not
authorIvo Timmermans <ivo@lychnis.net>
Wed, 15 Nov 2000 00:57:26 +0000 (00:57 +0000)
committerIvo Timmermans <ivo@lychnis.net>
Wed, 15 Nov 2000 00:57:26 +0000 (00:57 +0000)
exist, try the next alternative path.

m4/openssl.m4

index c0c2cabea3f0ff8e62702a97f6e4ed1d8ad3c94e..6e08ebe5bf0cbe5606a070c51ae6745aab9b09d1 100644 (file)
@@ -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