Workaround for OpenBSD's pkg-config.

Index: ac/qt5.m4
--- ac/qt5.m4.orig
+++ ac/qt5.m4
@@ -79,15 +79,15 @@ check_qt5() {
   if test "x$with_qt_pkg_config" = xyes; 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
 
-    orig_with_qt_pkg_config_modules="$with_qt_pkg_config_modules,"
+    orig_with_qt_pkg_config_modules="$with_qt_pkg_config_modules"
 
-    with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5Core"
+    with_qt_pkg_config_modules="$with_qt_pkg_config_modules Qt5Core"
 
     if test x"$enable_gui" = xyes; then
-        with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5Gui,Qt5Widgets,Qt5Multimedia,Qt5Network,Qt5Concurrent,Qt5Svg"
+        with_qt_pkg_config_modules="$with_qt_pkg_config_modules Qt5Gui Qt5Widgets Qt5Multimedia Qt5Network Qt5Concurrent Qt5Svg"
     fi
 
     if test x"$MINGW" = x1; then
@@ -95,7 +95,7 @@ check_qt5() {
     fi
 
     PKG_CHECK_EXISTS([$with_qt_pkg_config_modules],[ok=1],[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_CHECKING(for Qt 5)
@@ -106,7 +106,7 @@ check_qt5() {
     if test x"$MINGW" != x1 && ! echo "$host" | grep -q -i apple ; then
       PKG_CHECK_EXISTS([Qt5DBus],[dbus_found=yes],[dbus_found=no])
       if test x"$dbus_found" = xyes; then
-        with_qt_pkg_config_modules="$with_qt_pkg_config_modules,Qt5DBus"
+        with_qt_pkg_config_modules="$with_qt_pkg_config_modules Qt5DBus"
         AC_DEFINE(HAVE_QTDBUS, 1, [Define if QtDBus is present])
       fi
     fi
@@ -114,7 +114,7 @@ check_qt5() {
     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`"
-    QT_LIBS_NON_GUI="`$PKG_CONFIG --libs $orig_with_qt_pkg_config_modules,Qt5Core $QT_PKG_CONFIG_STATIC`"
+    QT_LIBS_NON_GUI="`$PKG_CONFIG --libs $orig_with_qt_pkg_config_modules Qt5Core $QT_PKG_CONFIG_STATIC`"
   fi
 
   dnl compile test program
