Skip to content

Commit

Permalink
Forwardports r32772 and r32773 from branches/ruby_1_9_3 to trunk.
Browse files Browse the repository at this point in the history
* common.mk (ECHO1): ":" in a make variable replacement cause a syntax
  error with /usr/ccs/bin/make on Solaris.  Uses $(NULLCMD) instead.

* configure.in (NULLCMD): new check.

* Makefile.in (NULLCMD): Reflects checking in configure.

* win32/Makefile.sub (NULLCMD): new assignment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
yugui committed Jul 31, 2011
1 parent f46cff6 commit 53d3b13
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Sun Jul 31 20:21:36 2011 "Yuki Sonoda (Yugui)" <[email protected]>

* common.mk (ECHO1): ":" in a make variable replacement cause a syntax
error with /usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.

* configure.in (NULLCMD): new check.

* Makefile.in (NULLCMD): Reflects checking in configure.

* win32/Makefile.sub (NULLCMD): new assignment.

Sun Jul 31 18:58:59 2011 Nobuyoshi Nakada <[email protected]>

* io.c (rb_pipe): pipe on cygwin can succeed half but fail
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SHELL = /bin/sh
NULLCMD = :
NULLCMD = @NULLCMD@
RUNCMD = $(SHELL)
CHDIR = @CHDIR@
exec = exec
Expand Down
2 changes: 1 addition & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dll: $(LIBRUBY_SO)
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO1 = $(V:1=@$(NULLCMD))
ECHO = $(ECHO1:0=@echo)

RUBYLIB = -
Expand Down
22 changes: 22 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2599,6 +2599,28 @@ AS_CASE(["$FIRSTMAKEFILE"], [*GNUmakefile:*], [gnumake=yes], [
gnumake=no])
AC_MSG_RESULT($gnumake)
])
AS_IF([test "$gnumake" = yes], [ NULLCMD=: ], [
AC_MSG_CHECKING([for safe null command for ${Make-make}])
mkdir conftest.dir
echo 'A=1' > conftest.dir/Makefile
echo 'B=$(A:1=@:)' >> conftest.dir/Makefile
echo 'all:; $B 1 2 3 4 5 6 7 8 9' >> conftest.dir/Makefile
if (cd conftest.dir; ${Make-make} >/dev/null 2>/dev/null); then
NULLCMD=:
else
echo 'A=1' > conftest.dir/Makefile
echo 'B=$(A:1=@true)' >> conftest.dir/Makefile
echo 'all:; $B 1 2 3 4 5 6 7 8 9' >> conftest.dir/Makefile
if (cd conftest.dir; ${Make-make} >/dev/null 2>/dev/null); then
NULLCMD=true
else
AC_MSG_ERROR(no candidate for safe null command)
fi
fi
rm -fr conftest.dir
AC_MSG_RESULT($NULLCMD)
])
AC_SUBST(NULLCMD)

if test "${universal_binary-no}" = yes ; then
AC_CACHE_CHECK([for architecture macros], rb_cv_architecture_macros, [
Expand Down
1 change: 1 addition & 0 deletions win32/Makefile.sub
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- makefile -*-

SHELL = $(COMSPEC)
NULLCMD = :
RUNCMD = $(COMSPEC) /c
MKFILES = Makefile
NULL = nul
Expand Down

0 comments on commit 53d3b13

Please sign in to comment.