From 01726893f54a5d92cae0e13d60c77d4199d647f0 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 17 Aug 2014 07:58:32 -0500 Subject: [PATCH] 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). --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 7b63cdc..7c818e3 100644 --- a/configure.ac +++ b/configure.ac @@ -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([