File nut-hal.patch of Package nut

Index: nut-2.6.0/m4/nut_config_libhal.m4
===================================================================
--- nut-2.6.0.orig/m4/nut_config_libhal.m4
+++ nut-2.6.0/m4/nut_config_libhal.m4
@@ -71,7 +71,11 @@ if test -z "${nut_have_config_libhal_see
 		dnl As per HAL spec, ยง5 Callouts addon install path: $libdir/hal
 		HAL_CALLOUTS_PATH="`pkg-config --silence-errors --variable=libexecdir hal 2>/dev/null`"
 		if test "$?" != "0" -o -z "${HAL_CALLOUTS_PATH}"; then
-			HAL_CALLOUTS_PATH="${libdir}/hal"
+			if test -d "${prefix}/lib/hal"; then
+				HAL_CALLOUTS_PATH="${prefix}/lib/hal"
+			else
+				HAL_CALLOUTS_PATH="${libdir}/hal"
+			fi
 		fi
 	])
 	AC_MSG_RESULT(${HAL_CALLOUTS_PATH})