$OpenBSD: patch-configure,v 1.1 2011/07/11 21:10:33 sthen Exp $
--- configure.orig	Mon Jul 11 21:48:55 2011
+++ configure	Mon Jul 11 21:48:56 2011
@@ -24681,7 +24681,7 @@ for publication in $PUBLICATIONS ; do
 	for factor in $FACTORS ; do
 		CONFIGFILE="include/pqxx/config-$publication-$factor.h"
 		echo -n "Generating $CONFIGFILE: "
-		if ! grep -w -h -F "`grep \"\<${publication}\>\" \"${srcdir}/configitems\" | grep \"\<${factor}\>\" | grep -v '^$' | cut -f 1`" include/pqxx/config.h >"$CONFIGFILE" ; then
+		if ! grep -w -h -F "`grep -w ${publication} \"${srcdir}/configitems\" | grep -w ${factor} | grep -v '^$' | cut -f 1`" include/pqxx/config.h >"$CONFIGFILE" ; then
 			rm -f -- "$CONFIGFILE"
 			echo "no items--deleting"
 		else
