Warn at configure time if GVfs is not installed

This commit is contained in:
Christian Dywan 2008-08-31 03:14:00 +02:00
parent cad440fa33
commit d60190aaee

View file

@ -4,6 +4,7 @@
import Params import Params
import pproc as subprocess import pproc as subprocess
import Common import Common
import platform
APPNAME = 'midori' APPNAME = 'midori'
VERSION = '0.0.20' VERSION = '0.0.20'
@ -49,6 +50,13 @@ def configure (conf):
gio = 'no' gio = 'no'
conf.check_message_custom ('GIO', 'support', gio) conf.check_message_custom ('GIO', 'support', gio)
if gio == 'yes':
if platform.system () != 'Windows':
if not conf.find_program ('gvfs-open'):
print '\tNote: There doesn\'t seem to be GVfs installed.'
print '\t The HTTP backend of GVfs is recommended for'
print '\t viewing source code and loading favicons.'
conf.check_pkg ('gtk+-2.0', destvar='GTK', vnum='2.6.0', mandatory=True) conf.check_pkg ('gtk+-2.0', destvar='GTK', vnum='2.6.0', mandatory=True)
conf.check_pkg ('gtksourceview-2.0', destvar='GTKSOURCEVIEW', vnum='2.0', mandatory=False) conf.check_pkg ('gtksourceview-2.0', destvar='GTKSOURCEVIEW', vnum='2.0', mandatory=False)
conf.check_pkg ('webkit-1.0', destvar='WEBKIT', vnum='0.1', mandatory=True) conf.check_pkg ('webkit-1.0', destvar='WEBKIT', vnum='0.1', mandatory=True)