summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
Commit message (Collapse)AuthorAgeFilesLines
* swrap: print out SOCKET_WRAPPER_PACKAGE and SOCKET_WRAPPER_VERSION on first useStefan Metzmacher2021-02-021-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* configure: check for pragma init/fini for constructors/destructorsBjörn Jacke2020-11-041-0/+26
| | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* socket_wrapper.c: implement getsockopt(TCP_INFO) if the platform supports itStefan Metzmacher2020-06-221-0/+1
| | | | | | | | | | This just implements a few basics, which are required by Samba. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 300de6e099ea82ee5361918de8c3abb389e0782d)
* Revert "socket_wrapper.c: implement getsockopt(TCP_INFO) if the platform ↵Stefan Metzmacher2020-06-191-1/+0
| | | | | | | | | | supports it" This reverts commit 300de6e099ea82ee5361918de8c3abb389e0782d. This got merged automatically by gitlab without review. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* socket_wrapper.c: implement getsockopt(TCP_INFO) if the platform supports itStefan Metzmacher2020-06-191-0/+1
| | | | | | | | This just implements a few basics, which are required by Samba. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897 Signed-off-by: Stefan Metzmacher <metze@samba.org>
* swrap: provide _{socket,close,connect,...} symbols on FreeBSDStefan Metzmacher2020-03-191-2/+2
| | | | | | | Maybe that's not FreeBSD only, but at least this fixes the interaction of resolv_wrapper and socket_wrapper on FreeBSD 12. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* cmake: Remove unused config.h variablesAndreas Schneider2019-02-201-4/+0
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* swrap: Also log the process nameAndreas Schneider2018-11-131-0/+9
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* cmake: SWRAP_REQUIRED_LIBRARIES should be a listAndreas Schneider2018-11-071-1/+0
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* cmake: Create a list with required librariesAndreas Schneider2018-11-061-3/+4
| | | | | | | This should fix the build on OmniOS. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* cmake: Fix checking for required system librariesAndreas Schneider2018-10-231-11/+13
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* cmake: Don't misuse CMAKE_REQUIRED_LIBRARIESAndreas Schneider2018-10-231-5/+5
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* cmake: Require at least cmake 3.2.0Andreas Schneider2018-08-171-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>
* cmake: Fix configure check for fall-through attributeAndreas Schneider2018-03-221-13/+4
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* cmake: Fix checks for attributesAndreas Schneider2018-02-221-5/+11
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* swrap: Suppress intentional fall through warningAnoop C S2017-07-271-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>
* cmake: Check for fopen64() functionAndreas Schneider2017-04-061-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* cmake: Check for open64() functionAndreas Schneider2017-04-061-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>
* cmake: Check for constructor attributeAndreas Schneider2016-10-201-0/+12
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Add support for accept4()Andreas Schneider2016-05-031-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* swrap: Add support for running on OpenBSDAndreas Schneider2016-05-031-0/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* cmake: Treat no_sanitize_address attribute warnings as error.Andreas Schneider2014-10-241-0/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* src: Add support for running with address sanitizer.Andreas Schneider2014-10-201-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>
* swrap: Add support for eventfd with unsigned count variable.Andreas Schneider2014-10-011-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>
* Define _GNU_SOURCE on one place only.Jakub Hrozek2014-08-151-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>
* swrap: add check for rpc/rpc.h - needed on freebsd for bindresvportMichael Adam2014-06-011-0/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: Add support for bindresvport().Andreas Schneider2014-05-311-0/+4
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Check if the in_pktinfo structure is available.Andreas Schneider2014-05-261-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* cmake: Add check for HAVE_STRUCT_IN6_PKTINFO.Andreas Schneider2014-05-211-0/+5
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* swrap: use LIBC_SO from GNU libc, if availablePino Toscano2014-05-081-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>
* src: Add timerfd_create() to handle stale fds.Andreas Schneider2014-01-281-0/+2
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Add eventfd() to handle stale fds.Andreas Schneider2014-01-281-0/+2
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Add signalfd() to handle stale fds.Andreas Schneider2014-01-281-7/+2
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* cmake: Check for HAVE_STRUCT_MSGHDR_MSG_CONTROL.Andreas Schneider2014-01-211-0/+1
|
* cmake: Fix HAVE_STRUCT_SOCKADDR_SA_LEN detection.Andreas Schneider2014-01-211-1/+1
|
* Fix formatting of variables of type pid_tJakub Hrozek2013-12-111-0/+2
|
* cmake: Detect attribute formatJakub Hrozek2013-12-111-0/+8
|
* cmake: Check for ioctl in unistd.h on Solaris.Andreas Schneider2013-11-201-1/+1
|
* cmake: Fix ioctl configure check.Andreas Schneider2013-11-151-2/+2
|
* cmake: Link testsuite against socket libraries.Andreas Schneider2013-07-081-1/+1
|
* src: Fix build on OpenIndiana.Andreas Schneider2013-07-081-4/+12
|
* cmake: Try to fix compilation on Solaris.Andreas Schneider2013-07-081-3/+3
|
* cmake: Try to fix compilation on FreeBSD.Andreas Schneider2013-07-081-0/+4
|
* src: Correctly load symbols on APPLE.Andreas Schneider2013-07-051-0/+4
|
* cmake: Check for getimeofday on MacOSX correctly.Andreas Schneider2013-07-031-0/+6
|
* cmake: Check for Thread Local Storage.Andreas Schneider2013-07-031-0/+7
|
* src: Add a destructor to cleanup unix socket files.Andreas Schneider2013-06-301-0/+12
|
* cmake: Link against libdl.Andreas Schneider2013-05-281-0/+8
|
* cmake: Check correctly for IPv6.Andreas Schneider2013-02-071-2/+40
|
* Initial commit.Andreas Schneider2013-02-071-0/+100