I am currently working on a simple virtual machine project and have been using Autotools to reach as many systems as possible!
Originally, I utilized AX_CHECK_COMPILE_FLAG to enable -Wall -Wextra -pedantic -g3
, yet I feared that this would prevent the user from setting their own flags through $CXXFLAGS variable. Thus, I removed AX_CHECK_COMPILE_FLAG from my project and utilized a simple shell script that I could use such as the following:
#!/bin/bash
./configure CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -g3" && make && make check
My idea was to use this simple shell script during development, yet exclude it through my .gitattributes file and tell the user about the options available to them through my INSTALL.md file. However, am I right in doing this or should I go back to using AX_CHECK_COMPILE_FLAG?