summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-05-13 20:26:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:44 -0500
commitdd1e2cd0d7d64777300f575807bac625880d72cb (patch)
treeb89d28f111a2a261d564f4dd2583127f5901221b /source4
parent90cde0acd1544b544a1e5f3fb396ae8c3229b23d (diff)
downloadsamba-dd1e2cd0d7d64777300f575807bac625880d72cb.tar.gz
samba-dd1e2cd0d7d64777300f575807bac625880d72cb.tar.bz2
samba-dd1e2cd0d7d64777300f575807bac625880d72cb.zip
r703: only use $PERL -W when --enable-debug
metz (This used to be commit 6289da6783d91637a6be76a4e5444fc22570eca0)
Diffstat (limited to 'source4')
-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;