aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/m4/acx_strict.m4
diff options
context:
space:
mode:
Diffstat (limited to 'SoftHSMv2/m4/acx_strict.m4')
-rw-r--r--SoftHSMv2/m4/acx_strict.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/SoftHSMv2/m4/acx_strict.m4 b/SoftHSMv2/m4/acx_strict.m4
new file mode 100644
index 0000000..0bb8089
--- /dev/null
+++ b/SoftHSMv2/m4/acx_strict.m4
@@ -0,0 +1,12 @@
+AC_DEFUN([ACX_STRICT],[
+ AC_ARG_ENABLE(
+ [strict],
+ [AS_HELP_STRING([--enable-strict],[enable strict compile mode @<:@enabled@:>@])],
+ ,
+ [enable_strict="yes"]
+ )
+ if test "${enable_strict}" = "yes"; then
+ CFLAGS="${CFLAGS} -Wall -Wextra"
+ CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
+ fi
+])