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