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'
31 $test -x /usr/bin/dtrace && dflt_dtrace='/usr/bin/dtrace'
35 Perl can be built to support DTrace on platforms that support it.
36 DTrace is a diagnosis and performance analysis tool from Sun.
38 If this doesn't make any sense to you, just accept the default '$dflt'.
48 dflt_dtrace=$usedtrace
55 rp='Support DTrace if available?'
64 test "X$usedtrace" != "X$define" && break
67 rp='Where is the dtrace executable?'
76 if $dtrace -h -s ../perldtrace.d \
77 -o perldtrace.tmp >/dev/null 2>&1 \
78 && rm -f perldtrace.tmp
81 echo "Good: your $dtrace knows about the -h flag."
85 *** $me: Fatal Error: $dtrace doesn't support -h flag
87 *** Your installed dtrace doesn't support the -h switch to compile a D
88 *** program into a C header. Can't continue.
100 *** $me: Fatal Error: $dtrace not found.
107 echo "*** $dtrace was not found."