721f5ec
This patch hacks the Postgres configure script to prefer libncurses over
721f5ec
libtermcap.  This is needed in the current Fedora environment because while
721f5ec
both are available, libtermcap is deprecated and will be removed in the
721f5ec
fairly near future.  Because the need for this is short-term, I'm not
721f5ec
going to try to push it upstream; this patch can go away once libtermcap
721f5ec
is no longer present in the standard build environment.
721f5ec
721f5ec
721f5ec
diff -Naur postgresql-8.2.1.orig/config/programs.m4 postgresql-8.2.1/config/programs.m4
721f5ec
--- postgresql-8.2.1.orig/config/programs.m4	2006-05-23 15:28:45.000000000 -0400
721f5ec
+++ postgresql-8.2.1/config/programs.m4	2007-01-10 18:42:22.000000000 -0500
721f5ec
@@ -88,7 +88,7 @@
721f5ec
 fi
721f5ec
 for pgac_rllib in $READLINE_ORDER ; do
721f5ec
   AC_MSG_CHECKING([for ${pgac_rllib}])
721f5ec
-  for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
721f5ec
+  for pgac_lib in "" " -lncurses" " -ltermcap" " -lcurses" ; do
721f5ec
     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
721f5ec
     AC_TRY_LINK_FUNC([readline], [[
721f5ec
       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not