--- Makefile.PL.orig	Tue Apr 29 15:29:26 1997
+++ Makefile.PL	Thu Sep 18 09:35:14 1997
@@ -12,15 +12,7 @@
 print "Remember to actually read the README file !\n";
 die "\nYou didn't read the README file !\n" unless ($] >= 5.003);
 
-if (! $ENV{POSTGRESHOME}) {
-    warn "\$POSTGRESHOME not defined. Searching for Postgres...\n";
-    foreach(qw(/usr/pgsql /usr/local/pgsql /usr/pgsql-6.1 /usr/local/pgsql-6.1)) {
-        if (-d "$_/lib") {
-            $ENV{POSTGRESHOME} = $_;
-            last;
-        }
-    }
-}
+$ENV{POSTGRESHOME} = "$ENV{PREFIX}/pgsql";
 
 if ($ENV{POSTGRESHOME}) {
     print "\nFound Postgres in $ENV{POSTGRESHOME}\n";
