#5881: Explicitly state all possible crypto backend source files so that they are included into archive by `make dist`

This commit is contained in:
Mike Gelfand 2015-01-21 22:32:27 +00:00
parent beeb4521c0
commit 806f81c05c
2 changed files with 13 additions and 1 deletions

View File

@ -173,6 +173,9 @@ AS_IF([test "x$CRYPTO_PKG" = "x"], [
)
])
AM_CONDITIONAL([CRYPTO_USE_OPENSSL],[test "x$CRYPTO_PKG" = "xopenssl"])
AM_CONDITIONAL([CRYPTO_USE_CYASSL],[test "x$CRYPTO_PKG" = "xcyassl"])
AM_CONDITIONAL([CRYPTO_USE_POLARSSL],[test "x$CRYPTO_PKG" = "xpolarssl"])
AC_SUBST(CRYPTO_PKG)
AC_SUBST(CRYPTO_CFLAGS)
AC_SUBST(CRYPTO_LIBS)

View File

@ -31,7 +31,6 @@ libtransmission_a_SOURCES = \
crypto.c \
crypto-utils.c \
crypto-utils-fallback.c \
crypto-utils-@CRYPTO_PKG@.c \
error.c \
fdlimit.c \
file.c \
@ -83,6 +82,16 @@ else
libtransmission_a_SOURCES += file-posix.c
endif
if CRYPTO_USE_OPENSSL
libtransmission_a_SOURCES += crypto-utils-openssl.c
endif
if CRYPTO_USE_CYASSL
libtransmission_a_SOURCES += crypto-utils-cyassl.c
endif
if CRYPTO_USE_POLARSSL
libtransmission_a_SOURCES += crypto-utils-polarssl.c
endif
noinst_HEADERS = \
announcer.h \
announcer-common.h \