diff options
| author | djcb <djcb@djcbsoftware.nl> | 2017-10-27 09:29:54 +0300 |
|---|---|---|
| committer | djcb <djcb@djcbsoftware.nl> | 2017-10-27 09:33:40 +0300 |
| commit | f02758c1c1a02da7f4b02ed557b45553da3a6c20 (patch) | |
| tree | cb53ccc120b0ede62bde5d33852a10d8ee8e264b /configure.ac | |
| parent | 160d3ec03686aca2ed931735e03e6bd67ee1be30 (diff) | |
configure: make compiler-check more verbose
And explicitly raise an error if the right compiler is not found.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 590b3b9..b74f58c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -c## Copyright (C) 2008-2017 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> +## Copyright (C) 2008-2017 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -53,6 +53,11 @@ AC_PROG_INSTALL AC_HEADER_STDC AX_CXX_COMPILE_STDCXX_14 +AS_IF([test "x$ax_cv_cxx_compile_cxx14" != "xyes"],[ + AC_MSG_ERROR([No C++14 compiler found, please upgrade (g++ >= 5 or clang >= 3.4)]) +],[ + AC_MSG_NOTICE([Found C++14 compatible compiler]) +]) AX_COMPILER_FLAGS(,,[yes]) AX_VALGRIND_CHECK |
