From adf982f3cb42be25c01301d107d90c3a8a9ce179 Mon Sep 17 00:00:00 2001 From: JustOff Date: Fri, 4 May 2018 17:28:00 +0300 Subject: Fix regex escaping in old-configure and js/src/old-configure --- js/src/old-configure.in | 4 +++- old-configure.in | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/old-configure.in b/js/src/old-configure.in index 162a071d7..8abea5956 100644 --- a/js/src/old-configure.in +++ b/js/src/old-configure.in @@ -734,12 +734,14 @@ case "$target" in dnl VS2012+ defaults to -arch:SSE2. We want to target nothing dnl more recent, so set that explicitly here unless another dnl target arch has already been set. + changequote(,) if test -z `echo $CFLAGS | grep -i [-/]arch:` ; then CFLAGS="$CFLAGS -arch:SSE2" - fi + fi if test -z `echo $CXXFLAGS | grep -i [-/]arch:` ; then CXXFLAGS="$CXXFLAGS -arch:SSE2" fi + changequote([,]) fi dnl VS2013+ requires -FS when parallel building by make -jN. dnl If nothing, compiler sometimes causes C1041 error. diff --git a/old-configure.in b/old-configure.in index cc49c3fce..731509c46 100644 --- a/old-configure.in +++ b/old-configure.in @@ -1030,12 +1030,14 @@ case "$target" in dnl VS2012+ defaults to -arch:SSE2. We want to target nothing dnl more recent, so set that explicitly here unless another dnl target arch has already been set. + changequote(,) if test -z `echo $CFLAGS | grep -i [-/]arch:`; then CFLAGS="$CFLAGS -arch:SSE2" fi if test -z `echo $CXXFLAGS | grep -i [-/]arch:`; then CXXFLAGS="$CXXFLAGS -arch:SSE2" fi + changequote([,]) SSE_FLAGS="-arch:SSE" SSE2_FLAGS="-arch:SSE2" dnl MSVC allows the use of intrinsics without any flags -- cgit v1.2.3