[spice-streaming-agent PATCH] build: Error out on missing AX_CXX_COMPILE_STDCXX_11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Christophe Fergeau <cfergeau@xxxxxxxxxx>

A missing AX_CXX_COMPILE_STDCXX_11 at autoreconf time will only trigger
a non-fatal "command not found" when configure runs, but then
compilation will unexpectedly fail unless -std=c++11 is added to the
CXXFLAGS.
This commit makes sure we error out at autoreconf time when the macro
is unknown.

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
Acked-by: Uri Lublin <uril@xxxxxxxxxx>
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 699dc3b..407f17b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,7 @@ if test x"$ac_cv_prog_cc_c99" = xno; then
 fi
 AC_PROG_CXX
 AC_LANG(C++)
+m4_ifndef([AX_CXX_COMPILE_STDCXX_11], [m4_fatal([Missing AX_CXX_COMPILE_STDCXX_11, install autoconf-archive])])
 AX_CXX_COMPILE_STDCXX_11
 AC_PROG_INSTALL
 AC_CANONICAL_HOST
-- 
2.17.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]