aboutsummaryrefslogtreecommitdiff
path: root/config-daemon.ac
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-05-19 09:09:47 +0200
committerLudovic Courtès <ludo@gnu.org>2015-05-19 16:09:58 +0200
commit368d08f74744ed5d5ef5ef747e86bddbfaa47312 (patch)
tree66e45685184aa5e086d132541d9841e63d2abf2d /config-daemon.ac
parent2bb04905f86f9c3f1d27557fbff8cbdc776560a3 (diff)
downloadgnu-guix-368d08f74744ed5d5ef5ef747e86bddbfaa47312.tar
gnu-guix-368d08f74744ed5d5ef5ef747e86bddbfaa47312.tar.gz
build: Make sure $CXX supports C++11.
* m4/guix.m4 (GUIX_CHECK_CXX11, GUIX_ASSERT_CXX11): New macros. * config-daemon.ac: Use 'AC_LANG([C++])' and 'GUIX_ASSERT_CXX11'.C * doc/guix.texi (Requirements): Mention C++11 support.
Diffstat (limited to 'config-daemon.ac')
-rw-r--r--config-daemon.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/config-daemon.ac b/config-daemon.ac
index fb80c754c9..a6cf29ca42 100644
--- a/config-daemon.ac
+++ b/config-daemon.ac
@@ -5,9 +5,12 @@ AC_MSG_RESULT([$guix_build_daemon])
dnl C++ environment. This macro must be used unconditionnaly.
AC_PROG_CXX
+AC_LANG([C++])
if test "x$guix_build_daemon" = "xyes"; then
+ GUIX_ASSERT_CXX11
+
AC_PROG_RANLIB
AC_CONFIG_HEADER([nix/config.h])