]> git.ipfire.org Git - thirdparty/openvpn.git/commit
configure.ac: simplify crypto library configuration
authorSteffan Karger <steffan@karger.me>
Sun, 10 Jan 2016 14:37:19 +0000 (15:37 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 16 Jan 2016 20:27:11 +0000 (21:27 +0100)
commit31b0bebef61413151af9ded55aa985798d4f7666
tree74d341e96168728022500d1c5cb4e9283915bdf7
parentcc4761fcafdeceea1a4b004f91c9fb47ef8b19c1
configure.ac: simplify crypto library configuration

This reworks the crypto library configuration, to make it both simpler to
understand and more usable:

 * Only check for OpenSSL when building against OpenSSL (and similar for
   PolarSSL/mbed TLS).
 * Bail out early if a problem with the library is detected.
 * Set CRYPTO_{LIBS,FLAGS} immediately after the crypto library checks,
   removing the need for an extra switch-case later on.
 * We no longer support building openvpn with crypto but without ssl, so
   we can also simplify the logic in configure.ac accordingly.

As a 'side effect' (this actually triggered me), this fixes a bug that
would cause a user-specified OPENSSL_{CRYPTO,SSL}_LIBS to be overwritten
by AC_CHECK_LIB if there are openssl headers available in the PATH.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1452436639-16838-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10978
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Changes.rst
INSTALL
configure.ac