forked from wolfSSL/wolfssl
add intelasm ./configure option
This commit is contained in:
17
configure.ac
17
configure.ac
@@ -383,12 +383,19 @@ AM_CONDITIONAL([BUILD_AESCCM], [test "x$ENABLED_AESCCM" = "xyes"])
|
|||||||
|
|
||||||
# AES-NI
|
# AES-NI
|
||||||
AC_ARG_ENABLE([aesni],
|
AC_ARG_ENABLE([aesni],
|
||||||
[ --enable-aesni Enable wolfSSL AES-NI support (default: disabled)],
|
[AS_HELP_STRING([--enable-aesni],[Enable wolfSSL AES-NI support (default: disabled)])],
|
||||||
[ ENABLED_AESNI=$enableval ],
|
[ ENABLED_AESNI=$enableval ],
|
||||||
[ ENABLED_AESNI=no ]
|
[ ENABLED_AESNI=no ]
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "$ENABLED_AESNI" = "yes"
|
# INTEL ASM
|
||||||
|
AC_ARG_ENABLE([intelasm],
|
||||||
|
[AS_HELP_STRING([--enable-intelasm],[Enable All Intel ASM speedups (default: disabled)])],
|
||||||
|
[ ENABLED_INTELASM=$enableval ],
|
||||||
|
[ ENABLED_INTELASM=no ]
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "$ENABLED_AESNI" = "yes" || test "$ENABLED_INTELASM" = "yes"
|
||||||
then
|
then
|
||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESNI"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESNI"
|
||||||
if test "$GCC" = "yes"
|
if test "$GCC" = "yes"
|
||||||
@@ -402,6 +409,12 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$ENABLED_INTELASM" = "yes"
|
||||||
|
then
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_INTEL_RDGEN -DUSE_INTEL_SPEEDUP"
|
||||||
|
ENABLED_AESNI=yes
|
||||||
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([BUILD_AESNI], [test "x$ENABLED_AESNI" = "xyes"])
|
AM_CONDITIONAL([BUILD_AESNI], [test "x$ENABLED_AESNI" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user