Fix check for C++ compiler when cross-compiling

Use AC_CHECK_TOOLS instead of AC_CHECK_PROGS. Patch from bug #577711.
This commit is contained in:
Hib Eris 2009-11-03 15:06:29 +02:00 committed by Tor Lillqvist
parent b64ee1f020
commit 9c292a831f

View File

@ -267,7 +267,7 @@ AC_PROG_CC
AC_PROG_CPP AC_PROG_CPP
dnl Check for a working C++ compiler, but do not bail out, if none is found. dnl Check for a working C++ compiler, but do not bail out, if none is found.
AC_CHECK_PROGS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], [gcc]) AC_CHECK_TOOLS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], [gcc])
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=) AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=)