From aac483943d45beaa00a8f1eeae4c96d1bc62b522 Mon Sep 17 00:00:00 2001
From: "Marc G. Fournier" <scrappy@hub.org>
Date: Thu, 25 Jul 1996 20:01:51 +0000
Subject: [PATCH] fixed usuage of -ltermcap for psql

submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
---
 src/bin/psql/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile
index b92f7d817b..567eb79202 100644
--- a/src/bin/psql/Makefile
+++ b/src/bin/psql/Makefile
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.3 1996/07/20 07:40:03 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.4 1996/07/25 20:01:51 scrappy Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -42,11 +42,13 @@ ifeq ($(USE_READLINE), true)
    else
    ifeq ($(PORTNAME), linux)
    LD_ADD += -ltermcap
-   endif
+   else
    ifeq ($(PORTNAME), next)
    LD_ADD += -ltermcap
+   else
    ifeq ($(PORTNAME), bsdi)
    LD_ADD += -ltermcap
+   else
    ifeq ($(PORTNAME), bsdi_2_1)
    LD_ADD += -ltermcap
    endif
@@ -54,6 +56,7 @@ ifeq ($(USE_READLINE), true)
    endif
    endif
    endif
+   endif
 else
    CFLAGS += -DNOREADLINE
 endif