summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-01-20 12:17:25 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2016-03-02 11:17:28 +0000
commit3866ac6b84fe6e5a349d430f317aa4c0f9a2b091 (patch)
treeb7dd62ac5a84982499ed5624c28107fb6378517b
parent9746e800cdfec8c6e1ff77a8adf6a7fff088f7e5 (diff)
configure.ac: use standard macro to set compiler C99 mode
v2: s/libdrm/libglvnd/ (Kyle) v3: fix grammar in error message (Arthur Huillet) Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 98f5a51..4a8127c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,7 @@ AC_PROG_AWK
AC_PROG_CXX
AC_PROG_CC
+AC_PROG_CC_C99
AM_PROG_AS
AC_PROG_INSTALL
AC_PROG_LN_S
@@ -31,6 +32,10 @@ AC_PROG_LIBTOOL
AC_CHECK_PROGS([PYTHON2], [python2.7 python2 python])
AC_CHECK_PROGS([PERL], [perl])
+if test "x$ac_cv_prog_cc_c99" = xno; then
+ AC_MSG_ERROR([Building libglvnd requires a C99-enabled compiler])
+fi
+
dnl
dnl Auxiliary ELF symbol filtering support
dnl
@@ -272,7 +277,7 @@ AX_CHECK_LINK_FLAG([-Xlinker --no-undefined],
[AC_SUBST([LINKER_FLAG_NO_UNDEFINED], [""])])
dnl default CFLAGS
-CFLAGS="$CFLAGS -Wall -Werror -std=gnu99 -include config.h -fvisibility=hidden $DEFINES"
+CFLAGS="$CFLAGS -Wall -Werror -include config.h -fvisibility=hidden $DEFINES"
AC_CONFIG_FILES([Makefile
libglvnd.pc