My project follows the POSIX.1-2008 standard and I would like to ensure that the user's implementation conforms to this standard.
So far I've been using AC_DEFINE
to define the _POSIX_C_SOURCE
macro as specified in the POSIX standard.
AC_DEFINE([_POSIX_C_SOURCE], [200809L], [Define the POSIX version])
However, since this is a simple C preprocessor #define
macro , it does nothing to prevent an implementation that isn't POSIX-compliant from compiling.
Does Autoconf offer a standard macro to check for the implementation's conformance to a specific POSIX standard?