summaryrefslogtreecommitdiffstats
path: root/krfb/configure.in.in
blob: d3715c31a9daab16f8f30449c9931c5aeddfe2dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
KDE_CHECK_HEADER(X11/extensions/XTest.h, 
	[],
	AC_MSG_ERROR([XTest  extension header not found / no xlib headers]))

#check for getifaddrs(3) (as in glibc >= 2.3 and newer bsds)
AC_MSG_CHECKING(for getifaddrs support)
AC_TRY_LINK(    [
			#include <sys/types.h>
			#include <sys/socket.h>
			#include <ifaddrs.h>
                ],[
			getifaddrs(0);
                ],[
                        AC_DEFINE(HAVE_GETIFADDRS,1,[Define if getifaddrs is available])
                        AC_MSG_RESULT(yes)
                        COMPILE_GETIFADDRS=""
                ],[
                        AC_MSG_RESULT(no)
                        COMPILE_GETIFADDRS="getifaddrs.cpp"
])
AC_SUBST(COMPILE_GETIFADDRS)