--- configure.orig	2008-10-18 17:30:12.000000000 +0200
+++ configure	2008-10-18 17:30:15.000000000 +0200
@@ -15609,15 +15609,13 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
-#include <stdio.h>
+#include <string.h>
 #include <netcdf.h>
       int main(void) {
-        char *vlib;
-        vlib = nc_inq_libvers();
-        if (strcmp(vlib, "3.0") < 0) {
-          exit(1);
+        if (strstr(nc_inq_libvers(), "3.") == NULL) {
+          return 1;
         }
-        exit(0);
+        return 0;
       }
 
 _ACEOF
