move macro defintions behind option settings
move macro defintions behind option settings

This allows us to access HDF5 variables in the macros.

Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c