Sebastian Parschauer Add support to properly report SLES12-SAP
- https://github.com/vmware/open-vm-tools/pull/123
+
+Andrew Stormont Fix finding C++ compiler for cross-compiling
+ - https://github.com/vmware/open-vm-tools/pull/206
+
################################################################################
-### Copyright (C) 2007-2017 VMware, Inc. All rights reserved.
+### Copyright (C) 2007-2018 VMware, Inc. All rights reserved.
###
### Configure script for building the VMware OSS Tools.
###
[with_icu=yes])
if test "$have_x" = "yes" -o "$with_icu" = "yes"; then
- AC_CHECK_TOOL([have_cxx], [$CXX], [no])
+ # AC_CHECK_PROG fails to locate CXX if it's set to an absolute
+ # path and it includes arguments, which is often the case when
+ # cross compling. Try to handle this case directly.
+ case "$CXX" in
+ [/*])
+ AS_IF(test -x ${CXX%% *}, [have_cxx=yes], [have_cxx=no])
+ ;;
+ [*])
+ AC_CHECK_PROG([have_cxx], [$CXX], [yes], [no])
+ ;;
+ esac
if test "$have_cxx" = "no"; then
AC_MSG_ERROR([C++ compiler not found. Make sure you have a C++ compiler installed or configure without X11 (using --without-x) and without ICU (using --without-icu).])
fi