]> git.pld-linux.org Git - packages/nut.git/blame - nut-hal-paths.patch
- drop obsolete files
[packages/nut.git] / nut-hal-paths.patch
CommitLineData
f3cd943d
JR
1--- nut-2.2.2/m4/nut_check_libhal.m4~ 2008-05-07 11:25:45.000000000 +0200
2+++ nut-2.2.2/m4/nut_check_libhal.m4 2008-06-04 13:41:31.000000000 +0200
3@@ -62,36 +62,59 @@
4 dnl Determine installation paths for callout and .fdi
5 dnl As per HAL spec, §5 Callouts and §2 Device Information Files
6 dnl - addon install path: $libdir/hal
7+ HAL_CALLOUTS_PATH=""
8 AC_MSG_CHECKING(for libhal Callouts path)
9+ AC_ARG_WITH(hal-callouts-path,
10+ AC_HELP_STRING([--with-hal-callouts-path=PATH], [path for callout and .fdi files (auto)]),
11+ [case "${withval}" in
12+ yes|no)
13+ ;;
14+ *)
15+ HAL_CALLOUTS_PATH="${withval}"
16+ ;;
17+ esac],)
18+
19+ if (test -z "${HAL_CALLOUTS_PATH}")
20+ then
21 if (test -d "/usr/lib/hal" || test -d "/usr/lib64/hal")
22 then
23 # For Debian
24 HAL_CALLOUTS_PATH="${libdir}/hal"
25- AC_MSG_RESULT(${HAL_CALLOUTS_PATH})
26+ AC_MSG_RESULT(${HAL_CALLOUTS_PATH})
27 else # For RedHat
28 if (test -d "/usr/libexec")
29 then
30 HAL_CALLOUTS_PATH="${libexecdir}"
31 AC_MSG_RESULT(${HAL_CALLOUTS_PATH})
32 else
33- # FIXME
34- HAL_CALLOUTS_PATH=""
35- AC_MSG_RESULT(not found)
36+ AC_MSG_RESULT(not found)
37 fi
38 fi
39+ fi
40
41 dnl - fdi install path: $datarootdir/hal/fdi/information/20thirdparty
42+ HAL_FDI_PATH=""
43 AC_MSG_CHECKING(for libhal Device Information path)
44+ AC_ARG_WITH(hal-fdi-path,
45+ AC_HELP_STRING([--with-hal-fdi-path=PATH], [fdi install path (auto)]),
46+ [case "${withval}" in
47+ yes|no)
48+ ;;
49+ *)
50+ HAL_FDI_PATH="${withval}"
51+ ;;
52+ esac],)
53+ if (test -z "${HAL_FDI_PATH}")
54+ then
55 if (test -d "/usr/share/hal/fdi/information/20thirdparty")
56 then
57 # seems supported everywhere
58 HAL_FDI_PATH="${datarootdir}/hal/fdi/information/20thirdparty"
59 AC_MSG_RESULT(${HAL_FDI_PATH})
60 else
61- # FIXME
62- HAL_FDI_PATH=""
63 AC_MSG_RESULT(not found)
64 fi
65+ fi
66
67 if test "${nut_have_libhal}" != "yes"; then
68 dnl try again
This page took 0.397659 seconds and 4 git commands to generate.