$OpenBSD: patch-ac_qt5_m4,v 1.3 2015/07/20 07:09:29 ajacoutot Exp $

Workaround for OpenBSD's pkg-config.

--- ac/qt5.m4.orig	Sat Jul 18 07:39:41 2015
+++ ac/qt5.m4	Sun Jul 19 21:45:54 2015
@@ -124,19 +124,18 @@ if test x"$enable_qt" = "xyes" -a \
   fi
 
   if test $ok = 1; then
-    with_qt_pkg_config_modules="`echo "$with_qt_pkg_config_modules" | sed -e 's/ /,/g'`"
     if test x"$with_qt_pkg_config_modules" != x ; then
-      with_qt_pkg_config_modules="$with_qt_pkg_config_modules,"
+      with_qt_pkg_config_modules="$with_qt_pkg_config_modules"
     fi
 
-    with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5Core,Qt5Gui,Qt5Widgets,Qt5Network"
+    with_qt_pkg_config_modules="$with_qt_pkg_config_modules Qt5Core Qt5Gui Qt5Widgets Qt5Network"
 
     if test x"$MINGW" = x1; then
-      with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5WinExtras"
+      with_qt_pkg_config_modules="$with_qt_pkg_config_modules Qt5WinExtras"
     fi
 
     PKG_CHECK_EXISTS([$with_qt_pkg_config_modules],,[ok=0])
-    PKG_CHECK_EXISTS([Qt5PlatformSupport],[with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5PlatformSupport"])
+    PKG_CHECK_EXISTS([Qt5PlatformSupport],[with_qt_pkg_config_modules="$with_qt_pkg_config_modules Qt5PlatformSupport"])
 
     if test $ok = 0; then
       AC_MSG_RESULT(no: not found by pkg-config)
@@ -145,7 +144,6 @@ if test x"$enable_qt" = "xyes" -a \
 
   if test $ok = 1; then
     dnl Try compiling and linking an application.
-    with_qt_pkg_config_modules="`echo "$with_qt_pkg_config_modules" | sed -e 's/,/ /g'`"
     QT_CFLAGS="`$PKG_CONFIG --cflags $with_qt_pkg_config_modules $QT_PKG_CONFIG_STATIC`"
     QT_LIBS="`$PKG_CONFIG --libs $with_qt_pkg_config_modules $QT_PKG_CONFIG_STATIC`"
 
