[前][次][番号順一覧][スレッド一覧]

ruby-changes:20788

From: mrkn <ko1@a...>
Date: Thu, 4 Aug 2011 02:49:33 +0900 (JST)
Subject: [ruby-changes:20788] mrkn:r32836 (trunk): * configure.in: set CXX variable to the C++ compiler that matches the

mrkn	2011-08-04 02:49:22 +0900 (Thu, 04 Aug 2011)

  New Revision: 32836

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32836

  Log:
    * configure.in: set CXX variable to the C++ compiler that matches the
      C compiler specified by CC variable (e.g. use g++-4.2 for gcc-4.2).

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 32835)
+++ configure.in	(revision 32836)
@@ -87,6 +87,7 @@
   AC_DEFINE(CANONICALIZATION_FOR_MATHN)
 fi
 dnl checks for alternative programs
+AC_CANONICAL_BUILD
 AC_ARG_WITH(gcc,
 	AS_HELP_STRING([--without-gcc], [never use gcc]),
 	[
@@ -100,6 +101,14 @@
   AC_MSG_ERROR(cached CC is different -- throw away $cache_file
 (it is also a good idea to do 'make clean' before compiling))
 fi
+AS_CASE(["$build_os"],
+  [darwin11.*], [
+    AS_CASE(["x$CC"],
+      [xgcc-4.2|x/usr/bin/gcc-4.2], [: ${CXX=g++-4.2}],
+      [xgcc|x/usr/bin/gcc],         [: ${CXX=g++}],
+      [xcc|x/usr/bin/cc],           [: ${CXX=c++}],
+      [xclang|x/usr/bin/clang],     [: ${CXX=clang++}])
+  ])
 test -z "$CC" || ac_cv_prog_CC="$CC"
 
 if test "$program_prefix" = NONE; then
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32835)
+++ ChangeLog	(revision 32836)
@@ -1,3 +1,8 @@
+Thu Aug  4 02:45:10 2011  Kenta Murata  <mrkn@m...>
+
+	* configure.in: set CXX variable to the C++ compiler that matches the
+	  C compiler specified by CC variable (e.g. use g++-4.2 for gcc-4.2).
+
 Thu Aug  4 02:21:10 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/mkmf.rb (link_command): use static library only for bundled

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]