configure.ac: Fix --enable-irqbalance-ui logic

Before this patch --enable-irqbalance-ui disabled compilation/
installation of the ui because AC_ARG_WITH is used wrong.
The third arguement to AC_ARG_WITH is _action-if-present_ which means
that this action gets triggered once the --enable option has been
submitted to configure on command line no matter if it's enabled or
disabled.
See also https://autotools.io/autoconf/arguments.html chapter 3.1
This commit is contained in:
Lars Wendler 2018-07-09 14:11:44 +02:00
parent 8ad74cdaba
commit bc56dbd4ee

View file

@ -43,9 +43,9 @@ AM_PROG_CC_C_O
AC_ARG_WITH([irqbalance-ui],
[AC_HELP_STRING([--without-irqbalance-ui],
[Dont build the irqbalance ui component])],
[with_irqbalanceui=false], [with_irqbalanceui=true])
[with_irqbalanceui=$withval], [with_irqbalanceui=yes])
AM_CONDITIONAL([IRQBALANCEUI], [test x$with_irqbalanceui = xtrue])
AM_CONDITIONAL([IRQBALANCEUI], [test x$with_irqbalanceui = xyes])
AC_ARG_WITH([systemd],
[ AS_HELP_STRING([--with-systemd],[Add systemd-lib support])]