diff options
author | Alexey Neyman <stilor@att.net> | 2017-01-31 09:31:10 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-02-02 16:39:23 -0800 |
commit | df80f4e69db3d088a5c7940a28c95f494f0f8df5 (patch) | |
tree | 182b4f4a8867e7693d1f22c02755eb5f2c1970d5 /configure.ac | |
parent | 1baddb19ee04bc5e7603cc147f5800f2ecfa944f (diff) | |
download | crosstool-ng-df80f4e69db3d088a5c7940a28c95f494f0f8df5.tar.gz crosstool-ng-df80f4e69db3d088a5c7940a28c95f494f0f8df5.tar.bz2 crosstool-ng-df80f4e69db3d088a5c7940a28c95f494f0f8df5.zip |
Check for C++ in configure
Recent GMP/GCC/GDB releases require c++.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e0cd2022..ba247113 100644 --- a/configure.ac +++ b/configure.ac @@ -186,8 +186,10 @@ AC_PROG_LN_S #-------------------------------------------------------------------- # A bunch of boring tests... #-------------------------------------------------------------------- +# Modern GCC/GDB releases require C++ support in the compiler AC_PROG_CC -AS_IF([test -z "$CC"], +AC_PROG_CXX +AS_IF([test -z "$CC" -o -z "$CXX"], [AC_MSG_ERROR([no suitable compiler found])]) AC_PROG_CPP |