diff options
Diffstat (limited to 'projects/sample/autoconf/m4/cxx_flag_check.m4')
-rw-r--r-- | projects/sample/autoconf/m4/cxx_flag_check.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/sample/autoconf/m4/cxx_flag_check.m4 b/projects/sample/autoconf/m4/cxx_flag_check.m4 new file mode 100644 index 0000000..62454b7 --- /dev/null +++ b/projects/sample/autoconf/m4/cxx_flag_check.m4 @@ -0,0 +1,2 @@ +AC_DEFUN([CXX_FLAG_CHECK], + [AC_SUBST($1, `$CXX -Werror $2 -fsyntax-only -xc /dev/null 2>/dev/null && echo $2`)]) |