@@ -314,7 +314,7 @@ ac_includes_default="\
314314# include <unistd.h>
315315#endif"
316316
317- ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
317+ ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
318318ac_subst_files=''
319319
320320# Initialize some variables set by options.
@@ -865,6 +865,7 @@ Optional Features:
865865 --disable-rpath do not embed shared library search path in executables
866866 --disable-spinlocks do not use spinlocks
867867 --enable-debug build with debugging symbols (-g)
868+ --enable-dtrace build with DTrace support
868869 --enable-depend turn on automatic dependency tracking
869870 --enable-cassert enable assertion checks (for debugging)
870871 --enable-thread-safety make client libraries thread-safe
@@ -1946,6 +1947,82 @@ fi;
19461947
19471948
19481949
1950+ #
1951+ # DTrace
1952+ #
1953+
1954+
1955+
1956+ # Check whether --enable-dtrace or --disable-dtrace was given.
1957+ if test "${enable_dtrace+set}" = set; then
1958+ enableval="$enable_dtrace"
1959+
1960+ case $enableval in
1961+ yes)
1962+
1963+ cat >>confdefs.h <<\_ACEOF
1964+ #define ENABLE_DTRACE 1
1965+ _ACEOF
1966+
1967+ for ac_prog in dtrace
1968+ do
1969+ # Extract the first word of "$ac_prog", so it can be a program name with args.
1970+ set dummy $ac_prog; ac_word=$2
1971+ echo "$as_me:$LINENO: checking for $ac_word" >&5
1972+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973+ if test "${ac_cv_prog_DTRACE+set}" = set; then
1974+ echo $ECHO_N "(cached) $ECHO_C" >&6
1975+ else
1976+ if test -n "$DTRACE"; then
1977+ ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
1978+ else
1979+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980+ for as_dir in $PATH
1981+ do
1982+ IFS=$as_save_IFS
1983+ test -z "$as_dir" && as_dir=.
1984+ for ac_exec_ext in '' $ac_executable_extensions; do
1985+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986+ ac_cv_prog_DTRACE="$ac_prog"
1987+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988+ break 2
1989+ fi
1990+ done
1991+ done
1992+
1993+ fi
1994+ fi
1995+ DTRACE=$ac_cv_prog_DTRACE
1996+ if test -n "$DTRACE"; then
1997+ echo "$as_me:$LINENO: result: $DTRACE" >&5
1998+ echo "${ECHO_T}$DTRACE" >&6
1999+ else
2000+ echo "$as_me:$LINENO: result: no" >&5
2001+ echo "${ECHO_T}no" >&6
2002+ fi
2003+
2004+ test -n "$DTRACE" && break
2005+ done
2006+
2007+
2008+ ;;
2009+ no)
2010+ :
2011+ ;;
2012+ *)
2013+ { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2014+ echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2015+ { (exit 1); exit 1; }; }
2016+ ;;
2017+ esac
2018+
2019+ else
2020+ enable_dtrace=no
2021+
2022+ fi;
2023+
2024+
2025+
19492026#
19502027# C compiler
19512028#
@@ -22759,6 +22836,7 @@ enable_shared) ;;
2275922836enable_rpath) ;;
2276022837enable_spinlocks) ;;
2276122838enable_debug) ;;
22839+ enable_dtrace) ;;
2276222840with_CC) ;;
2276322841enable_depend) ;;
2276422842enable_cassert) ;;
@@ -23431,6 +23509,9 @@ s,@default_port@,$default_port,;t t
2343123509s,@enable_shared@,$enable_shared,;t t
2343223510s,@enable_rpath@,$enable_rpath,;t t
2343323511s,@enable_debug@,$enable_debug,;t t
23512+ s,@DTRACE@,$DTRACE,;t t
23513+ s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
23514+ s,@enable_dtrace@,$enable_dtrace,;t t
2343423515s,@CC@,$CC,;t t
2343523516s,@CFLAGS@,$CFLAGS,;t t
2343623517s,@LDFLAGS@,$LDFLAGS,;t t