summaryrefslogtreecommitdiffstats
path: root/config.h.cmake
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2022-01-17 17:05:30 +0900
committerOBATA Akio <[email protected]>2022-01-17 17:05:30 +0900
commitad41084b8dd4e029e04073e22e52164505719b57 (patch)
tree257afdfd9f0d8048e1d1facfde685c77a38c43a4 /config.h.cmake
parent50a228fc2d0250bcbbb35c676285831a0c35397e (diff)
downloadtdelibs-ad41084b8dd4e029e04073e22e52164505719b57.tar.gz
tdelibs-ad41084b8dd4e029e04073e22e52164505719b57.zip
Fix feature detections with CMake
* implement missing checks with CMake * fixes and improve some detections * remove missing but unused checks Signed-off-by: OBATA Akio <[email protected]>
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake44
1 files changed, 12 insertions, 32 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 7285a1bd5..2f382cc73 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -13,20 +13,9 @@
#cmakedefine HAVE_DNSSD 1
#cmakedefine AVAHI_API_0_6 1
-/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
- systems. This function is required for `alloca.c' support on those systems.
- */
-#undef CRAY_STACKSEG_END
-
-/* Define to 1 if using `alloca.c'. */
-#undef C_ALLOCA
-
/* Use su or sudo */
#define DEFAULT_SUPER_USER_COMMAND "@DEFAULT_SUPER_USER_COMMAND@"
-/* Define if getaddrinfo returns AF_UNIX sockets */
-#undef GETADDRINFO_RETURNS_UNIX
-
/* getmntinfo() uses struct statvfs */
#cmakedefine GETMNTINFO_USES_STATVFS
@@ -119,9 +108,6 @@
/* Define to 1 if libbfd provides demangle.h header */
#cmakedefine HAVE_DEMANGLE_H 1
-/* You _must_ have bool */
-#undef HAVE_BOOL
-
/* Define if getaddrinfo is broken and should be replaced */
#cmakedefine HAVE_BROKEN_GETADDRINFO 1
@@ -174,7 +160,7 @@
#cmakedefine HAVE_DIRENT_H 1
/* Define if you have the GNU dld library. */
-#undef HAVE_DLD
+#cmakedefine HAVE_DLD
/* Define to 1 if you have the <dld.h> header file. */
#cmakedefine HAVE_DLD_H 1
@@ -201,7 +187,7 @@
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define is posix_fadvise is supported */
-#undef HAVE_FADVISE
+#cmakedefine HAVE_FADVISE
/* Define if your system has libfam */
#cmakedefine HAVE_FAM 1
@@ -314,9 +300,6 @@
/* Define if you have jasper */
#cmakedefine HAVE_JASPER 1
-/* Define if your locale.h file contains LC_MESSAGES */
-#undef HAVE_LC_MESSAGES
-
/* Defines if your system has the libart library */
#cmakedefine HAVE_LIBART 1
@@ -341,12 +324,6 @@
/* Define if you have libpng */
#cmakedefine HAVE_LIBPNG 1
-/* Define if you have a working libpthread (will enable threaded code) */
-#undef HAVE_LIBPTHREAD
-
-/* Define to 1 if you have the `qt-mt' library (-lqt-mt). */
-#undef HAVE_LIBTQT_MT
-
/* Defined if you have libthai and want to have it compiled in */
#undef HAVE_LIBTHAI
@@ -422,9 +399,6 @@
/* Define to 1 if you have the <net/if.h> header file. */
#cmakedefine HAVE_NET_IF_H 1
-/* Define to 1 if you have the <nl_types.h> header file. */
-#undef HAVE_NL_TYPES_H
-
/* Define if system has non-POSIX extensions to the ACL support. */
#cmakedefine HAVE_NON_POSIX_ACL_EXTENSIONS 1
@@ -480,7 +454,7 @@
#cmakedefine HAVE_RES_INIT 1
/* Define if you have the res_init prototype */
-#undef HAVE_RES_INIT_PROTO
+#cmakedefine HAVE_RES_INIT_PROTO
/* Define if revoke(tty) is present in unistd.h */
#cmakedefine HAVE_REVOKE 1
@@ -603,13 +577,19 @@
#cmakedefine HAVE_STRUCT_SOCKADDR_IN6 1
/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
-#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
+#cmakedefine HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
/* Define to 1 if `sa_len' is member of `struct sockaddr'. */
-#undef HAVE_STRUCT_SOCKADDR_SA_LEN
+#cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
+
+/* Define to 1 if `sin_len' is member of `struct sockaddr_in'. */
+#cmakedefine HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
+
+/* Define to 1 if `sun_len' is member of `struct sockaddr_un'. */
+#cmakedefine HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
/* Define if struct ucred is present from sys/socket.h */
-#undef HAVE_STRUCT_UCRED
+#cmakedefine HAVE_STRUCT_UCRED 1
/* Define to 1 if you have the <sysent.h> header file. */
#cmakedefine HAVE_SYSENT_H 1