1 ?RCS: $Id: usedtrace.U,v $
3 ?RCS: Copyright (c) 2008 H.Merijn Brand
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?RCS: $Log: usedtrace.U,v $
10 ?MAKE:usedtrace dtrace: Myread Oldconfig Setvar Getfile test
11 ?MAKE: -pick add $@ %<
14 ?S: This variable indicates whether we are compiling with dtrace
15 ?S: support. See also dtrace.
18 ?S: This variable holds the location of the dtrace executable.
24 dflt_dtrace='/usr/sbin/dtrace'
27 Perl can be built to support DTrace on platforms that support it.
28 DTrace is a diagnosis and performance analysis tool from Sun.
30 If this doesn't make any sense to you, just accept the default '$dflt'.
40 dflt_dtrace=$usedtrace
47 rp='Support DTrace if available?'
56 test "X$usedtrace" != "X$define" && break
59 rp='Where is the dtrace executable?'
68 if $dtrace -h -s ../perldtrace.d \
69 -o perldtrace.tmp >/dev/null 2>&1 \
70 && rm -f perldtrace.tmp
73 echo "Good: your $dtrace knows about the -h flag."
77 *** $me: Fatal Error: $dtrace doesn't support -h flag
79 *** Your installed dtrace doesn't support the -h switch to compile a D
80 *** program into a C header. Can't continue.
92 *** $me: Fatal Error: $dtrace not found.
99 echo "*** $dtrace was not found."