13
0

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
This commit is contained in:
Paul Davis 2012-05-04 02:46:42 +00:00
parent ffcbc9ab9e
commit 56129b4b72

View File

@ -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