[Nut-upsdev] Re: [nut-commits] svn commit r609 - trunk

Charles Lepple clepple at gmail.com
Mon Dec 4 05:51:11 CET 2006


On 12/3/06, Peter Selinger <selinger at mathstat.dal.ca> wrote:
> Charles Lepple wrote:
> > Log:
> > Undoing changeset [608]. It fails with this error:
> >
> >    configure: error: conditional "HAVE_LIBUSB" was never defined.
> >    Usually this means the macro was only invoked conditionally.
> >
> > if --with-usb is not passed. Not sure why; the HIDDEV macro is defined
> > conditionally, and I definitely don't have hiddev on OS X. I will revisit this
> > when I am more awake.
>
> This just means that the following two lines:
>
> AM_CONDITIONAL(HAVE_LIBUSB, test "${nut_have_libusb}" = "yes")
> AM_CONDITIONAL(HAVE_HIDDEV, test -n "${linux_hiddev}")
>
> are not allowed to appear inside "if ... fi". This makes sense, as
> automake-conditionals have to be defined regardless. You have to move
> these lines to after the section you "conditioned out".

oh, OK. I saw this inside an "if" statement:
"AC_DEFINE_UNQUOTED(LINUX_HIDDEV...)" and confused that with
AM_CONDITIONAL.

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list