annotate src/fftw-3.3.3/m4/ax_gcc_version.m4 @ 23:619f715526df
sv_v2.1
Update Vamp plugin SDK to 2.5
author |
Chris Cannam |
date |
Thu, 09 May 2013 10:52:46 +0100 |
parents |
37bf6b4a2645 |
children |
|
rev |
line source |
Chris@10
|
1 dnl @synopsis AX_GCC_VERSION(MAJOR, MINOR, PATCHLEVEL, [ACTION-SUCCESS], [ACTION-FAILURE])
|
Chris@10
|
2 dnl @summary check wither gcc is at least version MAJOR.MINOR.PATCHLEVEL
|
Chris@10
|
3 dnl @category InstalledPackages
|
Chris@10
|
4 dnl
|
Chris@10
|
5 dnl Check whether we are using gcc and, if so, whether its version
|
Chris@10
|
6 dnl is at least MAJOR.MINOR.PATCHLEVEL
|
Chris@10
|
7 dnl
|
Chris@10
|
8 dnl ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
|
Chris@10
|
9 dnl success/failure.
|
Chris@10
|
10 dnl
|
Chris@10
|
11 dnl @version 2005-05-30
|
Chris@10
|
12 dnl @license GPLWithACException
|
Chris@10
|
13 dnl @author Steven G. Johnson <stevenj@alum.mit.edu> and Matteo Frigo.
|
Chris@10
|
14 AC_DEFUN([AX_GCC_VERSION],
|
Chris@10
|
15 [
|
Chris@10
|
16 AC_REQUIRE([AC_PROG_CC])
|
Chris@10
|
17 AC_CACHE_CHECK(whether we are using gcc $1.$2.$3 or later, ax_cv_gcc_$1_$2_$3,
|
Chris@10
|
18 [
|
Chris@10
|
19 ax_cv_gcc_$1_$2_$3=no
|
Chris@10
|
20 if test "$GCC" = "yes"; then
|
Chris@10
|
21 dnl The semicolon after "yes" below is to pacify NeXT's syntax-checking cpp.
|
Chris@10
|
22 AC_EGREP_CPP(yes, [
|
Chris@10
|
23 #ifdef __GNUC__
|
Chris@10
|
24 # if (__GNUC__ > $1) || (__GNUC__ == $1 && __GNUC_MINOR__ > $2) \
|
Chris@10
|
25 || (__GNUC__ == $1 && __GNUC_MINOR__ == $2 && __GNUC_PATCHLEVEL__ >= $3)
|
Chris@10
|
26 yes;
|
Chris@10
|
27 # endif
|
Chris@10
|
28 #endif
|
Chris@10
|
29 ], [ax_cv_gcc_$1_$2_$3=yes])
|
Chris@10
|
30 fi
|
Chris@10
|
31 ])
|
Chris@10
|
32 if test "$ax_cv_gcc_$1_$2_$3" = yes; then
|
Chris@10
|
33 m4_default([$4], :)
|
Chris@10
|
34 else
|
Chris@10
|
35 m4_default([$5], :)
|
Chris@10
|
36 fi
|
Chris@10
|
37 ])
|
Chris@10
|
38
|