[glib/glib-2-22] Fix check for C++ compiler when cross-compiling
- From: Tor Lillqvist <tml src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/glib-2-22] Fix check for C++ compiler when cross-compiling
- Date: Tue, 3 Nov 2009 13:09:42 +0000 (UTC)
commit e7f6869b7e338fff2c3aafeed84aaaf838606624
Author: Hib Eris <hib hiberis nl>
Date: Tue Nov 3 15:06:29 2009 +0200
Fix check for C++ compiler when cross-compiling
Use AC_CHECK_TOOLS instead of AC_CHECK_PROGS. Patch from bug #577711.
configure.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 5e409c6..3cf30d7 100644
--- a/configure.in
+++ b/configure.in
@@ -267,7 +267,7 @@ AC_PROG_CC
AC_PROG_CPP
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_CPLUSPLUS
AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]