mirror of https://github.com/odrling/Aegisub
Only substitude RUBY_(C|LD)FLAGS and PERL_(C|LD)FLAGS if either are actually
detected as working. Originally committed to SVN as r2697.
This commit is contained in:
parent
dafcf9badd
commit
a196f1efbb
|
@ -842,13 +842,13 @@ fi
|
||||||
|
|
||||||
if test "$with_cv_perl" = "yes"; then
|
if test "$with_cv_perl" = "yes"; then
|
||||||
with_automation="yes"
|
with_automation="yes"
|
||||||
|
AC_SUBST(PERL_CFLAGS)
|
||||||
|
AC_SUBST(PERL_LDFLAGS)
|
||||||
AC_DEFINE(WITH_PERL, 1, [Enable PERL support.])
|
AC_DEFINE(WITH_PERL, 1, [Enable PERL support.])
|
||||||
else
|
else
|
||||||
with_cv_perl="no"
|
with_cv_perl="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(PERL_CFLAGS)
|
|
||||||
AC_SUBST(PERL_LDFLAGS)
|
|
||||||
|
|
||||||
AM_CONDITIONAL([HAVE_AUTO4_PERL], [test "$with_cv_perl" != "no"])
|
AM_CONDITIONAL([HAVE_AUTO4_PERL], [test "$with_cv_perl" != "no"])
|
||||||
|
|
||||||
|
@ -909,13 +909,13 @@ fi
|
||||||
|
|
||||||
if test "$with_cv_ruby" = "yes"; then
|
if test "$with_cv_ruby" = "yes"; then
|
||||||
with_automation="yes"
|
with_automation="yes"
|
||||||
|
AC_SUBST(RUBY_CFLAGS)
|
||||||
|
AC_SUBST(RUBY_LDFLAGS)
|
||||||
AC_DEFINE(WITH_RUBY, 1, [Enable RUBY Automation.])
|
AC_DEFINE(WITH_RUBY, 1, [Enable RUBY Automation.])
|
||||||
else
|
else
|
||||||
with_cv_ruby="no"
|
with_cv_ruby="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(RUBY_CFLAGS)
|
|
||||||
AC_SUBST(RUBY_LDFLAGS)
|
|
||||||
AM_CONDITIONAL([HAVE_AUTO4_RUBY], [test "$with_cv_ruby" != "no"])
|
AM_CONDITIONAL([HAVE_AUTO4_RUBY], [test "$with_cv_ruby" != "no"])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue