mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
- fix CC_VERSION and CXX_VERSION for compilers that return multiple lines of
output for "--version" (e.g. gcc 3.x)
This commit is contained in:
parent
b69d8f4a6f
commit
f0a3a93741
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue