summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-04-24 16:14:16 +0200
committerBruno Haible <bruno@clisp.org>2010-04-24 16:14:16 +0200
commit70f388252814c165b1d7262fa7f42db70900b640 (patch)
tree70c92d515fe1ec3e093ea5512acab28f68660fa5
parent195a02b4a4c99da9f2cdf8b00fd398db474f0033 (diff)
downloadgnulib-70f388252814c165b1d7262fa7f42db70900b640.tar.gz
ansi-c++-opt: Find correct compiler when cross-compiling.
-rw-r--r--ChangeLog7
-rw-r--r--m4/ansi-c++.m46
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 590ca2d3fa..c88ea6a775 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-24 Bruno Haible <bruno@clisp.org>
+
+ ansi-c++-opt: Find correct compiler when cross-compiling.
+ * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
+ AC_CHECK_PROGS.
+ Reported by Simon Josefsson.
+
2010-04-24 Giuseppe Scrivano <gscrivano@gnu.org>
vc-list-files: Add support for subversion
diff --git a/m4/ansi-c++.m4 b/m4/ansi-c++.m4
index b8bd73fb20..0b024379fd 100644
--- a/m4/ansi-c++.m4
+++ b/m4/ansi-c++.m4
@@ -1,4 +1,4 @@
-# ansi-c++.m4 serial 4
+# ansi-c++.m4 serial 5
dnl Copyright (C) 2002-2003, 2005, 2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -48,7 +48,9 @@ AC_DEFUN([gl_PROG_ANSI_CXX],
if test -n "$CCC"; then
CXX="$CCC"
else
- AC_CHECK_PROGS([CXX], [g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC], [:])
+ AC_CHECK_TOOLS([CXX],
+ [g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC],
+ [:])
fi
fi
if test "$CXX" != ":"; then