add --disable-asm flag for disabling inline asm

Surprisingly (or not), a lot of OpenSSL's inline assembly actually makes
things slower with a relatively modern compiler (read, gcc >= 4.x).
This commit is contained in:
Brent Cook 2014-08-17 07:58:32 -05:00
parent 2cef68f3ed
commit 01726893f5

View File

@ -165,6 +165,10 @@ AC_ARG_WITH([enginesdir],
AC_DEFINE_UNQUOTED(ENGINESDIR, "$withval")
)
AC_ARG_ENABLE([asm],
AS_HELP_STRING([--disable-asm], [Disable assembly]))
AS_IF([test "x$enable_asm" == "xno"], [CFLAGS="$CFLAGS -DOPENSSL_NO_ASM"])
LT_INIT
AC_CONFIG_FILES([