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.
21 ?C: This symbol, if defined, indicates that Perl should
22 ?C: be built with support for DTrace.
24 ?H:#$usedtrace USE_DTRACE /**/
30 dflt_dtrace='/usr/sbin/dtrace'
33 Perl can be built to support DTrace on platforms that support it.
34 DTrace is a diagnosis and performance analysis tool from Sun.
36 If this doesn't make any sense to you, just accept the default '$dflt'.
46 dflt_dtrace=$usedtrace
53 rp='Support DTrace if available?'
62 test "X$usedtrace" != "X$define" && break
65 rp='Where is the dtrace executable?'
74 if $dtrace -h -s ../perldtrace.d \
75 -o perldtrace.tmp >/dev/null 2>&1 \
76 && rm -f perldtrace.tmp
79 echo "Good: your $dtrace knows about the -h flag."
83 *** $me: Fatal Error: $dtrace doesn't support -h flag
85 *** Your installed dtrace doesn't support the -h switch to compile a D
86 *** program into a C header. Can't continue.
98 *** $me: Fatal Error: $dtrace not found.
105 echo "*** $dtrace was not found."