diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-10-07 11:00:31 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-10-07 18:01:01 +0000 |
commit | 8b030b61a931892ff46eae438f6b9f3b7119115e (patch) | |
tree | 2715caa54713b6d97d3ae138b355dc096b9d74dd | |
parent | 53cfeca535c657b348cd232629e07d783a36aa88 (diff) |
Don't just ask for C, ask for standard C - preferably C99.
We're using some C99 features, such as variadic macros, so if there's a
compiler flag needed for C99 features, make sure it's supplied. If the
compiler doesn't support standard C, complain.
Change-Id: I6fb18f5222567249370b3d43065f2258dbde7e4d
Reviewed-on: https://code.wireshark.org/review/10866
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 592448d862..e708e0f8ba 100644 --- a/configure.ac +++ b/configure.ac @@ -59,7 +59,11 @@ AM_DISABLE_STATIC # # Checks for programs used in the main build process. # -AC_PROG_CC +AC_PROG_CC_STDC +if test "$ac_cv_prog_cc_stdc" == "no" +then + AC_MSG_ERROR([The C compiler does not support standard C]) +fi AM_PROG_CC_C_O AC_PROG_CXX AC_PROG_CPP |