File gkrellm-libsensors.patch of Package gkrellm
Index: server/configure
===================================================================
--- server/configure.orig
+++ server/configure
@@ -57,7 +57,7 @@ EOF
$CC ${PKG_INCLUDE} -c test.c -o test.o 2>& 5
$CC test.o -o test ${PKG_LIBS} -lsensors 2>& 5
-if [ -x ./test ] && ./test
+if [ -x ./test ]
then
echo 'Defining HAVE_LIBSENSORS' 1>& 5
echo '#define HAVE_LIBSENSORS 1' >> configure.h
Index: src/configure
===================================================================
--- src/configure.orig
+++ src/configure
@@ -212,7 +212,7 @@ EOF
${CC} ${CFLAGS} ${GTK_INCLUDE} -c test.c -o test.o 2>& 5 || true
${CC} test.o -o test ${LINK_FLAGS} ${GTK_LIBS} -lsensors 2>& 5 || true
-if [ -x ./test ] && ./test
+if [ -x ./test ]
then
echo "Found"
echo 'Defining HAVE_LIBSENSORS' 1>& 5