summaryrefslogtreecommitdiff
path: root/source3/tdb/aclocal.m4
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-18 16:25:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:42 -0500
commit986461b6be03eefd3bd9d9c5f5921e14189813b2 (patch)
treef0a6fba525638e901ac09024728d44253b48de43 /source3/tdb/aclocal.m4
parent41a4496b20e510dc47fe2b816196cef6fe937cea (diff)
downloadsamba-986461b6be03eefd3bd9d9c5f5921e14189813b2.tar.gz
samba-986461b6be03eefd3bd9d9c5f5921e14189813b2.tar.bz2
samba-986461b6be03eefd3bd9d9c5f5921e14189813b2.zip
r17607: Adapt the Samba4 directory structure for tdb. Makes it easier to diff.
Let's see what it breaks. For me it works :-) Volker (This used to be commit 337be14b432e5dfd80c7418b2db4fe0087259b77)
Diffstat (limited to 'source3/tdb/aclocal.m4')
-rw-r--r--source3/tdb/aclocal.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/tdb/aclocal.m4 b/source3/tdb/aclocal.m4
new file mode 100644
index 0000000000..cdc2a2fa52
--- /dev/null
+++ b/source3/tdb/aclocal.m4
@@ -0,0 +1,12 @@
+dnl see if a declaration exists for a function or variable
+dnl defines HAVE_function_DECL if it exists
+dnl AC_HAVE_DECL(var, includes)
+AC_DEFUN(AC_HAVE_DECL,
+[
+ AC_CACHE_CHECK([for $1 declaration],ac_cv_have_$1_decl,[
+ AC_TRY_COMPILE([$2],[int i = (int)$1],
+ ac_cv_have_$1_decl=yes,ac_cv_have_$1_decl=no)])
+ if test x"$ac_cv_have_$1_decl" = x"yes"; then
+ AC_DEFINE([HAVE_]translit([$1], [a-z], [A-Z])[_DECL],1,[Whether $1() is available])
+ fi
+])