[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Tweak to pygrub build config detection.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 8eaaa622db81393ef0eae497090c34c04adf4212
# Parent  3eee5653f08b01a310e0a9172a6c0149f16217df
Tweak to pygrub build config detection.
Signed-off-by: Jeremy Katz <katzj@xxxxxxxxxx>

diff -r 3eee5653f08b -r 8eaaa622db81 tools/pygrub/setup.py
--- a/tools/pygrub/setup.py     Fri Oct 21 15:22:09 2005
+++ b/tools/pygrub/setup.py     Fri Oct 21 17:19:38 2005
@@ -13,7 +13,7 @@
     cc = new_compiler()
     cc.add_library("ext2fs")
     try:
-        if cc.has_function("ext2fs_open2"):
+        if hasattr(cc, "has_function") and cc.has_function("ext2fs_open2"):
             ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) )
         else:
             sys.stderr.write("WARNING: older version of e2fsprogs installed, 
not building full\n")

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.