From 39dc4e1aabc40f600d358a6d023e82b75f024679 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 30 Sep 2015 10:21:48 +0100 Subject: [PATCH] Find wxWidgets on Fedora 22. --- src/wx/wscript | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/wx/wscript b/src/wx/wscript index 34a7608df..1fb35f1cd 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -86,12 +86,22 @@ sources = """ """ def configure(conf): - conf.check_cfg(msg='Checking for wxWidgets', - package='', - path='wx-config', - args='--cppflags --cxxflags --libs std,richtext', - uselib_store='WXWIDGETS', - mandatory=True) + try: + wx_config = 'wx-config-3.0-gtk2' + conf.check_cfg(msg='Checking for wxWidgets', + package='', + path=wx_config, + args='--cppflags --cxxflags --libs std,richtext', + uselib_store='WXWIDGETS', + mandatory=True) + except: + wx_config = 'wx-config' + conf.check_cfg(msg='Checking for wxWidgets', + package='', + path=wx_config, + args='--cppflags --cxxflags --libs std,richtext', + uselib_store='WXWIDGETS', + mandatory=True) if conf.options.static_wxwidgets: # wx-config returns its static libraries as full paths, without -l prefixes, which confuses @@ -113,7 +123,7 @@ def configure(conf): conf.env.STLIBPATH_WXWIDGETS = stlib_paths conf.in_msg = 1 - wx_version = conf.check_cfg(package='', path='wx-config', args='--version').strip() + wx_version = conf.check_cfg(package='', path=wx_config, args='--version').strip() conf.im_msg = 0 if not wx_version.startswith('3.0.'): conf.fatal('wxwidgets version 3.0.x is required; %s found' % wx_version) -- 2.30.2