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