[vlc-commits] configure: allow C11 compiler for build system native compiler
Rémi Denis-Courmont
git at videolan.org
Sun Jun 21 23:13:12 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 21 22:21:44 2015 +0300| [dab7c5012610b5edae99adb7c59c4f2badd798fd] | committer: Rémi Denis-Courmont
configure: allow C11 compiler for build system native compiler
Also error out if necessary.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dab7c5012610b5edae99adb7c59c4f2badd798fd
---
configure.ac | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5332221..4aba1af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,8 +69,10 @@ AM_PROG_AS
AC_ARG_VAR([DESKTOP_FILE_VALIDATE], [Validator for desktop entry files])
AC_CHECK_PROGS(DESKTOP_FILE_VALIDATE, [${DESKTOP_FILE_VALIDATE} desktop-file-validate], :)
AC_PATH_PROG(YASM, yasm)
-AC_ARG_VAR([BUILDCC], [Build system C99 compiler command])
-AC_PATH_PROGS(BUILDCC, [c99-gcc c99])
+AC_ARG_VAR([BUILDCC], [Build system C11 or C99 compiler command])
+AC_PATH_PROGS(BUILDCC, [c11-gcc c11 c99-gcc c99], [
+ AC_MSG_ERROR([Cannot find native C99 compiler: please define BUILDCC.])
+])
dnl Check for compiler properties
AC_C_CONST
More information about the vlc-commits
mailing list