aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-02 23:57:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-02 23:57:19 +0100
commit31de590fa402df1cc33e6d06a06d1bd108f8ed09 (patch)
tree582421900e095aa10059ebec19144f49bb70cdd8
parent37845898cbf779c7d3b5664997d0db48968c929c (diff)
downloadrspamd-31de590fa402df1cc33e6d06a06d1bd108f8ed09.tar.gz
rspamd-31de590fa402df1cc33e6d06a06d1bd108f8ed09.zip
Check for getaddrinfo presence on a build system.
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c225558e..e5687f5eb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -848,6 +848,11 @@ CHECK_SYMBOL_EXISTS(fallocate fcntl.h HAVE_FALLOCATE)
CHECK_SYMBOL_EXISTS(fdatasync unistd.h HAVE_FDATASYNC)
CHECK_SYMBOL_EXISTS(_SC_NPROCESSORS_ONLN unistd.h HAVE_SC_NPROCESSORS_ONLN)
CHECK_SYMBOL_EXISTS(setbit sys/param.h PARAM_H_HAS_BITSET)
+CHECK_SYMBOL_EXISTS(getaddrinfo "sys/types.h;sys/socket.h;netdb.h" HAVE_GETADDRINFO)
+
+IF(NOT HAVE_GETADDRINFO)
+ MESSAGE(FATAL_ERROR "Your system does not support getaddrinfo call, please consider upgrading it to run rspamd")
+ENDIF(NOT HAVE_GETADDRINFO)
IF(HAVE_SIGINFO_H)
CHECK_SYMBOL_EXISTS(SA_SIGINFO "signal.h;siginfo.h" HAVE_SA_SIGINFO)
ELSE(HAVE_SIGINFO_H)