From: Julian Seward Date: Sun, 22 Dec 2002 19:32:23 +0000 (+0000) Subject: Don't assume Perl lives in /usr/bin; do a proper test for it. X-Git-Tag: svn/VALGRIND_1_9_4~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=802a40daeaecce3903f0442536baea570ae82264;p=thirdparty%2Fvalgrind.git Don't assume Perl lives in /usr/bin; do a proper test for it. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1389 --- diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in index d6f1848e49..67d5af306f 100644 --- a/cachegrind/cg_annotate.in +++ b/cachegrind/cg_annotate.in @@ -1,4 +1,4 @@ -#! /usr/bin/perl -w +#! @PERL@ -w ##--------------------------------------------------------------------## ##--- The cache simulation framework: instrumentation, recording ---## diff --git a/configure.in b/configure.in index 8d22798920..2912b15d66 100644 --- a/configure.in +++ b/configure.in @@ -19,6 +19,9 @@ if test "${GCC}" != "yes" ; then AC_MSG_ERROR([Valgrind relies on GCC to be compiled]) fi +# figure out where perl lives +AC_PATH_PROG(PERL, perl) + # some older automake's don't have it so try something on our own ifdef([AM_PROG_AS],[AM_PROG_AS], [ diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index 688b69879e..e9b2a94140 100755 --- a/tests/vg_regtest.in +++ b/tests/vg_regtest.in @@ -1,4 +1,4 @@ -#! /usr/bin/perl -w +#! @PERL@ -w ##--------------------------------------------------------------------## ##--- Valgrind regression testing script vg_regtest ---## ##--------------------------------------------------------------------##