$OpenBSD: patch-configure,v 1.3 2014/10/02 12:33:19 jasper Exp $
--- configure.orig	Sun May 11 00:39:16 2014
+++ configure	Thu Oct  2 14:16:58 2014
@@ -12014,11 +12014,7 @@ if test "X$PHP_CONFIG" != X ; then
   PHP_INCLUDES=`$PHP_CONFIG --includes`
   PHP_EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
 
-  if test $PHP_VERSION '>' 5.0.0; then
-    PHP_SWIG="-php5"
-  else
-    PHP_SWIG="-php4"
-  fi
+  PHP_SWIG="-php5"
 
   # Configure these if PHP_SO_SUFFIX is missing
   if test "X$PHP_SO_SUFFIX" = "X"; then
@@ -12407,7 +12403,7 @@ if test "X$with_php" != Xno ; then
   with_php=yes
 fi
 
-PHP_VERSION=`php-config --version 2>/dev/null`
+PHP_VERSION=`$PHP_CONFIG --version 2>/dev/null`
 if test "X$PHP_VERSION" != X; then
   languages_available="$languages_available php($PHP_VERSION)"
   if test $with_php = yes; then
