Skip to content
Snippets Groups Projects
Commit 016cf6d9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

configure.ac: simplify compiler version check

parent 854b071f
No related branches found
No related tags found
1 merge request!260configure.ac: simplify compiler version check
Pipeline #81625 passed
......@@ -79,33 +79,22 @@ AC_CHECK_FUNCS(getrlimit)
# Check compiler version
case "$CXX" in
*pgc*) CXX_VERSION=`$CXX -V | head -2 | tail -n 1`;;
*gcc*) CXX_VERSION=`$CXX --version | head -n 1`;;
*g++*) CXX_VERSION=`$CXX --version | head -n 1`;;
*clang*) CXX_VERSION=`$CXX --version | head -n 1`;;
*icp*) CXX_VERSION=`$CXX --version | head -n 1`;;
*sxc*) CXX_VERSION=`$CXX -V 2>&1 | tail -n 1`;;
*xlc*) CXX_VERSION=`$CXX -qversion 2>&1 | head -n 1`;;
*) CXX_VERSION=`$CXX -V 2>&1 | head -n 1 | grep -v error`;;
*sxc*) CXX_VERSION=`$CXX -V 2>&1 | tail -n 1`;;
*xlc*) CXX_VERSION=`$CXX -qversion 2>&1 | head -n 1`;;
*) CXX_VERSION=`$CXX --version 2>&1 | head -n 1 | grep -v error`;;
esac
case "$CC" in
*pgc*) C_VERSION=`$CC -V | head -2 | tail -n 1`;;
*gcc*) C_VERSION=`$CC --version | head -n 1`;;
*g++*) C_VERSION=`$CC --version | head -n 1`;;
*clang*) C_VERSION=`$CC --version | head -n 1`;;
*ic*) C_VERSION=`$CC --version | head -n 1`;;
*sxc*) C_VERSION=`$CC -V 2>&1 | tail -n 1`;;
*xlc*) C_VERSION=`$CC -qversion 2>&1 | head -n 1`;;
*) C_VERSION=`$CC -V 2>&1 | head -n 1 | grep -v error`;;
*sxc*) C_VERSION=`$CC -V 2>&1 | tail -n 1`;;
*xlc*) C_VERSION=`$CC -qversion 2>&1 | head -n 1`;;
*) C_VERSION=`$CC --version 2>&1 | head -n 1 | grep -v error`;;
esac
if test -n "$F77" ; then
case "$F77" in
*pgf*) F77_VERSION=`$F77 -V | head -2 | tail -n 1`;;
*gfortran*) F77_VERSION=`$F77 --version | head -n 1`;;
*if*) F77_VERSION=`$F77 --version | head -n 1`;;
*f77*) F77_VERSION=`$F77 --version | head -n 1`;;
*) F77_VERSION=`$F77 -V 2>&1 | head -n 1 | grep -v error`;;
*) F77_VERSION=`$F77 --version 2>&1 | head -n 1 | grep -v error`;;
esac
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment