Merge
diff --git a/setup.py b/setup.py
index 30a7a8f..c1d6968 100644
--- a/setup.py
+++ b/setup.py
@@ -657,7 +657,7 @@
                 ret = os.system("ldd %s > %s" % (do_readline, tmpfile))
             else:
                 ret = 256
-            if ret >> 8 == 0:
+            if ret == 0:
                 with open(tmpfile) as fp:
                     for ln in fp:
                         if 'curses' in ln: