git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1389
-#! /usr/bin/perl -w
+#! @PERL@ -w
##--------------------------------------------------------------------##
##--- The cache simulation framework: instrumentation, recording ---##
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],
[
-#! /usr/bin/perl -w
+#! @PERL@ -w
##--------------------------------------------------------------------##
##--- Valgrind regression testing script vg_regtest ---##
##--------------------------------------------------------------------##