aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2016-01-17 14:35:50 -0800
committerRuss Allbery <eagle@eyrie.org>2016-01-17 14:35:50 -0800
commitb8359f071ec37276000b4bfd0e20ca27e4062073 (patch)
tree69da6682ed82cb61934b6f450a5add5703101710
parent128699d54becd0aa45f1fd43a0ab38642a58ce86 (diff)
Add the correct glue for selecting warning flags
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3b3c787..6b177a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,10 @@ AS_IF([test x"$REMCTLD" != x],
[AC_DEFINE_UNQUOTED([PATH_REMCTLD], ["$REMCTLD"],
[Define to the full path to remctld to run remctl tests.])])
+dnl Enable appropriate warnings.
+AM_CONDITIONAL([WARNINGS_GCC], [test x"$GCC" = xyes && test x"$CLANG" != xyes])
+AM_CONDITIONAL([WARNINGS_CLANG], [test x"$CLANG" = xyes])
+
dnl Output section.
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile])