annotate fft/fftw/fftw-3.3.4/m4/ax_gcc_version.m4 @ 40:223f770b5341 kissfft-double tip

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