~stewart/pandora-build/tbb

« back to all changes in this revision

Viewing changes to m4/pandora_with_ruby.m4

Merged ruby fixes from Clint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
    ac_save_CFLAGS="$CFLAGS"
46
46
    ac_save_CPPFLAGS="$CPPFLAGS"
47
 
    ac_save_LDFLAGS="$LDFLAGS"
 
47
    ac_save_LIBS="$LIBS"
48
48
    CFLAGS="$ac_save_CFLAGS $RUBY_INCLUDES"
49
49
    CPPFLAGS="$ac_save_CPPFLAGS $RUBY_INCLUDES"
50
 
    LDFLAGS="$ac_save_LDFLAGS $LIBRUBYARG_SHARED"
 
50
    LIBS="$ac_save_LIBS $LIBRUBYARG_SHARED"
51
51
    
52
52
    AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <ruby.h>]], [[VALUE rb_ac_test = rb_define_module("actest");]])],[with_ruby="yes";AC_MSG_RESULT(found)],[with_ruby="no";AC_MSG_RESULT(missing)])
53
53
 
54
54
    CPPFLAGS="$ac_save_CPPFLAGS"
55
55
    CFLAGS="$ac_save_CFLAGS"
56
 
    LDFLAGS="$ac_save_LDFLAGS"
 
56
    LIBS="$ac_save_LIBS"
57
57
  ],[
58
58
    # This allows 'make clean' in the ruby directory to work when
59
59
    # ruby isn't available