I suggest to reuse a higher level build system so that powerful checks for software features will become easier. - [CMake](https://cmake.org/ "Building software with CMake") - [Autotools](https://www.gnu.org/software/autoconf/autoconf.html#introduction "Building software with Autoconf")