This patch allows ECPG to build on a VPATH build.  I didn't commit it
just because I don't have a non-VPATH build to make sure it still works ...

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
Index: test/compat_informix/Makefile
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/test/compat_informix/Makefile,v
retrieving revision 1.1
diff -c -p -r1.1 Makefile
*** test/compat_informix/Makefile       2 Aug 2006 14:14:02 -0000       1.1
--- test/compat_informix/Makefile       12 Aug 2006 19:33:03 -0000
***************
*** 1,7 ****
  subdir = src/interfaces/ecpg/test/compat_informix
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include ../Makefile.regress
  
  # special informix compatiblity switches
  ECPG += -C INFORMIX
--- 1,7 ----
  subdir = src/interfaces/ecpg/test/compat_informix
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include $(top_srcdir)/$(subdir)/../Makefile.regress
  
  # special informix compatiblity switches
  ECPG += -C INFORMIX
Index: test/complex/Makefile
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/test/complex/Makefile,v
retrieving revision 1.1
diff -c -p -r1.1 Makefile
*** test/complex/Makefile       2 Aug 2006 14:14:02 -0000       1.1
--- test/complex/Makefile       12 Aug 2006 19:33:04 -0000
***************
*** 1,7 ****
  subdir = src/interfaces/ecpg/test/complex
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include ../Makefile.regress
  
  
  TESTS = test1 test1.c \
--- 1,7 ----
  subdir = src/interfaces/ecpg/test/complex
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include $(top_srcdir)/$(subdir)/../Makefile.regress
  
  
  TESTS = test1 test1.c \
Index: test/connect/Makefile
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/test/connect/Makefile,v
retrieving revision 1.2
diff -c -p -r1.2 Makefile
*** test/connect/Makefile       4 Aug 2006 08:52:17 -0000       1.2
--- test/connect/Makefile       12 Aug 2006 19:33:04 -0000
***************
*** 1,7 ****
  subdir = src/interfaces/ecpg/test/connect
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include ../Makefile.regress
  
  # port number for temp-installation test postmaster
  # this is also defined in ../Makefile
--- 1,7 ----
  subdir = src/interfaces/ecpg/test/connect
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include $(top_srcdir)/$(subdir)/../Makefile.regress
  
  # port number for temp-installation test postmaster
  # this is also defined in ../Makefile
Index: test/errors/Makefile
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/test/errors/Makefile,v
retrieving revision 1.1
diff -c -p -r1.1 Makefile
*** test/errors/Makefile        2 Aug 2006 14:14:02 -0000       1.1
--- test/errors/Makefile        12 Aug 2006 19:33:04 -0000
***************
*** 1,7 ****
  subdir = src/interfaces/ecpg/test/errors
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include ../Makefile.regress
  
  
  TESTS = init init.c
--- 1,7 ----
  subdir = src/interfaces/ecpg/test/errors
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include $(top_srcdir)/$(subdir)/../Makefile.regress
  
  
  TESTS = init init.c
Index: test/pgtypeslib/Makefile
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/test/pgtypeslib/Makefile,v
retrieving revision 1.2
diff -c -p -r1.2 Makefile
*** test/pgtypeslib/Makefile    7 Aug 2006 13:17:02 -0000       1.2
--- test/pgtypeslib/Makefile    12 Aug 2006 19:33:04 -0000
***************
*** 1,7 ****
  subdir = src/interfaces/ecpg/test/pgtypeslib
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include ../Makefile.regress
  
  TESTS = dt_test dt_test.c \
          dt_test2 dt_test2.c \
--- 1,7 ----
  subdir = src/interfaces/ecpg/test/pgtypeslib
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include $(top_srcdir)/$(subdir)/../Makefile.regress
  
  TESTS = dt_test dt_test.c \
          dt_test2 dt_test2.c \
Index: test/sql/Makefile
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/test/sql/Makefile,v
retrieving revision 1.1
diff -c -p -r1.1 Makefile
*** test/sql/Makefile   2 Aug 2006 14:19:14 -0000       1.1
--- test/sql/Makefile   12 Aug 2006 19:33:04 -0000
***************
*** 1,7 ****
  subdir = src/interfaces/ecpg/test/sql
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include ../Makefile.regress
  
  TESTS = define define.c \
          dyntest dyntest.c \
--- 1,7 ----
  subdir = src/interfaces/ecpg/test/sql
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include $(top_srcdir)/$(subdir)/../Makefile.regress
  
  TESTS = define define.c \
          dyntest dyntest.c \
Index: test/thread/Makefile
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/test/thread/Makefile,v
retrieving revision 1.1
diff -c -p -r1.1 Makefile
*** test/thread/Makefile        2 Aug 2006 14:19:14 -0000       1.1
--- test/thread/Makefile        12 Aug 2006 19:33:04 -0000
***************
*** 1,7 ****
  subdir = src/interfaces/ecpg/test/thread
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include ../Makefile.regress
  
  
  TESTS = thread_implicit thread_implicit.c \
--- 1,7 ----
  subdir = src/interfaces/ecpg/test/thread
  top_builddir = ../../../../..
  include $(top_builddir)/src/Makefile.global
! include $(top_srcdir)/$(subdir)/../Makefile.regress
  
  
  TESTS = thread_implicit thread_implicit.c \
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to