1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00

Delay checking for want_apcupsd.

The if-clause checking for the host operating system being Linux may
change the value of want_apcupsd. Delay checking for its value until
after that.

Signed-off-by: Brenden Matthews <brenden@rty.ca>
This commit is contained in:
Nikos Ntarmos 2009-05-22 22:20:10 +03:00 committed by Brenden Matthews
parent 45e403f553
commit 8da700b8c1

View File

@ -222,7 +222,6 @@ AC_ARG_ENABLE([apcupsd],
[disable if you do not want apcupsd support @<:@default=yes@:>@]),
[want_apcupsd="$enableval"], [want_apcupsd=yes])
AM_CONDITIONAL(BUILD_APCUPSD, test x$want_apcupsd = xyes)
if test x$want_apcupsd = xyes; then
if test x"$uname" != xLinux; then
AC_MSG_NOTICE([apcupsd not supported on $uname... disabling])
@ -231,6 +230,7 @@ if test x$want_apcupsd = xyes; then
AC_DEFINE(APCUPSD, 1, [Define if you want apcupsd support])
fi
fi
AM_CONDITIONAL(BUILD_APCUPSD, test x$want_apcupsd = xyes)
AC_ARG_ENABLE([math],
AC_HELP_STRING([--disable-math], [disable if you do not want math support @<:@default=yes@:>@]),