Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
configure: check for c++ availability (mono#14461)
Since commit d8af775, c++ compiler is required to compile.
This patch checks if the c++ compiler is available as soon as possible
and returns an error in case it is not found.

Fixes: mono#14195

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
  • Loading branch information
angeloc authored and Martin Baulig committed May 15, 2019
1 parent ee03ad1 commit 1c79e8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Expand Up @@ -573,6 +573,10 @@ dnl We should use AM_PROG_AS, but it's not available on automake/aclocal 1.4
AC_SUBST(CCAS)
AC_SUBST(CCASFLAGS)

if test "x$CXX" = "xno"; then
AC_MSG_ERROR([No c++ compiler found. You need to install a c++ compiler])
fi

# AC_PROG_CXX helpfully sets CXX to g++ even if no c++ compiler is found so check
# GXX instead. See http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00056.html
if test "x$CXX" = "xg++"; then
Expand Down

0 comments on commit 1c79e8c

Please sign in to comment.