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.
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
require 'mkmf'
+dir_config('comedilib')
have_library('comedi')
create_makefile("comedi")