summaryrefslogtreecommitdiff
path: root/src/dumm/ext/extconf.rb.in
blob: 29df65ca72bdb2b342c9a8b3c9559ec2d7839cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# DUMM for Ruby
#

require 'mkmf'

$defs << " @DEFS@"
$CFLAGS << " -Wno-format -include \"@top_builddir@/config.h\""

dir_config('dumm', '@top_srcdir@/src/dumm', '../.libs')
dir_config('strongswan', '@top_srcdir@/src/libstrongswan', '../../libstrongswan/.libs')

unless find_library('dumm', 'dumm_create')
  puts "... failed: 'libdumm' not found!"
  exit
end

create_makefile('dumm', '@top_srcdir@/src/dumm/ext')