From 0942349bb8879ede9c4e7a09512af09b2a89a467 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 23 Nov 2004 01:18:14 +0000 Subject: [PATCH] patch from Steven Jenkins : If configure attempts to build the Ruby extension on a system without a previous installation of comedilib, compilation fails because gcc can't find comedilib.h. The attached patch adds the distribution include directory to the gcc search path when compiling the extension. --- swig/ruby/Makefile.am | 2 +- swig/ruby/ext/extconf.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/swig/ruby/Makefile.am b/swig/ruby/Makefile.am index 9ecc010..12dd9af 100644 --- a/swig/ruby/Makefile.am +++ b/swig/ruby/Makefile.am @@ -13,7 +13,7 @@ install-data-local: endif ext/Makefile config.save: - $(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS) + $(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS) -- --with-comedilib-dir=../../.. ext/comedi.so ext/comedi_ruby_wrap.o: ext/Makefile config.save $(srcdir)/ext/comedi_ruby_wrap.c $(RUBY) $(srcdir)/setup.rb setup diff --git a/swig/ruby/ext/extconf.rb b/swig/ruby/ext/extconf.rb index 4702f02..15e67b9 100644 --- a/swig/ruby/ext/extconf.rb +++ b/swig/ruby/ext/extconf.rb @@ -1,3 +1,4 @@ require 'mkmf' +dir_config('comedilib') have_library('comedi') create_makefile("comedi") -- 2.26.2