Configure with --enable-terminfo=no for Apple's llvmCore builds.

Patch by Pete Cooper.