netcdf-c/libncxml
Dennis Heimbigner 53464e8963 Allow optional use of libxml2
re: https://github.com/Unidata/netcdf-c/issues/2119

H/T to [Egbert Eich](https://github.com/e4t) and [Bas Couwenberg](https://github.com/sebastic) for this PR.

It is undesirable to make netcdf be dependent on the availability
of libxml2, but it is desirable to allow its use if available.

In order to do this, a wrapper API (include/ncxml.h) was constructed
that supports either ezxml or libxml2 as the implementation.
Additionally, the xml support code was moved to a new directory
netcdf-c/libncxml.

Primary changes:
* Create a new sub-directory named netcdf-c/libncxml to hold all the xml implementation code.
* Move ezxml.c and ezxml.h to libncxml
* Create a wrapper API -- include/ncxml.h
* Create an implementation, ncxml_ezxml.c to support use of ezxml.
* Create an implementation, ncxml_xml2.c to support use of libxml2.
* Add a check for libxml2 in configure.ac and CMakeLists.txt
* Modify libdap to use the wrapper API instead of ezxml directly.

Misc. Other Changes:
* Change include/netcdf_json.h from built source to be part of the distribution.
2021-11-01 22:37:05 -06:00
..
CMakeLists.txt Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
ezxml.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
ezxml.h Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
license.txt Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
Makefile.am Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
ncxml_ezxml.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
ncxml_xml2.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00