[ovs-dev] [PATCH 3/3] acinclude: Use SSE4.2 instruction set

Bhanuprakash Bodireddy bhanuprakash.bodireddy at intel.com
Sun Aug 14 18:35:49 UTC 2016


On processors with SSE4.2 instruction set support, CRC32 intrinsics can
be used for efficient hash computation.

Update the m4_translit to convert '.' to '_' that otherwise cause 'bad
substitution' error when configuring OVS DPDK with msse4.2 support.

  ./configure: line 21027: ${ovs_cv__msse4.2+:}: bad substitution

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
---
 acinclude.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index aa57b47..93c7a5a 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -280,7 +280,7 @@ AC_DEFUN([OVS_CHECK_DPDK], [
       OVS_LDFLAGS="$OVS_LDFLAGS -L$DPDK_LIB_DIR"
     fi
     OVS_CFLAGS="$OVS_CFLAGS -I$DPDK_INCLUDE"
-    OVS_ENABLE_OPTION([-mssse3])
+    OVS_ENABLE_OPTION([-msse4.2])
 
     # DPDK pmd drivers are not linked unless --whole-archive is used.
     #
@@ -776,7 +776,7 @@ dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([_OVS_CHECK_CC_OPTION], [dnl
-  m4_define([ovs_cv_name], [ovs_cv_[]m4_translit([$1], [-=], [__])])dnl
+  m4_define([ovs_cv_name], [ovs_cv_[]m4_translit([$1], [-=.], [___])])dnl
   AC_CACHE_CHECK([whether $CC accepts $1], [ovs_cv_name], 
     [ovs_save_CFLAGS="$CFLAGS"
      dnl Include -Werror in the compiler options, because without -Werror
-- 
2.4.11




More information about the dev mailing list