aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/m4/acx_strict.m4
blob: 0bb8089a03daef4d7190dbe8092a6c1c0ffb5686 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
])