代码拉取完成,页面将自动刷新
PHP_ARG_ENABLE([skywalking],
[whether to enable skywalking support],
[AS_HELP_STRING([--enable-skywalking],
[Enable skywalking support])],
[yes])
if test "$PHP_THREAD_SAFETY" == "yes"; then
AC_MSG_ERROR([skywalking does not support ZTS])
fi
if test "$PHP_SKYWALKING" != "no"; then
AC_PATH_PROG(CARGO, cargo, no)
if ! test -x "$CARGO"; then
AC_MSG_ERROR([cargo command missing, please reinstall the cargo distribution])
fi
AC_PATH_PROG(RUSTFMT, rustfmt, no)
if ! test -x "$RUSTFMT"; then
AC_MSG_ERROR([rustfmt command missing, please reinstall the cargo distribution])
fi
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $srcdir/target/release/libsky_core_report.a"
LIBS="-lpthread $LIBS"
SKYWALKING_SHARED_LIBADD="-lpthread $SKYWALKING_SHARED_LIBADD"
PHP_ADD_LIBRARY(pthread)
PHP_ADD_LIBRARY(dl,,SKYWALKING_SHARED_LIBADD)
PHP_ADD_LIBRARY(dl)
case $host in
*darwin*)
;;
*)
PHP_ADD_LIBRARY(rt,,SKYWALKING_SHARED_LIBADD)
PHP_ADD_LIBRARY(rt)
;;
esac
PHP_SUBST(SKYWALKING_SHARED_LIBADD)
PHP_ADD_INCLUDE(src)
AC_DEFINE(HAVE_SKYWALKING, 1, [ Have skywalking support ])
PHP_NEW_EXTENSION(skywalking, \
skywalking.c \
src/sky_core_cross_process.c \
src/sky_core_log.c \
src/sky_core_module.c \
src/sky_core_segment.c \
src/sky_core_segment_reference.c \
src/sky_core_span.c \
src/sky_core_tag.c \
src/sky_plugin_curl.c \
src/sky_plugin_redis.c \
src/sky_util_base64.c \
src/sky_util_php.c \
src/sky_utils.c \
, $ext_shared)
PHP_ADD_BUILD_DIR($ext_builddir/src)
fi
if test -r $phpincludedir/ext/mysqli/mysqli_mysqlnd.h; then
AC_DEFINE([MYSQLI_USE_MYSQLND], 1, [Whether mysqlnd is enabled])
fi
shared_objects_skywalking="$srcdir/target/release/libsky_core_report.a $shared_objects_skywalking"
dnl PHP_SUBST(shared_objects_skywalking)
case $host in
*darwin*)
echo "$srcdir/target/release/libsky_core_report.a:\n cargo build --release --manifest-path=$srcdir/Cargo.toml" >> Makefile.objects
;;
*)
echo -e "$srcdir/target/release/libsky_core_report.a:\n cargo build --release --manifest-path=$srcdir/Cargo.toml" >> Makefile.objects
;;
esac
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。