Commit ad9c7c7b authored by lenz@mysql.com's avatar lenz@mysql.com

- fix CC_VERSION and CXX_VERSION for compilers that return multiple lines of

   output for "--version" (e.g. gcc 3.x)
parent 843e1d8e
......@@ -130,7 +130,7 @@ AC_PROG_CXX
AC_PROG_CPP
# Print version of CC and CXX compiler (if they support --version)
CC_VERSION=`$CC --version`
CC_VERSION=`$CC --version | sed 1q`
if test $? -eq "0"
then
AC_MSG_CHECKING("C Compiler version");
......@@ -138,7 +138,7 @@ then
else
CC_VERSION=""
fi
CXX_VERSION=`$CXX --version`
CXX_VERSION=`$CXX --version | sed 1q`
if test $? -eq "0"
then
AC_MSG_CHECKING("C++ compiler version");
......
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