summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-08-04 19:19:55 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-08-04 19:23:28 +0200
commit3fc35ac7633600d4a39c45e95d71eb177efcf555 (patch)
treebf347dfa401394ba6edd35577caf61b1ac46d274
parent1b99e2e2dc4e7f80d145aba415e1b7d375b5cbb7 (diff)
configure: Check if the compiler supports ISO C89 or C99 and which parameters are required
This first checks what is required for ISO C99 support and sets the relevant compiler parameters and if no C99 compiler is found, it checks for a C89 compiler. This enables us to check for and use C89/C99 functions that gcc hides from us without the correct compiler parameters.
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f85d350f4e..c4a8a8533a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,6 +218,7 @@ dnl *** checks for programs ***
dnl find a compiler
AC_PROG_CC
+AC_PROG_CC_STDC
dnl check if the compiler supports '-c' and '-o' options
AM_PROG_CC_C_O