3 # Copyright 2010, 2011, 2012 Ali Polatel <alip@exherbo.org>
4 # Distributed under the terms of the GNU General Public License v3
8 dir = File.join('..', '..', 'lib')
11 $INCFLAGS = "-I#{dir} #{$INCFLAGS}"
13 # make sure there are no undefined symbols
14 $LDFLAGS += ' -Wl,--no-undefined'
16 def have_local_library(lib, path, func, headers = nil)
17 checking_for checking_message(func, lib) do
18 lib = File.join(path, lib)
19 if try_func(func, lib, headers)
25 if not have_local_library('libnotmuch.so', dir, 'notmuch_database_create', 'notmuch.h')
31 create_makefile('notmuch')