mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Fix crypto++ compile flags detection
This commit is contained in:
parent
48b97877ec
commit
5e76def21c
@ -218,8 +218,15 @@ then
|
||||
[CryptoPP::AlignedAllocate(5);])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -DCRYPTOPP_DISABLE_ASM"
|
||||
AC_MSG_RESULT([no])
|
||||
CRYPTOPP_INC="<$CRYPTOPP_INCLUDE_PREFIX/allocate.h>"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include $CRYPTOPP_INC],
|
||||
[CryptoPP::AlignedAllocate(5);])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -DCRYPTOPP_DISABLE_ASM"
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
])
|
||||
LDFLAGS="$SAVED_LDFLAGS"
|
||||
CPPFLAGS="$SAVED_CPPFLAGS"
|
||||
|
||||
@ -202,8 +202,15 @@ then
|
||||
[CryptoPP::AlignedAllocate(5);])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -DCRYPTOPP_DISABLE_ASM"
|
||||
AC_MSG_RESULT([no])
|
||||
CRYPTOPP_INC="<$CRYPTOPP_INCLUDE_PREFIX/allocate.h>"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include $CRYPTOPP_INC],
|
||||
[CryptoPP::AlignedAllocate(5);])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -DCRYPTOPP_DISABLE_ASM"
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
])
|
||||
LDFLAGS="$SAVED_LDFLAGS"
|
||||
CPPFLAGS="$SAVED_CPPFLAGS"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user