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

ruby-changes:27122

From: akr <ko1@a...>
Date: Sat, 9 Feb 2013 22:14:35 +0900 (JST)
Subject: [ruby-changes:27122] akr:r39174 (trunk): * configure.in: move header files check to the beginning of

akr	2013-02-09 22:13:01 +0900 (Sat, 09 Feb 2013)

  New Revision: 39174

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

  Log:
    * configure.in: move header files check to the beginning of
      "header and library section".
      test rlim_t with sys/types.h and sys/time.h for MirOS BSD.
      sys/types.h and sys/time.h is gurded by #ifdef and the above move
      is required for this change.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 39173)
+++ configure.in	(revision 39174)
@@ -720,6 +720,21 @@ fi https://github.com/ruby/ruby/blob/trunk/configure.in#L720
 test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\""
 test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\""
 
+}
+{ # header and library section
+
+dnl Checks for header files.
+AC_HEADER_DIRENT
+dnl AC_HEADER_STDC has been checked in AC_USE_SYSTEM_EXTENSIONS
+AC_HEADER_STDBOOL
+AC_HEADER_SYS_WAIT
+AC_CHECK_HEADERS(limits.h sys/file.h sys/ioctl.h sys/syscall.h\
+		 fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
+		 syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \
+		 sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \
+		 ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \
+		 net/socket.h sys/socket.h process.h sys/prctl.h)
+
 dnl check for large file stuff
 mv confdefs.h confdefs1.h
 : > confdefs.h
@@ -921,7 +936,15 @@ RUBY_REPLACE_TYPE(gid_t, int, GIDT) https://github.com/ruby/ruby/blob/trunk/configure.in#L936
 RUBY_REPLACE_TYPE(time_t, [], TIMET, [@%:@include <time.h>])
 RUBY_REPLACE_TYPE(dev_t, [int long "long long"], DEVT)
 RUBY_REPLACE_TYPE(mode_t, ["unsigned int" long], MODET, [@%:@include <sys/stat.h>])
-RUBY_REPLACE_TYPE(rlim_t, [int long "long long"], RLIM, [@%:@include <sys/resource.h>])
+RUBY_REPLACE_TYPE(rlim_t, [int long "long long"], RLIM, [
+@%:@ifdef HAVE_SYS_TYPES_H
+@%:@include <sys/types.h>
+@%:@endif
+@%:@ifdef HAVE_SYS_TYPES_H
+@%:@include <sys/time.h>
+@%:@endif
+@%:@include <sys/resource.h>
+])
 
 AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes,
   [AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],
@@ -1117,9 +1140,6 @@ fi https://github.com/ruby/ruby/blob/trunk/configure.in#L1140
 
 RUBY_APPEND_OPTION(XCFLAGS, -DRUBY_EXPORT)
 
-}
-{ # header and library section
-
 dnl Check whether we need to define sys_nerr locally
 AC_CHECK_DECLS([sys_nerr], [], [], [$ac_includes_default
 @%:@include <errno.h>])
@@ -1330,17 +1350,6 @@ else https://github.com/ruby/ruby/blob/trunk/configure.in#L1350
     ac_cv_header_sys_socket_h=${ac_cv_header_sys_socket_h=yes}
 fi
 
-dnl Checks for header files.
-AC_HEADER_DIRENT
-dnl AC_HEADER_STDC has been checked in AC_USE_SYSTEM_EXTENSIONS
-AC_HEADER_STDBOOL
-AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(limits.h sys/file.h sys/ioctl.h sys/syscall.h\
-		 fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
-		 syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \
-		 sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \
-		 ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \
-		 net/socket.h sys/socket.h process.h sys/prctl.h)
 
 AC_TYPE_SIZE_T
 RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include <sys/types.h>])
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39173)
+++ ChangeLog	(revision 39174)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Feb  9 21:11:21 2013  Tanaka Akira  <akr@f...>
+
+	* configure.in: move header files check to the beginning of
+	  "header and library section".
+	  test rlim_t with sys/types.h and sys/time.h for MirOS BSD.
+	  sys/types.h and sys/time.h is gurded by #ifdef and the above move
+	  is required for this change.
+
 Sat Feb  9 17:45:58 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in, version.c: prevent duplicated load paths by empty

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

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