File find-vncserver.patch of Package DirectFB

diff -Nur DirectFB-DIRECTFB_1_7_7/configure.in patch/configure.in
--- DirectFB-DIRECTFB_1_7_7/configure.in	2015-02-09 17:29:36.000000000 +0100
+++ patch/configure.in	2021-04-13 18:51:55.058471812 +0200
@@ -1217,15 +1217,10 @@
                              [build with VNC support @<:@default=auto@:>@]),
               [], [enable_vnc=yes])
 if test "$enable_vnc" = "yes"; then
-  AC_PATH_PROG(VNC_CONFIG, libvncserver-config, no)
-  if test "$VNC_CONFIG" = "no"; then
-    enable_vnc=no
-    AC_MSG_WARN([
-*** libvncserver-config not found -- building without VNC support. See http://libvncserver.sourceforge.net])
-  else
-    VNC_CFLAGS=`$VNC_CONFIG --cflags`
-    VNC_LIBS=`$VNC_CONFIG --libs`
-  fi
+	PKG_CHECK_MODULES(VNC, [libvncserver], [], [
+		enable_vnc=no
+		AC_MSG_WARN([*** libvncserver-config not found -- building without VNC support. See http://libvncserver.sourceforge.net])
+	])
 fi
 
 AM_CONDITIONAL(VNC_CORE, test "$enable_vnc" = "yes")
openSUSE Build Service is sponsored by