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

ruby-changes:27979

From: nobu <ko1@a...>
Date: Mon, 1 Apr 2013 14:41:37 +0900 (JST)
Subject: [ruby-changes:27979] nobu:r40031 (trunk): configure.in: clang check

nobu	2013-04-01 14:41:27 +0900 (Mon, 01 Apr 2013)

  New Revision: 40031

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

  Log:
    configure.in: clang check
    
    * configure.in: should not use AC_COMPILE_IFELSE before
      AC_USE_SYSTEM_EXTENSIONS.  [Bug #8192]

  Modified files:
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 40030)
+++ configure.in	(revision 40031)
@@ -396,12 +396,13 @@ AS_CASE(["$host_os:$build_os"], https://github.com/ruby/ruby/blob/trunk/configure.in#L396
     # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported)
     # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn)
     # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
-    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
+    if ! $CC -E -xc - <<SRC >/dev/null; then
 	@%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
 	@%:@error premature clang
-	@%:@endif])],
-	[],
-	[AC_MSG_ERROR([clang version 3.0 or later is required])])
+	@%:@endif
+SRC
+	AC_MSG_ERROR([clang version 3.0 or later is required])
+    fi
 ])
 if test x"${build}" != x"${host}"; then
   AC_CHECK_TOOL(CC, gcc)

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

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