~clint-fewbar/ubuntu/precise/gearmand/drop-unneeded-patches

« back to all changes in this revision

Viewing changes to m4/pandora_enable_dtrace.m4

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen, Michael Fladischer, Stig Sandbeck Mathisen
  • Date: 2012-01-23 11:31:08 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120123113108-wl1yhiba13q9jusb
Tags: 0.27-1
[Michael Fladischer]
* Patch: fix spelling
* Patch: remove dependency on googleanalytics
* Patch: fix tests
* Use non-authenticating URL for Vcs-Git.
* Add "status" action to init script.

[Stig Sandbeck Mathisen]
* New upstream release (Closes: #621486) (LP: #682680)
* Remove build dependency on drizzle
  (until it reaches testing again)
* Build with support for tokyocabinet
* Remove backported ipv6 patch
* Patch: disable hostile build tests, they take hours...
* Patch: workaround duplicate address issue for tests
* Do not build API documentation, the sources are not shipped in
  upstream tarball
* Update debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems
2
 
dnl This file is free software; Sun Microsystems
 
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
 
2
dnl This file is free software; Sun Microsystems, Inc.
3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
8
8
dnl ---------------------------------------------------------------------------
9
9
AC_DEFUN([PANDORA_ENABLE_DTRACE],[
10
10
  AC_ARG_ENABLE([dtrace],
11
 
    [AS_HELP_STRING([--enable-dtrace],
12
 
            [Build with support for the DTRACE. @<:@default=off@:>@])],
13
 
    [ac_cv_enable_dtrace="yes"],
14
 
    [ac_cv_enable_dtrace="no"])
 
11
    [AS_HELP_STRING([--disable-dtrace],
 
12
            [Build with support for the DTRACE. @<:@default=on@:>@])],
 
13
    [ac_cv_enable_dtrace="$enableval"],
 
14
    [ac_cv_enable_dtrace="yes"])
15
15
 
16
16
  AS_IF([test "$ac_cv_enable_dtrace" = "yes"],[
17
17
    AC_CHECK_PROGS([DTRACE], [dtrace])
18
 
    AS_IF([test "x$ac_cv_prog_DTRACE" = "xdtrace"],[
19
 
      AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support])
20
 
      AC_MSG_CHECKING([if dtrace should instrument object files])
21
 
      dnl DTrace on MacOSX does not use -G option
22
 
      cat >conftest.d <<_ACEOF
23
 
provider Example {
24
 
  probe increment(int);
25
 
};
26
 
_ACEOF
27
 
      $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero
28
 
      AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes],
 
18
    AC_CHECK_HEADERS(sys/sdt.h)
 
19
 
 
20
    AS_IF([test "x$ac_cv_prog_DTRACE" = "xdtrace" -a "x${ac_cv_header_sys_sdt_h}" = "xyes"],[
 
21
 
 
22
      AC_CACHE_CHECK([if dtrace works],[ac_cv_dtrace_works],[
 
23
        cat >conftest.d <<_ACEOF
 
24
provider Example {
 
25
  probe increment(int);
 
26
};
 
27
_ACEOF
 
28
        $DTRACE -h -o conftest.h -s conftest.d 2>/dev/zero
 
29
        AS_IF([test $? -eq 0],[ac_cv_dtrace_works=yes],
 
30
          [ac_cv_dtrace_works=no])
 
31
        rm -f conftest.h conftest.d
 
32
      ])
 
33
      AS_IF([test "x$ac_cv_dtrace_works" = "xyes"],[
 
34
        AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support])
 
35
      ])
 
36
      AC_CACHE_CHECK([if dtrace should instrument object files],
 
37
        [ac_cv_dtrace_needs_objects],[
 
38
          dnl DTrace on MacOSX does not use -G option
 
39
          cat >conftest.d <<_ACEOF
 
40
provider Example {
 
41
  probe increment(int);
 
42
};
 
43
_ACEOF
 
44
          $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero
 
45
          AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes],
29
46
            [ac_cv_dtrace_needs_objects=no])
30
 
      rm -f conftest.d.o conftest.d
31
 
      AC_MSG_RESULT($ac_cv_dtrace_needs_objects)
 
47
          rm -f conftest.d.o conftest.d
 
48
      ])
32
49
      AC_SUBST(DTRACEFLAGS) dnl TODO: test for -G on OSX
33
50
      ac_cv_have_dtrace=yes
34
51
    ])])
35
52
 
36
 
AM_CONDITIONAL([HAVE_DTRACE], [test "x$ac_cv_have_dtrace" = "xyes"])
 
53
AM_CONDITIONAL([HAVE_DTRACE], [test "x$ac_cv_dtrace_works" = "xyes"])
37
54
AM_CONDITIONAL([DTRACE_NEEDS_OBJECTS],
38
55
               [test "x$ac_cv_dtrace_needs_objects" = "xyes"])
39
56