1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-01 07:24:29 +00:00

Move SLP test from krfb to top-level configure because it will be needed by krdc as well

svn path=/trunk/kdenetwork/krfb/; revision=169076
This commit is contained in:
Tim Jansen 2002-07-27 14:19:03 +00:00
parent 80d8d3833d
commit e8754f5015

View File

@ -2,23 +2,3 @@ KDE_CHECK_HEADER(X11/extensions/XTest.h,
[],
AC_MSG_ERROR([XTest extension header not found / no xlib headers]))
#check for SLP
AC_MSG_CHECKING(for SLP support)
save_krfb_LIBS="$LIBS"
LIBS="-lslp"
AC_TRY_LINK( [
#include <slp.h>
],[
SLPOpen(0, SLP_FALSE, (SLPHandle*) 0);
],[
AC_DEFINE(HAVE_SLP,1,[Define if SLP is available])
LIB_SLP="-lslp"
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
LIB_SLP=""
AC_MSG_WARN([Browsing in krfb not possible. Install OpenSLP (www.openslp.org).])
])
LIBS=$save_krfb_LIBS
AC_SUBST(LIB_SLP)