From a196f1efbb643de04174a8d4e7dae9e250796dcf Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Thu, 15 Jan 2009 01:06:21 +0000 Subject: [PATCH] Only substitude RUBY_(C|LD)FLAGS and PERL_(C|LD)FLAGS if either are actually detected as working. Originally committed to SVN as r2697. --- configure.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 960b90a81..1b90c9a81 100644 --- a/configure.in +++ b/configure.in @@ -842,13 +842,13 @@ fi if test "$with_cv_perl" = "yes"; then with_automation="yes" + AC_SUBST(PERL_CFLAGS) + AC_SUBST(PERL_LDFLAGS) AC_DEFINE(WITH_PERL, 1, [Enable PERL support.]) else with_cv_perl="no" fi -AC_SUBST(PERL_CFLAGS) -AC_SUBST(PERL_LDFLAGS) AM_CONDITIONAL([HAVE_AUTO4_PERL], [test "$with_cv_perl" != "no"]) @@ -909,13 +909,13 @@ fi if test "$with_cv_ruby" = "yes"; then with_automation="yes" + AC_SUBST(RUBY_CFLAGS) + AC_SUBST(RUBY_LDFLAGS) AC_DEFINE(WITH_RUBY, 1, [Enable RUBY Automation.]) else with_cv_ruby="no" fi -AC_SUBST(RUBY_CFLAGS) -AC_SUBST(RUBY_LDFLAGS) AM_CONDITIONAL([HAVE_AUTO4_RUBY], [test "$with_cv_ruby" != "no"])