File postgresql-prefer-ncurses.patch of Package postgresql92-libs

This patch hacks the Postgres configure script to prefer libncurses over
libtermcap.  This is needed in the current Fedora environment because while
both are available, libtermcap is deprecated and will be removed in the
fairly near future.  Because the need for this is short-term, I'm not
going to try to push it upstream; this patch can go away once libtermcap
is no longer present in the standard build environment.

--- postgresql-9.1alpha3/config/programs.m4.old	2011-01-07 09:44:56.000000000 +0200
+++ postgresql-9.1alpha3/config/programs.m4	2011-01-07 09:45:14.000000000 +0200
@@ -125,7 +125,7 @@
 else	READLINE_ORDER="-ledit -lreadline"
 fi
 for pgac_rllib in $READLINE_ORDER ; do
-  for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
+  for pgac_lib in "" " -lncurses" " -ltermcap" " -lcurses" ; do
     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
     AC_TRY_LINK_FUNC([readline], [[
       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not