06a12b0700476de70ce8696881709a58694c4dd6
[gp-arc-client-c.git] / ext / extconf.rb
1 require 'mkmf'
2 dirs = <<-EODIRS
3 /opt/local/include/libxml2 
4 /opt/local/include/giomm-2.4 
5 /opt/local/lib/giomm-2.4/include 
6 /opt/local/include/glibmm-2.4 
7 /opt/local/lib/glibmm-2.4/include 
8 /opt/local/include/glib-2.0 
9 /opt/local/lib/glib-2.0/include 
10 /opt/local/include 
11 /opt/local/include/sigc++-2.0 
12 /opt/local/lib/sigc++-2.0/include
13 EODIRS
14
15 dirs.split.each do |dir|
16   $INCFLAGS << " " << "-I#{dir}"
17 end
18
19
20 ["/opt/local", "/usr/lib"].each do |prefix|
21
22   find_header "libxml/xmlmemory.h", "#{prefix}/include/libxml2"
23   find_header "sigc++/slot.h", "#{prefix}/include/sigc++-2.0"
24   find_header "sigc++/slot.h", "#{prefix}/lib/sigc++-2.0/include"
25 end
26
27 create_makefile("arc_client_r")
28