aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
AgeCommit message (Collapse)AuthorFilesLines
2019-02-20cmake: Remove unused config.h variablesAndreas Schneider1-4/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2018-11-13swrap: Also log the process nameAndreas Schneider1-0/+9
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-11-07cmake: SWRAP_REQUIRED_LIBRARIES should be a listAndreas Schneider1-1/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-11-06cmake: Create a list with required librariesAndreas Schneider1-3/+4
This should fix the build on OmniOS. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-10-23cmake: Fix checking for required system librariesAndreas Schneider1-11/+13
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-10-23cmake: Don't misuse CMAKE_REQUIRED_LIBRARIESAndreas Schneider1-5/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-17cmake: Require at least cmake 3.2.0Andreas Schneider1-2/+2
This allows us to modernize the CMakeLists.txt Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2018-03-22cmake: Fix configure check for fall-through attributeAndreas Schneider1-13/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-02-22cmake: Fix checks for attributesAndreas Schneider1-5/+11
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2017-07-27swrap: Suppress intentional fall through warningAnoop C S1-0/+27
-Wimplicit-fallthrough compiler flag introduced with gcc v7 results in the following warning during compilation: [ 7%] Building C object src/CMakeFiles/socket_wrapper.dir/socket_wrapper.c.o src/socket_wrapper.c: In function ‘sockaddr_convert_to_un’: src/socket_wrapper.c:1846:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case AF_UNSPEC: { ^ /src/socket_wrapper.c:1866:2: note: here case AF_INET: ^~~~ Default level for -Wimplicit-fallthrough(which is 3) allows us to get rid of the above warning using specific comments made within switch cases matching the regular expressions outlined in gcc docs[1]. But for us the presence of preprocessor directives in the vicinity of such comments nullifies its effect[2]. So our best bet would be to make use of the reliable fallthrough attribute and supress such warnings in future. [1] https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817 Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2017-04-06cmake: Check for fopen64() functionAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06cmake: Check for open64() functionAndreas Schneider1-0/+1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12694 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-10-20cmake: Check for constructor attributeAndreas Schneider1-0/+12
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2016-05-03swrap: Add support for accept4()Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
2016-05-03swrap: Add support for running on OpenBSDAndreas Schneider1-0/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
2014-10-24cmake: Treat no_sanitize_address attribute warnings as error.Andreas Schneider1-0/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-10-20src: Add support for running with address sanitizer.Andreas Schneider1-0/+11
It address sanitzer will complain about our hack with variable function attributes. This disables the checking of it. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2014-10-01swrap: Add support for eventfd with unsigned count variable.Andreas Schneider1-0/+8
The prototype in glibc 2.20.90 changed. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-08-15Define _GNU_SOURCE on one place only.Jakub Hrozek1-2/+0
There were several _GNU_SOURCE definitions scaterred in the build system. This patch always adds -D_GNU_SOURCE to the CFLAGS if building on a UNIX platform. Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-06-01swrap: add check for rpc/rpc.h - needed on freebsd for bindresvportMichael Adam1-0/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-05-31swrap: Add support for bindresvport().Andreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-05-26swrap: Check if the in_pktinfo structure is available.Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-05-21cmake: Add check for HAVE_STRUCT_IN6_PKTINFO.Andreas Schneider1-0/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-05-08swrap: use LIBC_SO from GNU libc, if availablePino Toscano1-0/+1
Look for gnu/lib-names.h and use the LIBC_SO define to dlopen libc, so the right library is loaded without manually searching for libc.so.N. Signed-off-by: Pino Toscano <toscano.pino@tiscali.it> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-01-28src: Add timerfd_create() to handle stale fds.Andreas Schneider1-0/+2
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-01-28src: Add eventfd() to handle stale fds.Andreas Schneider1-0/+2
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-01-28src: Add signalfd() to handle stale fds.Andreas Schneider1-7/+2
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-01-21cmake: Check for HAVE_STRUCT_MSGHDR_MSG_CONTROL.Andreas Schneider1-0/+1
2014-01-21cmake: Fix HAVE_STRUCT_SOCKADDR_SA_LEN detection.Andreas Schneider1-1/+1
2013-12-11Fix formatting of variables of type pid_tJakub Hrozek1-0/+2
2013-12-11cmake: Detect attribute formatJakub Hrozek1-0/+8
2013-11-20cmake: Check for ioctl in unistd.h on Solaris.Andreas Schneider1-1/+1
2013-11-15cmake: Fix ioctl configure check.Andreas Schneider1-2/+2
2013-07-08cmake: Link testsuite against socket libraries.Andreas Schneider1-1/+1
2013-07-08src: Fix build on OpenIndiana.Andreas Schneider1-4/+12
2013-07-08cmake: Try to fix compilation on Solaris.Andreas Schneider1-3/+3
2013-07-08cmake: Try to fix compilation on FreeBSD.Andreas Schneider1-0/+4
2013-07-05src: Correctly load symbols on APPLE.Andreas Schneider1-0/+4
2013-07-03cmake: Check for getimeofday on MacOSX correctly.Andreas Schneider1-0/+6
2013-07-03cmake: Check for Thread Local Storage.Andreas Schneider1-0/+7
2013-06-30src: Add a destructor to cleanup unix socket files.Andreas Schneider1-0/+12
2013-05-28cmake: Link against libdl.Andreas Schneider1-0/+8
2013-02-07cmake: Check correctly for IPv6.Andreas Schneider1-2/+40
2013-02-07Initial commit.Andreas Schneider1-0/+100