From e2d7613993e69c660f417194843773a33dfd31ae Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Tue, 20 Oct 2020 16:32:51 +0200
Subject: Fix includedir for opencv_cxxflags

I'm not sure why includedir_new comes from but if needed it's possible
to use:
  --variable=includedir_new --variable=includedir

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
---
 config.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.m4 b/config.m4
index 21703cd..133d27e 100644
--- a/config.m4
+++ b/config.m4
@@ -17,7 +17,7 @@ if test "$PHP_FACEDETECT" != "no"; then
     PHP_ADD_INCLUDE($CV_INCLUDE)
   else
     if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists opencv4; then
-      CV_INCLUDE=`$PKG_CONFIG opencv4 --variable=includedir_new`
+      CV_INCLUDE=`$PKG_CONFIG opencv4 --variable=includedir`
       CV_LIBRARY=`$PKG_CONFIG opencv4 --libs`
       CV_VERSION=`$PKG_CONFIG opencv4 --modversion`
       if $PKG_CONFIG opencv4 --atleast-version=3.0.0 ; then
-- 
2.20.1

