detect if the version string is a release or snapshot style.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@56249 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
NicJA 2019-04-14 15:38:01 +00:00
parent b92e3ba5ce
commit f5725c799b
2 changed files with 27 additions and 6 deletions

18
configure vendored
View File

@ -9239,9 +9239,21 @@ if test "$aros_toolchain" = "gnu" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
$as_echo "$target_gcc_version" >&6; }
GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
$as_echo_n "checking version string style... " >&6; }
if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
$as_echo "snapshot" >&6; }
GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
GCC_VERSION_MINOR=-1
GCC_VERSION_PATCH=-1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
$as_echo "release" >&6; }
GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
fi
gcc_fix_bitfields="false"
if test "$GCC_VERSION_MAJOR" -gt "4" ; then

View File

@ -1968,9 +1968,18 @@ fi
if test "$aros_toolchain" = "gnu" ; then
AC_MSG_RESULT($target_gcc_version)
GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
AC_MSG_CHECKING([version string style])
if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
AC_MSG_RESULT(snapshot)
GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
GCC_VERSION_MINOR=-1
GCC_VERSION_PATCH=-1
else
AC_MSG_RESULT(release)
GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
fi
gcc_fix_bitfields="false"
if test "$GCC_VERSION_MAJOR" -gt "4" ; then