2010-03-21 06:45:34 -04:00
|
|
|
$OpenBSD: patch-configure,v 1.3 2010/03/21 10:45:34 ajacoutot Exp $
|
2008-12-11 18:03:11 -05:00
|
|
|
|
|
|
|
Prevent errors like this during configure:
|
|
|
|
GtkWarning: could not open display
|
|
|
|
|
2010-03-21 06:45:34 -04:00
|
|
|
--- configure.orig Thu Jan 21 19:32:53 2010
|
|
|
|
+++ configure Thu Jan 21 20:53:38 2010
|
|
|
|
@@ -5904,23 +5904,7 @@ fi
|
2008-12-11 18:03:11 -05:00
|
|
|
v=`echo 0.9.0 | sed -e "s/\./,/g"`
|
2010-03-21 06:45:34 -04:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0.9.0 of goocanvas" >&5
|
2009-07-12 15:56:38 -04:00
|
|
|
$as_echo_n "checking for 0.9.0 of goocanvas... " >&6; }
|
2008-12-11 18:03:11 -05:00
|
|
|
-prog="
|
|
|
|
-import goocanvas
|
|
|
|
-ver = goocanvas.pygoocanvas_version
|
|
|
|
-
|
|
|
|
-if type(ver) == str:
|
|
|
|
- ver = ver.split('.')
|
|
|
|
- ver = map(int,ver)
|
|
|
|
- ver = tuple(ver)
|
|
|
|
-elif type(ver) == tuple:
|
|
|
|
- pass
|
|
|
|
-else:
|
|
|
|
- raise Exception
|
|
|
|
-
|
|
|
|
-if ver >= ($v):
|
|
|
|
- print 'yes'
|
|
|
|
-"
|
|
|
|
-out=`$PYTHON -c "$prog"`
|
|
|
|
+out="yes"
|
|
|
|
if test "x$out" = xyes; then
|
2010-03-21 06:45:34 -04:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
2009-07-12 15:56:38 -04:00
|
|
|
$as_echo "yes" >&6; }
|