summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-30 11:50:12 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-30 11:50:12 +0200
commitb62f0568541a3a2510769c266b0ab2dbc757dc84 (patch)
tree0c82da81175ed44cde3ce829800f75cc184daaa8 /ConfigureChecks.cmake
parent2c118f9c3130bb022e19c9f37294ed768433e046 (diff)
downloadsocket_wrapper-b62f0568541a3a2510769c266b0ab2dbc757dc84.tar.gz
socket_wrapper-b62f0568541a3a2510769c266b0ab2dbc757dc84.tar.xz
socket_wrapper-b62f0568541a3a2510769c266b0ab2dbc757dc84.zip
src: Add a destructor to cleanup unix socket files.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 6dfac8a..10373c1 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -132,6 +132,18 @@ int main(void) {
return 0;
}" HAVE_SOCKADDR_STORAGE)
+check_c_source_compiles("
+void test_destructor_attribute(void) __attribute__ ((destructor));
+
+void test_destructor_attribute(void)
+{
+ return;
+}
+
+int main(void) {
+ return 0;
+}" HAVE_DESTRUCTOR_ATTRIBUTE)
+
check_library_exists(dl dlopen "" HAVE_LIBDL)
if (HAVE_LIBDL)
find_library(DLFCN_LIBRARY dl)