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

ruby-changes:50379

From: normal <ko1@a...>
Date: Tue, 20 Feb 2018 17:44:45 +0900 (JST)
Subject: [ruby-changes:50379] normal:r62495 (trunk): tool/m4/ruby_replace_type.m4: use AC_CHECK_TYPES for HAVE_* macros

normal	2018-02-20 17:44:38 +0900 (Tue, 20 Feb 2018)

  New Revision: 62495

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62495

  Log:
    tool/m4/ruby_replace_type.m4: use AC_CHECK_TYPES for HAVE_* macros
    
    AC_CHECK_TYPE (no "S") does not define HAVE_* macros for types,
    so use AC_CHECK_TYPES (with "S") instead.  Without this,
    HAVE_CLOCKID_T goes undefined and I can't USE_MONOTONIC_COND in
    thread_pthread.c :<
    
    Fixes: r62446 (git 673ae0e3c9cefd693ef82f19a6761e147fc6de93)
    ("configure.ac: check clockid_t with necessary headers")
    
    * tool/m4/ruby_replace_type.m4: use AC_CHECK_TYPES for HAVE_* macros
      [ruby-core:85659] [Bug #14494]

  Modified files:
    trunk/tool/m4/ruby_replace_type.m4
Index: tool/m4/ruby_replace_type.m4
===================================================================
--- tool/m4/ruby_replace_type.m4	(revision 62494)
+++ tool/m4/ruby_replace_type.m4	(revision 62495)
@@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_replace_type.m4#L1
 # -*- Autoconf -*-
 dnl RUBY_REPLACE_TYPE [typename] [default type] [macro type] [included]
 AC_DEFUN([RUBY_REPLACE_TYPE], [dnl
-    AC_CHECK_TYPE([$1],
+    AC_CHECK_TYPES([$1],
 		  [n="patsubst([$1],["],[\\"])"],
 		  [n="patsubst([$2],["],[\\"])"],
 		  [$4])

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

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