$NetBSD: patch-aj,v 1.4 1999/09/20 23:38:50 jlam Exp $

--- ./interfaces/ecpg/lib/Makefile.in.orig	Wed Jun 30 19:57:23 1999
+++ ./interfaces/ecpg/lib/Makefile.in	Mon Sep 20 01:17:03 1999
@@ -12,12 +12,16 @@
 
 NAME= ecpg
 SO_MAJOR_VERSION= 3
+ifneq ($(LIBTOOL),)
+SO_MINOR_VERSION= 0	# bump this every time the patchlevel changes
+else
 SO_MINOR_VERSION= 0.0
+endif
 
 SRCDIR= @top_srcdir@
 include $(SRCDIR)/Makefile.global
 
-CFLAGS+= -I../include -I$(SRCDIR)/interfaces/libpq
+CFLAGS+= -I../include -I$(LIBPQDIR)
 
 ifdef KRBVERS
 CFLAGS+= $(KRBFLAGS)
@@ -25,7 +29,7 @@
 
 OBJS= ecpglib.o typename.o
 
-SHLIB_LINK= -L../../libpq -lpq
+SHLIB_LINK= $(LIBPQ)
 
 # Shared library stuff, also default 'all' target
 include $(SRCDIR)/Makefile.shlib
