]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1751] correct -lcrypto -lz dependency test
authorDave Hart <hart@ntp.org>
Tue, 14 Dec 2010 20:49:32 +0000 (20:49 +0000)
committerDave Hart <hart@ntp.org>
Tue, 14 Dec 2010 20:49:32 +0000 (20:49 +0000)
bk: 4d07d85caP20h0NonL--GecMnwW5Pw

m4/ntp_openssl.m4

index 58400a254df9f54ef187cb70a1b543f7ef019d54..f80ac584db13eceec9e912c2c76bd0faf0a2a657 100644 (file)
@@ -168,9 +168,11 @@ case "$ntp_openssl" in
            [AC_LANG_PROGRAM(
                [[
                    #include "openssl/err.h"
+                   #include "openssl/rand.h"
                ]],
                [[
                    ERR_load_crypto_strings();
+                   OpenSSL_add_all_algorithms();
                ]]
            )],
            [ntp_cv_bare_lcrypto=yes],
@@ -187,9 +189,11 @@ case "$ntp_openssl" in
                [AC_LANG_PROGRAM(
                    [[
                        #include "openssl/err.h"
+                       #include "openssl/rand.h"
                    ]],
                    [[
                        ERR_load_crypto_strings();
+                       OpenSSL_add_all_algorithms();
                    ]]
                )],
                [ntp_cv_lcrypto_lz=yes],