summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2017-04-21 16:20:01 +0200
committerChristian Beier <dontmind@freeshell.org>2017-04-21 16:20:01 +0200
commitc80879ee69bcad51564b8b183f63131934006bf5 (patch)
treeaaf496904f80aa58117c8d6b01764289a9cd9dae
parent81d5b844ed59593877a8b46518394af79570417f (diff)
downloadlibtdevnc-c80879ee69bcad51564b8b183f63131934006bf5.tar.gz
libtdevnc-c80879ee69bcad51564b8b183f63131934006bf5.zip
CMake: add all function checks that used to be in configure.ac
Fixes #174
-rw-r--r--CMakeLists.txt15
-rw-r--r--rfb/rfbconfig.h.cmakein42
2 files changed, 56 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc72cc5..cf6017d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -159,7 +159,20 @@ check_function_exists(vfork LIBVNCSERVER_HAVE_VFORK)
check_function_exists(vprintf LIBVNCSERVER_HAVE_VPRINTF)
check_function_exists(mmap LIBVNCSERVER_HAVE_MMAP)
check_function_exists(fork LIBVNCSERVER_HAVE_FORK)
-
+check_function_exists(ftime LIBVNCSERVER_HAVE_FTIME)
+check_function_exists(gethostbyname LIBVNCSERVER_HAVE_GETHOSTBYNAME)
+check_function_exists(gethostname LIBVNCSERVER_HAVE_GETHOSTNAME)
+check_function_exists(inet_ntoa LIBVNCSERVER_HAVE_INET_NTOA)
+check_function_exists(memmove LIBVNCSERVER_HAVE_MEMMOVE)
+check_function_exists(memset LIBVNCSERVER_HAVE_MEMSET)
+check_function_exists(mkfifo LIBVNCSERVER_HAVE_MKFIFO)
+check_function_exists(select LIBVNCSERVER_HAVE_SELECT)
+check_function_exists(socket LIBVNCSERVER_HAVE_SOCKET)
+check_function_exists(strchr LIBVNCSERVER_HAVE_STRCHR)
+check_function_exists(strcspn LIBVNCSERVER_HAVE_STRCSPN)
+check_function_exists(strdup LIBVNCSERVER_HAVE_STRDUP)
+check_function_exists(strerror LIBVNCSERVER_HAVE_STRERROR)
+check_function_exists(strstr LIBVNCSERVER_HAVE_STRSTR)
# On systems such as GNU/Linux with glibc, __b64_ntop is defined in a
# separate library, libresolv. On some others, such as FreeBSD, it is
diff --git a/rfb/rfbconfig.h.cmakein b/rfb/rfbconfig.h.cmakein
index f2c96ee..c4dc5c0 100644
--- a/rfb/rfbconfig.h.cmakein
+++ b/rfb/rfbconfig.h.cmakein
@@ -18,6 +18,48 @@
/* Define to 1 if you have the `gettimeofday' function. */
#cmakedefine LIBVNCSERVER_HAVE_GETTIMEOFDAY 1
+/* Define to 1 if you have the `ftime' function. */
+#cmakedefine LIBVNCSERVER_HAVE_FTIME 1
+
+/* Define to 1 if you have the `gethostbyname' function. */
+#cmakedefine LIBVNCSERVER_HAVE_GETHOSTBYNAME 1
+
+/* Define to 1 if you have the `gethostname' function. */
+#cmakedefine LIBVNCSERVER_HAVE_GETHOSTNAME 1
+
+/* Define to 1 if you have the `inet_ntoa' function. */
+#cmakedefine LIBVNCSERVER_HAVE_INET_NTOA 1
+
+/* Define to 1 if you have the `memmove' function. */
+#cmakedefine LIBVNCSERVER_HAVE_MEMMOVE 1
+
+/* Define to 1 if you have the `memset' function. */
+#cmakedefine LIBVNCSERVER_HAVE_MEMSET 1
+
+/* Define to 1 if you have the `mkfifo' function. */
+#cmakedefine LIBVNCSERVER_HAVE_MKFIFO 1
+
+/* Define to 1 if you have the `select' function. */
+#cmakedefine LIBVNCSERVER_HAVE_SELECT 1
+
+/* Define to 1 if you have the `socket' function. */
+#cmakedefine LIBVNCSERVER_HAVE_SOCKET 1
+
+/* Define to 1 if you have the `strchr' function. */
+#cmakedefine LIBVNCSERVER_HAVE_STRCHR 1
+
+/* Define to 1 if you have the `strcspn' function. */
+#cmakedefine LIBVNCSERVER_HAVE_STRCSPN 1
+
+/* Define to 1 if you have the `strdup' function. */
+#cmakedefine LIBVNCSERVER_HAVE_STRDUP 1
+
+/* Define to 1 if you have the `strerror' function. */
+#cmakedefine LIBVNCSERVER_HAVE_STRERROR 1
+
+/* Define to 1 if you have the `strstr' function. */
+#cmakedefine LIBVNCSERVER_HAVE_STRSTR 1
+
/* Define to 1 if you have the `jpeg' library (-ljpeg). */
#cmakedefine LIBVNCSERVER_HAVE_LIBJPEG 1