summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2018-06-01 02:42:30 +0300
committerFrediano Ziglio <fziglio@redhat.com>2018-06-01 09:25:14 +0100
commit21e29710838253813b7971647f1ec09d7e9f03ea (patch)
tree71f98e7e430240d2d66a7e1e48d5e80c99cc8a76
parent3754cefe269c7922b35d665be23c19353036882e (diff)
build: Error out on missing AX_CXX_COMPILE_STDCXX_11
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@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
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