Get rid of module-wide config.h mess, use per-directory equivalents (although config-kopete.h is still quite a mess in itself)

Many configuration-related cleanups.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=627480
This commit is contained in:
David Faure
2007-01-26 18:56:02 +00:00
parent 9fe1ef9099
commit fce4ebbb4f
6 changed files with 23 additions and 21 deletions

View File

@@ -1,3 +1,6 @@
check_symbol_exists(getifaddrs "sys/socket.h;netdb.h;ifaddrs.h" HAVE_GETIFADDRS)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-krfb.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krfb.h )
set(vncserver_SRCS
${CMAKE_SOURCE_DIR}/krfb/libvncserver/main.c
${CMAKE_SOURCE_DIR}/krfb/libvncserver/rfbserver.c

5
config-krfb.h.cmake Normal file
View File

@@ -0,0 +1,5 @@
/* Define to 1 if you have the `getifaddrs' function. */
#cmakedefine HAVE_GETIFADDRS 1
/* Define if SLP is available */
#cmakedefine HAVE_SLP 1

View File

@@ -15,10 +15,6 @@
* *
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/*
* Contains keyboard & pointer handling from libvncserver's x11vnc.c
*/
@@ -36,6 +32,7 @@
#include <strings.h>
#endif
#include <kdefakes.h> // gethostname
#include <kapplication.h>
#include <KNotification>
#include <kdebug.h>

View File

@@ -23,11 +23,10 @@
* removed glibc dependencies
*/
#include "config.h"
#include "getifaddrs.h"
#ifndef HAVE_GETIFADDRS
#include "getifaddrs.h"
#include <net/if.h>
#include <sys/socket.h>
#include <sys/ioctl.h>

View File

@@ -22,11 +22,9 @@
* removed glibs dependencies
*/
#include "config.h"
#include "config-krfb.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/socket.h>
#include <net/if.h>

View File

@@ -21,7 +21,7 @@
* TODO: see below..
*/
#include "config.h"
#include "config-krfb.h"
#include "kserviceregistry.h"
#include <kdebug.h>