Skip to content

Commit

Permalink
Check for "gnu-cc" in compiler version string.
Browse files Browse the repository at this point in the history
Conda gcc doesn't seem to have "gcc" or "GCC" in the version string
anymore (#46).
  • Loading branch information
devinamatthews committed Apr 22, 2022
1 parent 50093e4 commit 7d979b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -6706,7 +6706,10 @@ if test x"$vendor_string" = x; then
as_fn_error $? "Unable to determine compiler vendor." "$LINENO" 5
fi

cc_vendor=`echo $vendor_string | $EGREP -oi 'icc|gcc|clang|emcc|pnacl|IBM' | tr 'A-Z' 'a-z' | { read first rest ; echo $first ; }`
cc_vendor=`echo $vendor_string | $EGREP -oi 'icc|gcc|clang|emcc|pnacl|IBM|gnu-cc' | tr 'A-Z' 'a-z' | { read first rest ; echo $first ; }`
if test x"$cc_vendor" = "xgnu-cc"; then
cc_vendor=gcc
fi
if test x"$cc_vendor" = x; then
as_fn_error $? "Unable to determine compiler vendor." "$LINENO" 5
fi
Expand Down
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ if test x"$vendor_string" = x; then
AC_MSG_ERROR([Unable to determine compiler vendor.])
fi

cc_vendor=`echo $vendor_string | $EGREP -oi 'icc|gcc|clang|emcc|pnacl|IBM' | tr 'A-Z' 'a-z' | { read first rest ; echo $first ; }`
cc_vendor=`echo $vendor_string | $EGREP -oi 'icc|gcc|clang|emcc|pnacl|IBM|gnu-cc' | tr 'A-Z' 'a-z' | { read first rest ; echo $first ; }`
if test x"$cc_vendor" = "xgnu-cc"; then
cc_vendor=gcc
fi
if test x"$cc_vendor" = x; then
AC_MSG_ERROR([Unable to determine compiler vendor.])
fi
Expand Down

0 comments on commit 7d979b6

Please sign in to comment.