summaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/configure.in b/src/configure.in
index b4176f9c25..7a8f4eb9f0 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -252,9 +252,10 @@ AC_ARG_WITH(
dnl Verify that postgres is already installed
dnl per instructions for perl interface installation
-if test "$USE_PERL" = "true"; then
- if test ! -x $prefix/bin/postgres; then
- AC_MSG_WARN(perl support disabled; postgres not previously installed)
+if test "$USE_PERL" = "true"
+then
+ if test ! -x "$prefix"/bin/postgres -a ! -x "$ac_default_prefix"/bin/postgres
+ then AC_MSG_WARN(perl support disabled; postgres not previously installed)
USE_PERL=
fi
fi