Skip to content

Commit

Permalink
* configure.in (Makefile): get rid of confliction with -j.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 23, 2012
1 parent e91983b commit 6d8580f
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions configure.in
Expand Up @@ -3050,7 +3050,9 @@ AC_MSG_RESULT($PACKAGE library version = $ruby_version)
AS_CASE([" $CPP "], [*" $CC "*], [CPP=`echo " $CPP " | sed "s| $CC |"' $(CC) |;s/^ *//;s/ *$//'`])

AC_CONFIG_FILES($FIRSTMAKEFILE)
AC_CONFIG_FILES(Makefile, [{
AC_CONFIG_FILES(Makefile, [
tmpmk=confmk$$.tmp
{
if test ${VCS+set}; then
:
elif svn info "$srcdir" > /dev/null 2>&1; then
Expand All @@ -3075,12 +3077,20 @@ AC_CONFIG_FILES(Makefile, [{
else
echo 'distclean-local::; @$(RM) GNUmakefile uncommon.mk'
fi
} > confmk$$.tmp && mv -f confmk$$.tmp Makefile &&
{
grep '^ruby:' Makefile > /dev/null ||
${MAKE-make} info-program | grep '^PROGRAM=ruby$' > /dev/null ||
echo 'ruby: $(PROGRAM);' >> Makefile
}],
} > $tmpmk && if ! grep '^ruby:' $tmpmk > /dev/null; then
if test "${gnumake}" = yes; then
tmpgmk=confgmk$$.tmp
{
echo "include $tmpmk"
echo "-include uncommon.mk"
} > $tmpgmk
else
tmpgmk=$tmpmk
fi &&
test -z "`${MAKE-make} -f $tmpgmk info-program | grep '^PROGRAM=ruby$'`" &&
echo 'ruby: $(PROGRAM);' >> $tmpmk
test "$tmpmk" = "$tmpgmk" || rm -f "$tmpgmk"
fi && mv -f $tmpmk Makefile],
[EXEEXT='$EXEEXT' gnumake='$gnumake'])

AC_ARG_WITH([ruby-pc],
Expand Down

0 comments on commit 6d8580f

Please sign in to comment.