New version name (Version 1.0) for access from the FEEVER website.
[Faustine.git] / interpreter / lib / src / libsndfile-1.0.25 / M4 / gcc_version.m4
1 dnl @synopsis MN_GCC_VERSION
2 dnl
3 dnl Find the version of gcc.
4 dnl @version 1.0 Nov 05 2007
5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
6 dnl
7 dnl Permission to use, copy, modify, distribute, and sell this file for any
8 dnl purpose is hereby granted without fee, provided that the above copyright
9 dnl and this permission notice appear in all copies. No representations are
10 dnl made about the suitability of this software for any purpose. It is
11 dnl provided "as is" without express or implied warranty.
12 dnl
13
14 AC_DEFUN([MN_GCC_VERSION],
15 [
16 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
17
18 AC_MSG_CHECKING([for version of $CC])
19 GCC_VERSION=`$CC -dumpversion`
20 AC_MSG_RESULT($GCC_VERSION)
21
22 changequote(,)dnl
23 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/^[0-9]\+\.//" | sed "s/\..*//"`
24 GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
25 changequote([,])dnl
26 fi
27
28 AC_SUBST(GCC_VERSION)
29 AC_SUBST(GCC_MAJOR_VERSION)
30 AC_SUBST(GCC_MINOR_VERSION)
31
32 ])# MN_GCC_VERSION
33