summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-04 12:59:05 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-04 12:59:05 +0000
commit8a4ad6480c5dc4a363d6e9257b0ffa30b0fa7d84 (patch)
tree769f175b55191f0d56f90a17f04900f12663722f /wscript
parent76e83768dc9ba4c3c8c2495a7b8914b2fd975ee2 (diff)
use pkg-config to find curl and assume that version 7.X has curl_global_init
git-svn-id: svn://localhost/ardour2/branches/3.0@12181 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 1 insertions, 8 deletions
diff --git a/wscript b/wscript
index e5f58d15d4..d0e507cd86 100644
--- a/wscript
+++ b/wscript
@@ -556,6 +556,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18')
autowaf.check_pkg(conf, 'giomm-2.4', uselib_store='GIOMM', atleast_version='2.2')
+ autowaf.check_pkg(conf, 'libcurl', uselib_store='CURL', atleast_version='7.0.0')
for i in children:
sub_config_and_use(conf, i)
@@ -564,14 +565,6 @@ def configure(conf):
conf.env['INCLUDES_FLAC'] = []
conf.check_cc(function_name='dlopen', header_name='dlfcn.h', linkflags='-ldl', uselib_store='DL')
- #
- # finding curl can be tricky
- #
- if Options.options.also_libdir != '':
- curl_linkflags = [ '-L' + Options.options.also_libdir, '-lcurl', '-lssl', '-lcrypto' ]
- else:
- curl_linkflags = [ '-lcurl', '-lssl', '-lcrypto' ]
- 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