summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-05-13 16:09:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:42 -0500
commit3f564db67d9ffca599b1885ad2c6379830cd0aaf (patch)
tree13b2f9827dede47619a106b176a9630df382a79a /source4
parent2b7de39bd220d734201331bc6c3d32ef016a8122 (diff)
downloadsamba-3f564db67d9ffca599b1885ad2c6379830cd0aaf.tar.gz
samba-3f564db67d9ffca599b1885ad2c6379830cd0aaf.tar.bz2
samba-3f564db67d9ffca599b1885ad2c6379830cd0aaf.zip
r688: add --enable-experimental
use Data::Dumper for config.smb_build.dump when --enable-debug metze (This used to be commit 0fd558de796e5798279e8252a7f0d4efdd3a86e6)
Diffstat (limited to 'source4')
-rw-r--r--source4/build/smb_build/core.m45
-rw-r--r--source4/build/smb_build/dump.pl23
-rw-r--r--source4/configure.in9
3 files changed, 36 insertions, 1 deletions
diff --git a/source4/build/smb_build/core.m4 b/source4/build/smb_build/core.m4
index 0005809fe6..ae990d95c3 100644
--- a/source4/build/smb_build/core.m4
+++ b/source4/build/smb_build/core.m4
@@ -68,9 +68,12 @@ $SMB_INFO_BINARIES
smb_build_main(\$SMB_BUILD_CTX);
-0;
_SMB_ACEOF
+if test x"$debug" = x"yes";then
+ cat >> config.smb_build.pl < build/smb_build/dump.pl
+fi
+
$PERL ./config.smb_build.pl || exit $?
])
diff --git a/source4/build/smb_build/dump.pl b/source4/build/smb_build/dump.pl
new file mode 100644
index 0000000000..e4ee3ceea2
--- /dev/null
+++ b/source4/build/smb_build/dump.pl
@@ -0,0 +1,23 @@
+###########################################################
+### SMB Build System ###
+### - the dump & debug functions ###
+### ###
+### Copyright (C) Stefan (metze) Metzmacher 2004 ###
+### Released under the GNU GPL ###
+###########################################################
+
+use Data::Dumper;
+sub _dump_ctx($)
+{
+ my $ctx = shift;
+
+ open (DUMP,"> config.smb_build.dump");
+
+ print DUMP Dumper($ctx);
+
+ close(DUMP);
+
+ return;
+}
+
+_dump_ctx($SMB_BUILD_CTX);
diff --git a/source4/configure.in b/source4/configure.in
index 5c23849ae6..eb1fd7de10 100644
--- a/source4/configure.in
+++ b/source4/configure.in
@@ -146,12 +146,15 @@ AC_SUBST(EXTRA_BIN_PROGS)
AC_SUBST(EXTRA_SBIN_PROGS)
AC_SUBST(EXTRA_ALL_TARGETS)
+debug=no
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on compiler debugging information (default=no)],
[if eval "test x$enable_debug = xyes"; then
+ debug=yes
CFLAGS="${CFLAGS} -gstabs"
fi])
+developer=no
AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)],
[if eval "test x$enable_developer = xyes"; then
developer=yes
@@ -164,6 +167,12 @@ AC_ARG_ENABLE(krb5developer, [ --enable-krb5developer Turn on developer warnin
CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
fi])
+experimental=no
+AC_ARG_ENABLE(experimental, [ --enable-experimental Turn on experimental features (default=no)],
+ [if eval "test x$enable_experimental = xyes"; then
+ experimental=yes
+ fi])
+
sinclude(build/m4/rewrite.m4)
dnl exclude these modules