summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-04 02:46:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-04 02:46:42 +0000
commit56129b4b728edd39dd54467df68df2d2fd39c6c5 (patch)
tree4ac011cbf92e3de022e16b87f4e5a04bf083fc67 /wscript
parentffcbc9ab9e43f04dfa4588e7c88f038c4fc39bed (diff)
try to use --also-libdir to try to find curl
git-svn-id: svn://localhost/ardour2/branches/3.0@12171 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/wscript b/wscript
index 0e26bdb12e..1626750757 100644
--- a/wscript
+++ b/wscript
@@ -564,7 +564,14 @@ def configure(conf):
conf.env['INCLUDES_FLAC'] = []
conf.check_cc(function_name='dlopen', header_name='dlfcn.h', linkflags='-ldl', uselib_store='DL')
- conf.check_cc(function_name='curl_global_init', header_name='curl/curl.h', linkflags='-lcurl', uselib_store='CURL')
+ #
+ # finding curl can be tricky
+ #
+ if Options.options.also_libdir != '':
+ curl_linkflags = "-L" + Options.options.also_libdir + " -lcurl"
+ else:
+ curl_linkflags = "-lcurl"
+ conf.check_cc(function_name='curl_global_init', header_name='curl/curl.h', linkflags=curl_linkflags, uselib_store='CURL')
# Tell everyone that this is a waf build