From 152ce7a4909aec35771e925fd7fa97bae1103763 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sat, 7 Jun 2003 16:32:05 +0000
Subject: [PATCH] Change configure check to use $YACC, per Tom.

---
 configure    | 2 +-
 configure.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index ffc604afe8f..54ae59068b2 100755
--- a/configure
+++ b/configure
@@ -4426,7 +4426,7 @@ done
 
 
 if test "$YACC"; then
-  if bison --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
+  if "$YACC" --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
     { echo "$as_me:$LINENO: WARNING:
 *** The installed version of Bison is too old.  PostgreSQL needs
 *** Bison version 1.875 or later." >&5
diff --git a/configure.in b/configure.in
index 07a8db49207..f5cba505c55 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $Header: /cvsroot/pgsql/configure.in,v 1.255 2003/06/06 19:11:55 momjian Exp $
+dnl $Header: /cvsroot/pgsql/configure.in,v 1.256 2003/06/07 16:32:05 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -587,7 +587,7 @@ PGAC_CHECK_STRIP
 AC_CHECK_PROGS(YACC, ['bison -y'])
 
 if test "$YACC"; then
-  if bison --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
+  if "$YACC" --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
     AC_MSG_WARN([
 *** The installed version of Bison is too old.  PostgreSQL needs
 *** Bison version 1.875 or later.])
-- 
GitLab