summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/m4/rewrite.m43
-rw-r--r--source4/build/smb_build/core.m42
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index f1733123ea..f112ea7fc1 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -5,6 +5,9 @@ if test x"$PERL" = x""; then
AC_MSG_WARN([No version of perl was not found!])
AC_MSG_ERROR([Please Install perl from http://www.perl.com/])
fi
+if test x"$debug" = x"yes";then
+ PERL="$PERL -W"
+fi
AC_PROG_CC
AC_PROG_INSTALL
diff --git a/source4/build/smb_build/core.m4 b/source4/build/smb_build/core.m4
index ae990d95c3..df95610c98 100644
--- a/source4/build/smb_build/core.m4
+++ b/source4/build/smb_build/core.m4
@@ -21,7 +21,7 @@ AC_DEFUN([_SMB_BUILD_CORE],
echo "config.status: creating ./config.smb_build.pl"
cat > config.smb_build.pl <<\_SMB_ACEOF
-#!/usr/bin/perl -W
+#!$PERL
#
use strict;