From 4d02a2bf81e349c6d957f9be7ad9140adc922751 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 18 Apr 2017 05:56:34 +0000 Subject: 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 --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 74f79b35d2..dedde6d83f 100644 --- a/configure.in +++ b/configure.in @@ -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) -- cgit v1.2.3