summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/config.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-05-16 01:57:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:45 -0500
commit1f474c2692af8ba704a4071fe6e496cb43e19bae (patch)
tree65cfe9a075899f7ba50712aa9de31eb4fc125e36 /source4/lib/talloc/config.m4
parent1d0e2b9569be6f2e8a5495ead1f92c9855f0e7f9 (diff)
downloadsamba-1f474c2692af8ba704a4071fe6e496cb43e19bae.tar.gz
samba-1f474c2692af8ba704a4071fe6e496cb43e19bae.tar.bz2
samba-1f474c2692af8ba704a4071fe6e496cb43e19bae.zip
r6804: Add config.h for talloc (and use it)
(This used to be commit c2ce09d38003fd43212de9cd08e4a781cc2aff88)
Diffstat (limited to 'source4/lib/talloc/config.m4')
-rw-r--r--source4/lib/talloc/config.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/talloc/config.m4 b/source4/lib/talloc/config.m4
index 298c6691b9..5f653e6577 100644
--- a/source4/lib/talloc/config.m4
+++ b/source4/lib/talloc/config.m4
@@ -1,3 +1,12 @@
if test x"$experimental" = x"yes"; then
SMB_LIBRARY_ENABLE(libtalloc,YES)
fi
+
+AC_CACHE_CHECK([for va_copy],samba_cv_HAVE_VA_COPY,[
+AC_TRY_LINK([#include <stdarg.h>
+va_list ap1,ap2;], [va_copy(ap1,ap2);],
+samba_cv_HAVE_VA_COPY=yes,samba_cv_HAVE_VA_COPY=no)])
+if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
+ AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available])
+fi
+