mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s3: Test for "__attribute__((destructor))"
This commit is contained in:
parent
e2806f9e4d
commit
36e736871e
@ -1366,6 +1366,22 @@ if test x"$samba_cv_stat_dos_flags" = x"yes" ; then
|
||||
AC_DEFINE(HAVE_STAT_DOS_FLAGS, 1, [whether there is DOS flags support in the stat struct])
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([whether we can compile with __attribute__((destructor))],
|
||||
samba_cv_function_attribute_destructor,
|
||||
[
|
||||
AC_COMPILE_IFELSE(
|
||||
[
|
||||
__attribute__((destructor))
|
||||
static void cleanup(void) { }
|
||||
],
|
||||
samba_cv_function_attribute_destructor=yes)
|
||||
])
|
||||
|
||||
if test x"$samba_cv_function_attribute_destructor" = xyes ; then
|
||||
AC_DEFINE(HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR, 1,
|
||||
[whether we can compile with __attribute__((destructor))])
|
||||
fi
|
||||
|
||||
#####################################
|
||||
# needed for SRV lookups
|
||||
AC_CHECK_LIB(resolv, dn_expand)
|
||||
|
Loading…
Reference in New Issue
Block a user