summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-15 13:12:49 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-15 13:12:49 -0700
commitb6e38e7c52883d89559044bfe8047c32f466fb47 (patch)
tree5cdc1296c3c2cb0b25df6e5fbf6ced343b012fca /configure.ac
parent0e8826d5fbff2b6aedce07c0097c7e57e7e9d9be (diff)
downloadtcpdump-b6e38e7c52883d89559044bfe8047c32f466fb47.tar.gz
Don't warn about declarations after statements.
We now allow them, and require a compiler that supports them, so there's no need to warn about them.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0202f039..2439aaa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,14 @@ AC_CONFIG_SRCDIR(tcpdump.c)
AC_CANONICAL_HOST
AC_LBL_C_INIT_BEFORE_CC(V_INCLS)
+#
+# Try to enable as many C99 features as we can.
+# At minimum, we want C++/C99-style // comments.
+#
AC_PROG_CC_C99
+if test "$ac_cv_prog_cc_c99" = "no"; then
+ AC_MSG_WARN([The C compiler does not support C99; there may be compiler errors])
+fi
AC_LBL_C_INIT(V_CCOPT, V_INCLS)
AC_LBL_C_INLINE