[Libreoffice-commits] .: configure.in set_soenv.in

Caolán McNamara caolan at kemper.freedesktop.org
Thu Aug 4 09:07:38 PDT 2011


 configure.in |   12 ++++++++++++
 set_soenv.in |    1 +
 2 files changed, 13 insertions(+)

New commits:
commit 3b65920c7b23a964044174af08afa65216c30945
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Aug 4 17:05:45 2011 +0100

    just check for support of -mno-avx

diff --git a/configure.in b/configure.in
index cf308dc..841156a 100755
--- a/configure.in
+++ b/configure.in
@@ -3224,6 +3224,17 @@ if test "$GCC" = "yes"; then
         AC_MSG_RESULT([no])
     fi
 
+    AC_MSG_CHECKING([whether $CC supports -mno-avx])
+    save_CFLAGS=$CFLAGS
+    CFLAGS="$CFLAGS -Werror -mno-avx"
+    AC_TRY_LINK([], [ return 0; ], [ HAVE_GCC_AVX=TRUE ], [])
+    CFLAGS=$save_CFLAGS
+    if test "$HAVE_GCC_AVX" = "TRUE"; then
+        AC_MSG_RESULT([yes])
+    else
+        AC_MSG_RESULT([no])
+    fi
+
     AC_MSG_CHECKING([whether $CC supports -std=c++0x without Language Defect 757])
     save_CXXFLAGS=$CFLAGS
     CXXFLAGS="$CXXFLAGS -std=c++0x"
@@ -3266,6 +3277,7 @@ fi
 
 AC_SUBST(HAVE_CXX0X)
 AC_SUBST(HAVE_GCC_NO_LONG_DOUBLE)
+AC_SUBST(HAVE_GCC_AVX)
 
 # ===================================================================
 # use ccache?
diff --git a/set_soenv.in b/set_soenv.in
index 4994709..729241c 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1825,6 +1825,7 @@ ToFile( "ALIGNOF_INT",          "@ALIGNOF_INT@", "e" );
 ToFile( "ALIGNOF_LONG",         "@ALIGNOF_LONG@", "e" );
 ToFile( "ALIGNOF_DOUBLE",       "@ALIGNOF_DOUBLE@", "e" );
 ToFile( "HAVE_GCC_NO_LONG_DOUBLE", "@HAVE_GCC_NO_LONG_DOUBLE@", "e" );
+ToFile( "HAVE_GCC_AVX", "@HAVE_GCC_AVX@", "e" );
 ToFile( "HAVE_GCC_VISIBILITY_FEATURE",
 		"@HAVE_GCC_VISIBILITY_FEATURE@", "e" );
 ToFile( "HAVE_GCC_VISIBILITY_BROKEN",


More information about the Libreoffice-commits mailing list