Commit 7a8716d6 authored by unknown's avatar unknown

Backport fix from 4.1 for testing whether CXX is gcc. (Bug #9690)


configure.in:
  Use more flexible for test for CXX being gcc.
parent c6bb2293
...@@ -368,7 +368,7 @@ then ...@@ -368,7 +368,7 @@ then
# we will gets some problems when linking static programs. # we will gets some problems when linking static programs.
# The following code is used to fix this problem. # The following code is used to fix this problem.
if test "$CXX" = "gcc" -o "$CXX" = "ccache gcc" if echo $CXX | grep gcc > /dev/null 2>&1
then then
if $CXX -v 2>&1 | grep 'version 3' > /dev/null 2>&1 if $CXX -v 2>&1 | grep 'version 3' > /dev/null 2>&1
then then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment