cd pgsql && ../pgsql/src/tools/make_diff/difforig
*** ./doc/src/sgml/xfunc.sgml.orig	Thu Jun  7 01:00:36 2007
--- ./doc/src/sgml/xfunc.sgml	Tue Jun 26 12:57:15 2007
***************
*** 2074,2081 ****
  PGXS := $(shell pg_config --pgxs)
  include $(PGXS)
  </programlisting>
!     The last two lines should always be the same.  Earlier in the
!     file, you assign variables or add custom
      <application>make</application> rules.
     </para>
  
--- 2074,2091 ----
  PGXS := $(shell pg_config --pgxs)
  include $(PGXS)
  </programlisting>
!     The last two lines must always be the same. 
!     The first <literal>pg_config</literal> found in the path is
!     used to compile and install the extension. 
!     Changing the <literal>pg_config</literal> path manually in the
!     <literal>Makefile</literal> will not work as it is used also elsewhere.
!     The <term><varname>PATH</varname></term> must be redefined manually.
!     The following syntax works with both sh and csh-compatible shells:
! <programlisting>
! shell$ make PATH=/path/to/another/postgresql/bin:$PATH all
! shell$ make PATH=/path/to/another/postgresql/bin:$PATH install
! </programlisting>
!     Earlier in the file, you assign variables or add custom
      <application>make</application> rules.
     </para>
  
*** ./src/makefiles/pgxs.mk.orig	Tue Jun 26 12:49:00 2007
--- ./src/makefiles/pgxs.mk	Tue Jun 26 12:56:47 2007
***************
*** 14,19 ****
--- 14,27 ----
  #   PGXS := $(shell pg_config --pgxs)
  #   include $(PGXS)
  #
+ # You cannot use a full path for the above pg_config command. The chosen 
+ # postgresql must be the first one found in the PATH. The PATH must be updated 
+ # for compiling an extension against another postgresql installation. 
+ # This can be achieved with the following syntax:
+ #
+ #   shell> make PATH=/path/to/another/postgresql/bin:$PATH all
+ #   shell> make PATH=/path/to/another/postgresql/bin:$PATH install
+ # 
  # The following variables can be set:
  #
  #   MODULES -- list of shared objects to be build from source file with
