ia64/xen-unstable
changeset 7476:8eaaa622db81
Tweak to pygrub build config detection.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Jeremy Katz <katzj@redhat.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Fri Oct 21 18:19:38 2005 +0100 (2005-10-21) |
parents | 3eee5653f08b |
children | 2d5b92e7c79a |
files | tools/pygrub/setup.py |
line diff
1.1 --- a/tools/pygrub/setup.py Fri Oct 21 16:22:09 2005 +0100 1.2 +++ b/tools/pygrub/setup.py Fri Oct 21 18:19:38 2005 +0100 1.3 @@ -13,7 +13,7 @@ if os.path.exists("/usr/include/ext2fs/e 1.4 cc = new_compiler() 1.5 cc.add_library("ext2fs") 1.6 try: 1.7 - if cc.has_function("ext2fs_open2"): 1.8 + if hasattr(cc, "has_function") and cc.has_function("ext2fs_open2"): 1.9 ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) ) 1.10 else: 1.11 sys.stderr.write("WARNING: older version of e2fsprogs installed, not building full\n")