From: Wolfgang Bangerth Date: Fri, 2 Dec 2005 19:36:23 +0000 (+0000) Subject: For icc on x86_64, also link with -lpthread. X-Git-Tag: v8.0.0~12831 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04cb9da8362e9dbaedd7df4589038f86ecb06bf4;p=dealii.git For icc on x86_64, also link with -lpthread. git-svn-id: https://svn.dealii.org/trunk@11805 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 637d1b0a01..00106718c2 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -613,6 +613,10 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl dnl If we are on an x86 platform, add -tpp6 to optimization dnl flags case "$target" in + *x86_64*) + LDFLAGS="$LDFLAGS -lpthread" + ;; + *86*) CXXFLAGSO="$CXXFLAGSO -tpp6" ;; diff --git a/deal.II/configure b/deal.II/configure index aa6188562f..b891053601 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -3475,6 +3475,10 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi fi case "$target" in + *x86_64*) + LDFLAGS="$LDFLAGS -lpthread" + ;; + *86*) CXXFLAGSO="$CXXFLAGSO -tpp6" ;; @@ -3873,6 +3877,7 @@ echo "${ECHO_T}C compiler is unknown version but accepted MIPSpro compiler versi version6="`echo $is_intel_icc | grep 'Version 6'`" version7="`echo $is_intel_icc | grep 'Version 7'`" version8="`echo $is_intel_icc | grep 'Version 8'`" + version9="`echo $is_intel_icc | grep 'Version 9'`" if test "x$version5" != "x" ; then echo "$as_me:$LINENO: result: C compiler is icc-5" >&5 echo "${ECHO_T}C compiler is icc-5" >&6 @@ -3889,6 +3894,10 @@ echo "${ECHO_T}C compiler is icc-7" >&6 echo "$as_me:$LINENO: result: C compiler is icc-8" >&5 echo "${ECHO_T}C compiler is icc-8" >&6 CC_VERSION=intel_icc8 + else if test "x$version9" != "x" ; then + echo "$as_me:$LINENO: result: C compiler is icc-9" >&5 +echo "${ECHO_T}C compiler is icc-9" >&6 + CC_VERSION=intel_icc9 else echo "$as_me:$LINENO: result: C compiler is icc" >&5 echo "${ECHO_T}C compiler is icc" >&6