From 2f63efbdb7ab9e5161a38716ad3005674b9704e9 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 13 May 2013 10:04:09 +0200 Subject: [PATCH] build: do not error out when g++ is absent on non-BEOS Only BEOS/Haiku require g++ (due to sound_beos.cpp); on all other platforms, make sure we do not error out during linking when g++ is absent. Signed-off-by: Jan Engelhardt --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 6cf9a0b..5e845f3 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,18 @@ AC_SUBST(LD_VERSCRIPT) AC_CANONICAL_HOST AC_PROG_CC AC_PROG_CXX +case "$host_os" in +beos*|haiku*) + AS_IF([! which "$CXX" >/dev/null 2>/dev/null], + [AC_MSG_ERROR([C++ compiler required on this platform ($host_os)])]) + ;; +*) + # Do not error out on linking when g++ is absent. + CXXLD='${CCLD}' + AC_SUBST([CXXLD]) + ;; +esac + AC_PROG_INSTALL AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax])