# HG changeset patch # User diego # Date 1284484474 0 # Node ID 07c3c20985e0eb79476dec2e21e72615c2201691 # Parent 51622e94f85aa53c094a8b43a7d94bf3a4010d43 Simplify kstat check. diff -r 51622e94f85a -r 07c3c20985e0 configure --- a/configure Tue Sep 14 17:08:54 2010 +0000 +++ b/configure Tue Sep 14 17:14:34 2010 +0000 @@ -3036,12 +3036,8 @@ echocheck "kstat" -cat > $TMPC << EOF -#include -int main(void) { kstat_open(); kstat_close(0); return 0; } -EOF _kstat=no -cc_check -lkstat && _kstat=yes +function_check kstat.h 'kstat_open()' -lkstat && _kstat=yes if test "$_kstat" = yes ; then def_kstat="#define HAVE_LIBKSTAT 1" extra_ldflags="$extra_ldflags -lkstat"