$OpenBSD: patch-configure_in,v 1.6 2008/04/28 00:39:10 sthen Exp $
--- configure.in.orig	Thu Apr 10 16:16:39 2008
+++ configure.in	Tue Apr 22 04:40:16 2008
@@ -794,7 +794,7 @@ AC_MSG_RESULT($amarok_glibcsched_works)
 ###############################################################################
 
 KDE_CHECK_HEADER(konqsidebarplugin.h, have_konqsidebar=yes, have_konqsidebar=no)
-KDE_CHECK_LIB(konqsidebarplugin, _init, have_konqsidebar=$have_konqsidebar, have_konqsidebar=no)
+KDE_CHECK_LIB(konqsidebarplugin, _init, have_konqsidebar=$have_konqsidebar, have_konqsidebar=no, [-lstdc++ $LIBPTHREAD])
 
 AM_CONDITIONAL(with_konqsidebar, [test x$have_konqsidebar = xyes])
 
