From c8eebcd23b6f0f843b40bcc8ef881ebc7de511d5 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 20 Jan 2006 16:17:09 +0100 Subject: [PATCH] Don't contaminate CFLAGS with stuff from RUBY_CFLAGS --- config/m4/ruby.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/m4/ruby.m4 b/config/m4/ruby.m4 index b4b3e0026..08056607f 100644 --- a/config/m4/ruby.m4 +++ b/config/m4/ruby.m4 @@ -90,16 +90,17 @@ if test "$CONFIG_RUBY" = "yes"; then fi fi +EL_RESTORE_FLAGS + if test "$CONFIG_RUBY" != "yes"; then if test -n "$CONFIG_RUBY_WITHVAL" && test "$CONFIG_RUBY_WITHVAL" != no; then AC_MSG_ERROR([Ruby not found]) fi - EL_RESTORE_FLAGS else EL_CONFIG(CONFIG_RUBY, [Ruby]) - CFLAGS="$CFLAGS_X" + LIBS="$LIBS $RUBY_LIBS" AC_SUBST(RUBY_CFLAGS) AC_SUBST(RUBY_LIBS) fi