annotate src/libsndfile-1.0.25/M4/gcc_version.m4 @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents c7265573341e
children
rev   line source
Chris@0 1 dnl @synopsis MN_GCC_VERSION
Chris@0 2 dnl
Chris@0 3 dnl Find the version of gcc.
Chris@0 4 dnl @version 1.0 Nov 05 2007
Chris@0 5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
Chris@0 6 dnl
Chris@0 7 dnl Permission to use, copy, modify, distribute, and sell this file for any
Chris@0 8 dnl purpose is hereby granted without fee, provided that the above copyright
Chris@0 9 dnl and this permission notice appear in all copies. No representations are
Chris@0 10 dnl made about the suitability of this software for any purpose. It is
Chris@0 11 dnl provided "as is" without express or implied warranty.
Chris@0 12 dnl
Chris@0 13
Chris@0 14 AC_DEFUN([MN_GCC_VERSION],
Chris@0 15 [
Chris@0 16 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
Chris@0 17
Chris@0 18 AC_MSG_CHECKING([for version of $CC])
Chris@0 19 GCC_VERSION=`$CC -dumpversion`
Chris@0 20 AC_MSG_RESULT($GCC_VERSION)
Chris@0 21
Chris@0 22 changequote(,)dnl
Chris@0 23 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/^[0-9]\+\.//" | sed "s/\..*//"`
Chris@0 24 GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
Chris@0 25 changequote([,])dnl
Chris@0 26 fi
Chris@0 27
Chris@0 28 AC_SUBST(GCC_VERSION)
Chris@0 29 AC_SUBST(GCC_MAJOR_VERSION)
Chris@0 30 AC_SUBST(GCC_MINOR_VERSION)
Chris@0 31
Chris@0 32 ])# MN_GCC_VERSION
Chris@0 33