On mer., 2011-01-26 at 13:11 +0300, Paul Fertser wrote:
> * it autodetects hal and udev support but (of course) fails to
>   cross-compile it (so i had to use --with-hotplug-dir=
>   --with-udev-dir=)

Can you try the attached patch please ?

> * i have no asciidoc installed and so nut fallbacks to using prebuilt
>   manpages, and that fails during make install (because of course svn
>   repo doesn't have those prebuilt manpages).

I have just committed a fix from Arnaud for that.

> Thanks again for you attention, bye :)

thanks for your feedback.

Fred

--------------------------------------------------------------------------
Index: configure.in
===================================================================
--- configure.in	(révision 2850)
+++ configure.in	(copie de travail)
@@ -51,17 +51,25 @@
 driverexecdir='${exec_prefix}/bin'
 htmldir='${prefix}/html'
 pkgconfigdir='${libdir}/pkgconfig'
-hotplugdir='/etc/hotplug'
-if test ! -d "${hotplugdir}"; then
-   hotplugdir=''
-fi
-udevdir='/lib/udev'
-if test ! -d "${udevdir}"; then
-   udevdir='/etc/udev'
-   if test ! -d "${udevdir}"; then
+
+dnl Disable Hotplug and udev support on Windows
+case ${target_os} in
+   mingw* )
+      hotplugdir=''
       udevdir=''
-   fi
-fi
+   * )
+      hotplugdir='/etc/hotplug'
+      if test ! -d "${hotplugdir}"; then
+         hotplugdir=''
+      fi
+      udevdir='/lib/udev'
+      if test ! -d "${udevdir}"; then
+         udevdir='/etc/udev'
+         if test ! -d "${udevdir}"; then
+            udevdir=''
+         fi
+      fi
+esac
 
 RUN_AS_USER="nobody"
 RUN_AS_GROUP="nobody"
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to