configure script does not support static netcdf build
|Reported by:||etourigny||Owned by:||etourigny|
|Cc:||kyngchaos@…, Kyle Shannon|
Current configure script only supports a shared netcdf build, which does not require additional linking parameters and is also the default for most linux distribution packaging.
William Kyngesburye reported on the gdal-dev list problems in building gdal on osx with a static netcdf build, with hdf5 and curl:
OK, I have NetCDF now with HDF4/5 & DAP. Now configure problems again (again, netcdf is static library, as are HDF4, HDF5 and DAP): My netcdf needs curl (it defaults to using curl), but GDAL doesn't test netcdf with that (curl is tested much later). Netcdf4 also needs some symbols from libhdf5_hl, but this is not checked for. ... OK, looking good, after patching configure to work around netcdf problems mentioned.
nc-config --libs should give the libs necessary for a particular netcdf build, and resolve the problems stated above.
Can William (what is your username?) provide the patch used to resolve the configure problems here?
Also, is it a requirement or limitation to have static builds on osx?