Re: [netcdfgroup] Getting netcdf version

Am Wed, 13 Jan 2010 08:45:28 +0100
schrieb "C. Meissa" <carsten.meissa@xxxxxx>:

> Uh, this sounds nice. But requires my autotools to compile a test
> programm to determine the version of netcdf and then decide whether
> to link to libhdf or not… Quite inconvenient, isn’t it?

Many autotool checks do that, in fact. Often it's the only way to check if 
there is some functionality.

> Is there also a possibility to check, whether this is a full
> fortran-lib or just a fortran-api-lib which requires me to link to
> the c_lib, too?

Well... you use the macros to look for the needed libs to link in to get NetCDF 
functions:

http://www.gnu.org/software/autoconf/manual/html_node/Libraries.html

You will need to test for the few possible cases...


Alrighty then,

Thomas.

-- 
Dipl. Phys. Thomas Orgis
Atmospheric Modelling
Alfred-Wegener-Institute for Polar and Marine Research



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: