No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / wflags.m4
blobcc08bb58d0bd3351be18f8771d3a99ebd62199db
1 dnl $Heimdal: wflags.m4 21183 2007-06-20 03:07:07Z lha $
2 dnl $NetBSD$
3 dnl
4 dnl set WFLAGS
6 AC_DEFUN([rk_WFLAGS],[
8 AC_ARG_ENABLE(developer, 
9         AS_HELP_STRING([--enable-developer], [enable developer warnings]))
10 if test "X$enable_developer" = Xyes; then
11     dwflags="-Werror"
14 WFLAGS_NOUNUSED=""
15 WFLAGS_NOIMPLICITINT=""
16 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
17   # -Wno-implicit-int for broken X11 headers
18   # leave these out for now:
19   #   -Wcast-align doesn't work well on alpha osf/1
20   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
21   #   -Wmissing-declarations -Wnested-externs
22   WFLAGS="ifelse($#, 0,-Wall, $1) $dwflags"
23   WFLAGS_NOUNUSED="-Wno-unused"
24   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
26 AC_SUBST(WFLAGS)dnl
27 AC_SUBST(WFLAGS_NOUNUSED)dnl
28 AC_SUBST(WFLAGS_NOIMPLICITINT)dnl