Cope with nanomsg .pc files being called libnanomsg.pc or nanomsg.pc
[dcpomatic.git] / wscript
diff --git a/wscript b/wscript
index 12012ad30d6d242030780dbe91367ee8e8ea29f4..b8253fe6a6f8fc6b8bb91f287a21c39d2400c829 100644 (file)
--- a/wscript
+++ b/wscript
@@ -385,7 +385,8 @@ def configure(conf):
 
     # nanomsg
     if conf.options.enable_dist:
-        conf.check_cfg(package='libnanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=True)
+        if conf.check_cfg(package='nanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=False) is None:
+            conf.check_cfg(package='libnanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=True)
 
     # FFmpeg
     if conf.options.static_ffmpeg: