# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/ntop/hotfix-rrdtool.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- rrdtool 1.5 merged librrd_th into the thread-safe librrd, and the library is not necessarily in $RRD_HOME/lib: check for librrd itself. --- ntop-5.0.1.orig/configure.in +++ ntop-5.0.1/configure.in @@ -892,27 +892,8 @@ else fi fi -RRD_LIB="-L${RRD_HOME}/lib -lrrd_th" - -if test -f "$RRD_HOME/lib/librrd_th.so"; then - AC_MSG_RESULT(checking for rrdtool... yes) -else - if test -f "$RRD_HOME/lib/librrd_th.dylib"; then # OSX - AC_MSG_RESULT(checking for rrdtool... yes) - else - if test -f "$RRD_HOME/lib/librrd_th.a"; then - AC_MSG_RESULT(checking for rrdtool... yes) - else - AC_CHECK_LIB([rrd_th], [main]) - if test ".${ac_cv_lib_rrd_th_main}" != ".yes"; then - AC_MSG_ERROR(Unable to find RRD at $RRD_HOME: please use --with-rrd-home=DIR); - AC_MSG_ERROR(RRD source can be downloaded from http://www.rrdtool.org/); - else - RRD_LIB= - fi - fi - fi -fi +AC_CHECK_LIB([rrd], [rrd_update_r], [RRD_LIB="-lrrd"], + [AC_MSG_ERROR(Unable to find RRD: please use --with-rrd-home=DIR)]) RRD_INC= if test -d "${RRD_HOME}/include"; then