You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by pq...@apache.org on 2008/12/05 07:01:50 UTC
svn commit: r723601 - /apr/apr-util/trunk/configure.in
Author: pquerna
Date: Thu Dec 4 22:01:49 2008
New Revision: 723601
URL: http://svn.apache.org/viewvc?rev=723601&view=rev
Log:
Add --enable-dtrace to configure, to trigger the existing dtrace code.
Modified:
apr/apr-util/trunk/configure.in
Modified: apr/apr-util/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/configure.in?rev=723601&r1=723600&r2=723601&view=diff
==============================================================================
--- apr/apr-util/trunk/configure.in (original)
+++ apr/apr-util/trunk/configure.in Thu Dec 4 22:01:49 2008
@@ -165,6 +165,22 @@
APU_FIND_EXPAT
APU_FIND_ICONV
+AC_CHECK_HEADERS( \
+sys/sdt.h
+)
+
+AC_ARG_ENABLE(dtrace,APR_HELP_STRING(--enable-dtrace, Enable DTrace probes),
+[
+ enable_dtrace=$enableval
+],
+[
+ enable_dtrace=no
+])
+
+if test $enable_dtrace = "yes" -a "$ac_cv_header_sys_sdt_h" = "yes"; then
+ APR_ADDTO(CPPFLAGS, -DAPR_DTRACE_PROVIDER)
+fi
+
dnl Enable DSO build; must be last:
APU_CHECK_UTIL_DSO