The gnuastro/config.h header contains information about the full Gnuastro installation on your system. Gnuastro developers should note that this is the only header that is not available within Gnuastro, it is only available to a Gnuastro library user after installation. Within Gnuastro, config.h (which is included in every Gnuastro .c file, see Coding conventions) has more than enough information about the overall Gnuastro installation.
This macro can be used as a string literal175 containing the version of Gnuastro that is being used. See Version numbering for the version formats. For example:
printf("Gnuastro version: %s\n", GAL_CONFIG_VERSION);
Libgit2 is an optional dependency of Gnuastro (see Optional dependencies).
When it is installed and detected at configure time, this macro will have a value of
Otherwise, it will have a value of
Gnuastro also comes with some wrappers to make it easier to use libgit2 (see Git wrappers (git.h)).
This macro will have a value of 1 when the CFITSIO of the host system has the
fits_is_reentrant function (available from CFITSIO version 3.30).
This function is used to see if CFITSIO was configured to read a FITS file simultaneously on different threads.
WCSLIB is the reference library for world coordinate system transformation (see WCSLIB and World Coordinate System (wcs.h)).
However, only more recent versions of WCSLIB also provide its version number.
If the WCSLIB that is installed on the system provides its version (through the possibly existing
wcslib_version function), this macro will have a value of one, otherwise it will have a value of zero.
This macro has a value of 1 if the host’s WCSLIB has the wcslib/dis.h header for distortion-related operations.
This macro has a value of 1 if the host’s WCSLIB reads and stores the MJDREF FITS header keyword as part of its core
This macro has a value of 1 if the host’s WCSLIB supports the
OBSFIX feature (used by
wcsfix function to parse the input WCS for known errors).
The POSIX threads standard define barriers as an optional requirement.
Therefore, some operating systems choose to not include it.
As one of the
./configure step checks, Gnuastro we check if your system has this POSIX thread barriers.
If so, this macro will have a value of
1, otherwise it will have a value of
see Implementation of
pthread_barrier for more.
The size of (number of bytes in) the system’s
Their values are commonly either 4 or 8 for 32-bit and 64-bit systems.
You can also get this value with the expression ‘
sizeof size_t’ for example without having to include this header.