summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/talloc/config.m4')
-rw-r--r--source4/lib/talloc/config.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/lib/talloc/config.m4 b/source4/lib/talloc/config.m4
index 0286bde6c2..e5eccb3a22 100644
--- a/source4/lib/talloc/config.m4
+++ b/source4/lib/talloc/config.m4
@@ -1,3 +1,16 @@
+dnl find the talloc sources. This is meant to work both for
+dnl talloc standalone builds, and builds of packages using talloc
+tallocdir=""
+for d in "$srcdir" "$srcdir/lib/talloc" "$srcdir/talloc" "$srcdir/../talloc"; do
+ if test -f "$d/talloc.c"; then
+ tallocdir="$d"
+ AC_SUBST(tallocdir)
+ break;
+ fi
+done
+TALLOCOBJ="talloc.o"
+AC_SUBST(TALLOCOBJ)
+
AC_CHECK_HEADERS(stdarg.h vararg.h)
dnl VA_COPY