#46 Test for HAVE_NETCDF4_H incorrect

closed-fixed
None
5
2011-06-26
2011-06-23
Anonymous
No

The test for HAVE_NETCDF4_H greps the output of cpp with #include <netcdf.h> for NC_CHUNKED. This is incorrect because cpp does not output defines.

[root@orca ~]# grep NC_CHUNKED /usr/include/netcdf.h
#define NC_CHUNKED 0
[root@orca ~]# cat /tmp/conftest
/* end confdefs.h. */
#include <netcdf.h>
[root@orca ~]# cpp /tmp/conftest | grep NC_CHUNKED
[root@orca ~]#

You want to use AC_CHECK_DECL instead.

Discussion

  • Charlie Zender

    Charlie Zender - 2011-06-26
    • assigned_to: nobody --> zender
    • status: open --> closed-fixed
     
  • Charlie Zender

    Charlie Zender - 2011-06-26

    Thanks for this autoconf tip. I have changed the configure.in to use AC_CHECK_DECL. hopefully this will improve netCDF4 support.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks