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

ruby-changes:3511

From: ko1@a...
Date: Sun, 13 Jan 2008 15:36:15 +0900 (JST)
Subject: [ruby-changes:3511] nobu - Ruby:r14989 (ruby_1_8, trunk): * configure.in: moved broken syscall checks from process.c etc.

nobu	2008-01-11 12:27:46 +0900 (Fri, 11 Jan 2008)

  New Revision: 14989

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/configure.in
    branches/ruby_1_8/process.c
    trunk/ChangeLog
    trunk/configure.in
    trunk/process.c

  Log:
    * configure.in: moved broken syscall checks from process.c etc.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/configure.in?r1=14989&r2=14988&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14989&r2=14988&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14989&r2=14988&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/process.c?r1=14989&r2=14988&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/configure.in?r1=14989&r2=14988&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=14989&r2=14988&diff_format=u

Index: configure.in
===================================================================
--- configure.in	(revision 14988)
+++ configure.in	(revision 14989)
@@ -465,7 +465,19 @@
 nextstep*)	;;
 openstep*)	;;
 rhapsody*)	;;
-darwin*)	LIBS="-lobjc $LIBS";;
+darwin*)	LIBS="-lobjc $LIBS"
+		AC_TRY_CPP([#include <AvailabilityMacros.h>
+		    #if MAC_OS_X_VERSION_MAX_ALLOWED <= 1040
+		    #error pre OS X 10.4
+		    [!<===== pre OS X 10.4 =====>]
+		    #endif
+		    ], [/* nothing */], [],
+		    [
+		    AC_DEFINE(BROKEN_SETREUID, 1)
+		    AC_DEFINE(BROKEN_SETREGID, 1)
+		    ac_cv_header_ucontext_h=no
+		    ])
+		;;
 hpux*)		LIBS="-lm $LIBS"
 		ac_cv_c_inline=no;;
 human*)		ac_cv_func_getpgrp_void=yes
@@ -520,6 +532,8 @@
 		ac_cv_func_setrlimit=no
 		;;
 bsdi*)          LIBS="-lm $LIBS"
+		AC_DEFINE(BROKEN_SETREUID, 1)
+		AC_DEFINE(BROKEN_SETREGID, 1)
                 ac_cv_sizeof_rlim_t=8;;
 freebsd*)	LIBS="-lm $LIBS"
 		AC_CACHE_CHECK([whether -lxpg4 has to be linked],
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14988)
+++ ChangeLog	(revision 14989)
@@ -1,5 +1,7 @@
-Fri Jan 11 11:57:36 2008  Nobuyoshi Nakada  <nobu@r...>
+Fri Jan 11 12:27:44 2008  Nobuyoshi Nakada  <nobu@r...>
 
+	* configure.in: moved broken syscall checks from process.c etc.
+
 	* defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
 	  configure.
 
Index: process.c
===================================================================
--- process.c	(revision 14988)
+++ process.c	(revision 14989)
@@ -100,11 +100,6 @@
 #undef HAVE_SETRGID
 #endif
 
-#if defined(__MacOS_X__) || defined(__bsdi__)
-#define BROKEN_SETREUID 1
-#define BROKEN_SETREGID 1
-#endif
-
 #ifdef BROKEN_SETREUID
 #define setreuid ruby_setreuid
 #endif
Index: ruby_1_8/process.c
===================================================================
--- ruby_1_8/process.c	(revision 14988)
+++ ruby_1_8/process.c	(revision 14989)
@@ -96,11 +96,6 @@
 #undef HAVE_SETRGID
 #endif
 
-#if defined(__MacOS_X__) || defined(__bsdi__)
-#define BROKEN_SETREUID 1
-#define BROKEN_SETREGID 1
-#endif
-
 #ifdef BROKEN_SETREUID
 #define setreuid ruby_setreuid
 #endif
Index: ruby_1_8/configure.in
===================================================================
--- ruby_1_8/configure.in	(revision 14988)
+++ ruby_1_8/configure.in	(revision 14989)
@@ -370,7 +370,19 @@
 nextstep*)	;;
 openstep*)	;;
 rhapsody*)	;;
-darwin*)	LIBS="-lobjc $LIBS";;
+darwin*)	LIBS="-lobjc $LIBS"
+		AC_TRY_CPP([#include <AvailabilityMacros.h>
+		    #if MAC_OS_X_VERSION_MAX_ALLOWED <= 1040
+		    #error pre OS X 10.4
+		    [!<===== pre OS X 10.4 =====>]
+		    #endif
+		    ], [/* nothing */], [],
+		    [
+		    AC_DEFINE(BROKEN_SETREUID, 1)
+		    AC_DEFINE(BROKEN_SETREGID, 1)
+		    ac_cv_header_ucontext_h=no
+		    ])
+		;;
 hpux*)		LIBS="-lm $LIBS"
 		ac_cv_c_inline=no;;
 human*)		ac_cv_func_getpgrp_void=yes
@@ -426,6 +438,8 @@
 		ac_cv_func_setrlimit=no
 		;;
 bsdi*)          LIBS="-lm $LIBS"
+		AC_DEFINE(BROKEN_SETREUID, 1)
+		AC_DEFINE(BROKEN_SETREGID, 1)
                 ac_cv_sizeof_rlim_t=8;;
 freebsd*)	LIBS="-lm $LIBS"
 		AC_CACHE_CHECK([whether -lxpg4 has to be linked],
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 14988)
+++ ruby_1_8/ChangeLog	(revision 14989)
@@ -1,5 +1,7 @@
-Fri Jan 11 11:57:36 2008  Nobuyoshi Nakada  <nobu@r...>
+Fri Jan 11 12:27:44 2008  Nobuyoshi Nakada  <nobu@r...>
 
+	* configure.in: moved broken syscall checks from process.c etc.
+
 	* defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
 	  configure.
 

--
ML: ruby-changes@q...
Info: 

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