From 8da700b8c1587c393465dba9efd3ed2979f5c38a Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Fri, 22 May 2009 22:20:10 +0300 Subject: [PATCH] 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 --- configure.ac.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac.in b/configure.ac.in index da5c566e..18b779fb 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -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@:>@]),