stdlib, string.h for linux compile
[gp-arc-client-c.git] / ext / extconf.rb
1 require 'mkmf'
2
3 dirs = <<-EODIRS
4 /opt/local/include/libxml2 
5 /opt/local/include/giomm-2.4 
6 /opt/local/lib/giomm-2.4/include 
7 /opt/local/include/glibmm-2.4 
8 /opt/local/lib/glibmm-2.4/include 
9 /opt/local/include/glib-2.0 
10 /opt/local/lib/glib-2.0/include 
11 /opt/local/include 
12 /opt/local/include/sigc++-2.0 
13 /opt/local/lib/sigc++-2.0/include
14 EODIRS
15
16 dirs.split.each do |dir|
17   $INCFLAGS << " " << "-I#{dir}"
18   $INCFLAGS << " " << "-I#{dir.gsub('/opt/local', '/usr')}"
19 end
20
21
22 ["/opt/local", "/usr/lib"].each do |prefix|
23
24   find_header "libxml/xmlmemory.h", "#{prefix}/include/libxml2"
25   find_header "sigc++/slot.h", "#{prefix}/include/sigc++-2.0"
26   find_header "sigc++/slot.h", "#{prefix}/lib/sigc++-2.0/include"
27 end
28
29
30 $LIBS << ' -larcclient -larccommon -larcdata2 -larcloader -larcmessage -lglibmm-2.4 -lsigc-2.0 -lxmlsec1-openssl -lxmlsec1'
31
32 create_makefile("arc_client_c")
33