From e7f057a2b1e4b2b5e3dc82720aa7bb20ea9a63b1 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sat, 27 Dec 2008 10:03:37 +0000 Subject: [PATCH] Instead of checking if (perl|ruby)_disabled exists, check with_(perl|ruby) = "no". This is probably expected behaviour as the --with-XXX=BLAH flags will pass along BLAH. Most of the time if users want it turned on they'll set it to something else other than no. (they shouldn't though) Originally committed to SVN as r2534. --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 3d74463d4..c8901fed9 100644 --- a/configure.in +++ b/configure.in @@ -698,7 +698,7 @@ AC_ARG_WITH(perl-bin, [ --with-perl-bin=PATH location of PERL binary. (defau AC_ARG_VAR([PERL_CFLAGS], [CFLAGS to use for Perl (default: -MExtUtils::Embed -eccflags -eperl_inc)]) AC_ARG_VAR([PERL_LDFLAGS], [LDFLAGS to use for Perl (default: -MExtUtils::Embed -eldopts)]) -if test -z "$perl_disabled"; then +if test "$with_perl" != "no"; then if test -z "$WITH_PERL_BIN"; then AC_PATH_PROG([PERL_BIN],perl,no) else @@ -768,7 +768,7 @@ AC_ARG_WITH(ruby-bin, [ --with-ruby-bin=PATH location of RUBY binary. (defau AC_ARG_VAR([RUBY_CFLAGS], [CFLAGS to use for Ruby (default: Config::CONFIG archdir + CFLAGS)]) AC_ARG_VAR([RUBY_LDFLAGS], [LDFLAGS to use for Ruby (default: Cofig::CONFIG LIBRUBYARG)]) -if test -z "$ruby_disabled"; then +if test "$with_ruby" != "no"; then if test -z "$WITH_RUBY_BIN"; then AC_PATH_PROG([RUBY_BIN],ruby,no) else