From 1c890235953d2db06d707baef5e699016b2e777a Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 20 Aug 2009 21:54:00 +0000 Subject: [PATCH] Allow --with-cpu=native. git-svn-id: https://svn.dealii.org/trunk@19321 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index af7c09ccb6..f0e9c21d18 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -2010,6 +2010,22 @@ AC_DEFUN(DEAL_II_CHECK_CPU_OPTIMIZATIONS, dnl ;; esac ;; + + native) + AC_MSG_RESULT(native processor variant) + case "$GXX_VERSION" in + gcc*) + dnl Tune for this processor, but only in optimized mode + dnl (to prevent the effects of possible compiler bugs to affect + dnl both debug as well as optimized versions) + CXXFLAGSO="$CXXFLAGSO -march=native" + + dnl Also set the mode for f77 compiler + F77FLAGSO="$F77FLAGSO -march=native + ;; + esac + ;; + *) AC_MSG_RESULT(none given or not recognized) ;; -- 2.39.5