From e8fd57d7633ab9ddcd64861e13a59aa8dfbc3b05 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 27 Apr 1998 03:56:59 +0000 Subject: Add prper perl config testing. --- src/configure.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/configure.in') diff --git a/src/configure.in b/src/configure.in index b4176f9c253..7a8f4eb9f0b 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 -- cgit v1.2.3