Merge "BuildSystem: Allow own CFLAGS on ./configure." into 13

changes/86/3186/1
zuul 9 years ago committed by Gerrit Code Review
commit 08f5f10f8f

12
configure vendored

@ -17767,19 +17767,13 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
$as_echo_n "checking for -march=native support... " >&6; } $as_echo_n "checking for -march=native support... " >&6; }
if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
if test "${CONFIG_CFLAGS}" = ""; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; } $as_echo "yes" >&6; }
AST_NATIVE_ARCH=1 AST_NATIVE_ARCH=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: user CFLAGS present" >&5
$as_echo "user CFLAGS present" >&6; }
AST_NATIVE_ARCH=
fi
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; } $as_echo "no" >&6; }
AST_NATIVE_ARCH= AST_NATIVE_ARCH=0
fi fi

@ -1213,16 +1213,11 @@ AC_SUBST(AST_SHADOW_WARNINGS)
AC_MSG_CHECKING(for -march=native support) AC_MSG_CHECKING(for -march=native support)
if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
if test "${CONFIG_CFLAGS}" = ""; then AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes) AST_NATIVE_ARCH=1
AST_NATIVE_ARCH=1
else
AC_MSG_RESULT(user CFLAGS present)
AST_NATIVE_ARCH=
fi
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
AST_NATIVE_ARCH= AST_NATIVE_ARCH=0
fi fi
AC_SUBST(AST_NATIVE_ARCH) AC_SUBST(AST_NATIVE_ARCH)

Loading…
Cancel
Save