Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 279423 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +29 lines)
Line  Link Here
0
-- a/agent/mibgroup/hardware/sensors.h
0
++ b/agent/mibgroup/hardware/sensors.h
Lines 1-13 Link Here
1
config_require(hardware/sensors/hw_sensors)
1
config_require(hardware/sensors/hw_sensors)
2
2
3
#if defined(solaris)
3
#if defined(solaris)
4
4
# if defined(HAVE_PICL_H)
5
# if defined(HAVE_PICL_H)
5
config_require(hardware/sensors/picld_sensors)
6
config_require(hardware/sensors/picld_sensors)
6
# else
7
# else
7
config_require(hardware/sensors/kstat_sensors)
8
config_require(hardware/sensors/kstat_sensors)
8
# endif
9
# endif
10
9
#else
11
#else
12
13
# if defined(HAVE_LMSENSORS_V2)
14
config_require(hardware/sensors/lmsensors_v2)
15
# else
10
config_require(hardware/sensors/lmsensors_v3)
16
config_require(hardware/sensors/lmsensors_v3)
17
# endif
18
11
#endif
19
#endif
12
20
13
//config_require(hardware/sensors/dummy_sensors)
21
//config_require(hardware/sensors/dummy_sensors)
14
-- a/configure.in
22
++ b/configure.in
Lines 1909-1914 done Link Here
1909
1909
1910
AC_MSG_RESULT([$new_module_list.])
1910
AC_MSG_RESULT([$new_module_list.])
1911
1911
1912
echo " $new_module_list " | $GREP "ucd-snmp/lmsensorsMib" > /dev/null
1913
if test $? -eq 0 ; then
1914
	case $target_os in
1915
		linux*)
1916
			AC_CHECK_HEADER(sensors/sensors.h,,[AC_MSG_ERROR([asked to use lm_sensors but I couldn't find sensors/sensors.h])])
1917
	
1918
			AC_MSG_CHECKING([lm_sensors version])
1919
			AC_EGREP_CPP(lmsensors_v2,[
1920
#include <sensors/sensors.h>
1921
#if SENSORS_API_VERSION < 0x400
1922
lmsensors_v2
1923
#endif
1924
			], [AC_DEFINE([HAVE_LMSENSORS_V2], [1], [Define if lm_sensors version 2.x])]
1925
			have_lmsensors_ver="2.x", have_lmsensors_ver="3.x or higher")
1926
			AC_MSG_RESULT([$have_lmsensors_ver])
1927
			;;
1928
	esac
1929
fi
1930
1912
#---------------------
1931
#---------------------
1913
# loop over module list
1932
# loop over module list
1914
#
1933
#

Return to bug 279423