ruby-changes:40657
From: ngoto <ko1@a...>
Date: Wed, 25 Nov 2015 00:01:24 +0900 (JST)
Subject: [ruby-changes:40657] ngoto:r52736 (trunk): * configure.in: On Solaris, it is safe to define _LARGEFILE_SOURCE
ngoto 2015-11-25 00:00:57 +0900 (Wed, 25 Nov 2015) New Revision: 52736 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52736 Log: * configure.in: On Solaris, it is safe to define _LARGEFILE_SOURCE when _FILE_OFFSET_BITS=64 is defined (= when 32-bit compile). Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 52735) +++ configure.in (revision 52736) @@ -1322,6 +1322,24 @@ dnl check for large file stuff https://github.com/ruby/ruby/blob/trunk/configure.in#L1322 mv confdefs.h confdefs1.h : > confdefs.h AC_SYS_LARGEFILE +# On 32-bit Solaris, it is safe to define _LARGEFILE_SOURCE +# which is not added by AC_SYS_LARGEFILE. +if test x"$enable_largefile" != xno; then + AS_CASE(["$target_os"], [solaris*], [ + AC_MSG_CHECKING([wheather _LARGEFILE_SOURCE should be defined]) + AS_CASE(["${ac_cv_sys_file_offset_bits}:${ac_cv_sys_large_files}"], + ["64:"|"64:no"|"64:unknown"], [ + # insert _LARGEFILE_SOURCE before _FILE_OFFSET_BITS line + # that is the same order as "getconf LFS_CFLAGS" output + mv confdefs.h largefile0.h + : > confdefs.h + AC_DEFINE(_LARGEFILE_SOURCE) + cat largefile0.h >> confdefs.h + rm largefile0.h + AC_MSG_RESULT([yes]) + ], [AC_MSG_RESULT([no])]) + ]) +fi mv confdefs.h largefile.h mv confdefs1.h confdefs.h cat largefile.h >> confdefs.h Index: ChangeLog =================================================================== --- ChangeLog (revision 52735) +++ ChangeLog (revision 52736) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Nov 24 23:56:25 2015 Naohisa Goto <ngotogenome@g...> + + * configure.in: On Solaris, it is safe to define _LARGEFILE_SOURCE + when _FILE_OFFSET_BITS=64 is defined (= when 32-bit compile). + Tue Nov 24 10:00:10 2015 SHIBATA Hiroshi <hsbt@r...> * lib/rubygems/installer.rb: Fix two double-word typos. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/