summaryrefslogtreecommitdiff
path: root/src/dumm/ext/extconf.rb.in
blob: 36536ec52072863f982acda30c7f3a999dac3cb5 (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"

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')