CMake: add all function checks that used to be in configure.ac

Fixes #174
pull/3/head
Christian Beier 8 years ago
parent 81d5b844ed
commit c80879ee69
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -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

@ -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

Loading…
Cancel
Save