From d8ab8dc12db14cd206c61fb5d30a6a130160d9b9 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 27 Jul 2018 17:21:45 +0000 Subject: [PATCH 1/3] configure: Invert --enable-asm help string since default is now enabled --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5851413cf49..080082f3169 100644 --- a/configure.ac +++ b/configure.ac @@ -183,8 +183,8 @@ AC_ARG_ENABLE([glibc-back-compat], [use_glibc_compat=no]) AC_ARG_ENABLE([asm], - [AS_HELP_STRING([--enable-asm], - [Enable assembly routines (default is yes)])], + [AS_HELP_STRING([--disable-asm], + [disable assembly routines (enabled by default)])], [use_asm=$enableval], [use_asm=yes]) From afe087557747f640af90eaca8de8786dc226e56a Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 27 Jul 2018 17:25:09 +0000 Subject: [PATCH 2/3] configure: Skip assembly support checks, when assembly is disabled --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 080082f3169..11df27220e3 100644 --- a/configure.ac +++ b/configure.ac @@ -314,6 +314,8 @@ if test "x$CXXFLAGS_overridden" = "xno"; then AX_CHECK_COMPILE_FLAG([-Wimplicit-fallthrough],[NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-implicit-fallthrough"],,[[$CXXFLAG_WERROR]]) fi +if test "x$use_asm" = "xyes"; then + # Check for optional instruction set support. Enabling these does _not_ imply that all code will # be compiled with them, rather that specific objects/libs may use them after checking for runtime # compatibility. @@ -391,6 +393,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ) CXXFLAGS="$TEMP_CXXFLAGS" +fi + CPPFLAGS="$CPPFLAGS -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS" AC_ARG_WITH([utils], From 4207c1b35c2e2ee1c9217cc7db3290a24c3b4b52 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 27 Jul 2018 17:26:43 +0000 Subject: [PATCH 3/3] configure: Initialise assembly enable_* variables --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 11df27220e3..13ea6601989 100644 --- a/configure.ac +++ b/configure.ac @@ -314,6 +314,11 @@ if test "x$CXXFLAGS_overridden" = "xno"; then AX_CHECK_COMPILE_FLAG([-Wimplicit-fallthrough],[NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-implicit-fallthrough"],,[[$CXXFLAG_WERROR]]) fi +enable_hwcrc32=no +enable_sse41=no +enable_avx2=no +enable_shani=no + if test "x$use_asm" = "xyes"; then # Check for optional instruction set support. Enabling these does _not_ imply that all code will