summarylogtreecommitdiffstats
path: root/netcdf_fftw2.patch
diff options
context:
space:
mode:
authorConnor Behan2015-06-08 15:21:30 -0400
committerConnor Behan2015-06-08 15:21:30 -0400
commitc29326187aba75a296d164dd1efb423c24ad002d (patch)
treea93f71ca00cd8e6419a79b48e8438137b75607ae /netcdf_fftw2.patch
downloadaur-c29326187aba75a296d164dd1efb423c24ad002d.tar.gz
Initial import
Diffstat (limited to 'netcdf_fftw2.patch')
-rw-r--r--netcdf_fftw2.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/netcdf_fftw2.patch b/netcdf_fftw2.patch
new file mode 100644
index 000000000000..6e3ea58f57ea
--- /dev/null
+++ b/netcdf_fftw2.patch
@@ -0,0 +1,33 @@
+diff -Naur grace-5.1.22/configure grace-5.1.22.new/configure
+--- grace-5.1.22/configure 2007-02-16 22:44:49.000000000 +0000
++++ grace-5.1.22.new/configure 2007-09-28 23:03:29.000000000 +0100
+@@ -15614,7 +15614,7 @@
+ int main(void) {
+ char *vlib;
+ vlib = nc_inq_libvers();
+- if (strcmp(vlib, "3.0") < 0) {
++ if (((vlib[0] == '"') && (strcmp(vlib, "\"3.0") < 0)) || ((vlib[0] != '"') && (strcmp(vlib, "3.0") < 0))){
+ exit(1);
+ }
+ exit(0);
+@@ -15722,7 +15722,7 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+
+-#include <fftw.h>
++#include <dfftw.h>
+ #include <string.h>
+ int main(void) {
+ char *vlib = (char *) fftw_version;
+diff -Naur grace-5.1.22/src/fourier.c grace-5.1.22.new/src/fourier.c
+--- grace-5.1.22/src/fourier.c 2004-07-04 03:47:45.000000000 +0700
++++ grace-5.1.22.new/src/fourier.c 2009-06-16 02:51:37.229858237 +0700
+@@ -230,7 +230,7 @@
+ #else
+ /* Start of new FFTW-based transforms by Marcus H. Mendenhall */
+
+-#include <fftw.h>
++#include <dfftw.h>
+ #include <string.h>
+
+ static char *wisdom_file=0;