1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

configure.in: honor GIT env

* configure.in (--with-git): honor environment variable GIT if
  set.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-04-18 05:56:34 +00:00
parent 2103197cce
commit a8faecc1e6

View file

@ -60,13 +60,13 @@ fi
AC_SUBST(BASERUBY)
AC_SUBST(HAVE_BASERUBY)
GIT=git
: ${GIT=git}
HAVE_GIT=yes
AC_ARG_WITH(git,
AS_HELP_STRING([--without-git], [never use git]),
[AS_CASE([$withval],
[no], [GIT=never-use HAVE_GIT=no],
[yes], [GIT=git],
[yes], [],
[GIT=$withval])])
AS_IF([test x"$HAVE_GIT" = xyes], [command -v "$GIT" > /dev/null || HAVE_GIT=no])
AC_SUBST(GIT)