* Configure fails on single builds
@ 2016-02-09 16:39 J William Piggott
2016-02-09 17:19 ` Ruediger Meier
0 siblings, 1 reply; 3+ messages in thread
From: J William Piggott @ 2016-02-09 16:39 UTC (permalink / raw)
To: util-linux
commit 15167589fb40be9479e1afe261bea0bf23b33a83 causing single
builds (other than chrt) to fail:
./configure --disable-all-programs --enable-hwclock
conditional \"HAVE_SCHED_SETATTR\" was never defined.
Usually this means the macro was only invoked conditionally.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configure fails on single builds
2016-02-09 16:39 Configure fails on single builds J William Piggott
@ 2016-02-09 17:19 ` Ruediger Meier
2016-02-10 11:30 ` Karel Zak
0 siblings, 1 reply; 3+ messages in thread
From: Ruediger Meier @ 2016-02-09 17:19 UTC (permalink / raw)
To: J William Piggott; +Cc: util-linux
On Tuesday 09 February 2016, J William Piggott wrote:
> commit 15167589fb40be9479e1afe261bea0bf23b33a83 causing single
> builds (other than chrt) to fail:
>
> ./configure --disable-all-programs --enable-hwclock
>
> conditional \"HAVE_SCHED_SETATTR\" was never defined.
> Usually this means the macro was only invoked conditionally.
I have fixed it for me like this, quick and dirty:
diff --git a/configure.ac b/configure.ac
index 4559573..cc9eb55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1774,9 +1774,7 @@ UL_BUILD_INIT([chrt], [check])
UL_REQUIRES_BUILD([chrt], [schedutils])
AM_CONDITIONAL([BUILD_CHRT], [test "x$build_chrt" = xyes])
-AS_IF([test "x$build_chrt" = xyes], [
- UL_CHECK_SYSCALL([sched_setattr])
-])
+UL_CHECK_SYSCALL([sched_setattr])
AC_ARG_ENABLE([wall],
cu,
Rudi
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Configure fails on single builds
2016-02-09 17:19 ` Ruediger Meier
@ 2016-02-10 11:30 ` Karel Zak
0 siblings, 0 replies; 3+ messages in thread
From: Karel Zak @ 2016-02-10 11:30 UTC (permalink / raw)
To: Ruediger Meier; +Cc: J William Piggott, util-linux
On Tue, Feb 09, 2016 at 06:19:29PM +0100, Ruediger Meier wrote:
> On Tuesday 09 February 2016, J William Piggott wrote:
> > commit 15167589fb40be9479e1afe261bea0bf23b33a83 causing single
> > builds (other than chrt) to fail:
> >
> > ./configure --disable-all-programs --enable-hwclock
> >
> > conditional \"HAVE_SCHED_SETATTR\" was never defined.
> > Usually this means the macro was only invoked conditionally.
>
> I have fixed it for me like this, quick and dirty:
>
>
> diff --git a/configure.ac b/configure.ac
> index 4559573..cc9eb55 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1774,9 +1774,7 @@ UL_BUILD_INIT([chrt], [check])
> UL_REQUIRES_BUILD([chrt], [schedutils])
> AM_CONDITIONAL([BUILD_CHRT], [test "x$build_chrt" = xyes])
>
> -AS_IF([test "x$build_chrt" = xyes], [
> - UL_CHECK_SYSCALL([sched_setattr])
> -])
> +UL_CHECK_SYSCALL([sched_setattr])
UL_CHECK_SYSCALL function should not contain AM_CONDITIONAL, it's
unnecessary. We need only BUILD_ conditionals and HAVE_ for libs.
I'll fix it.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-10 11:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 16:39 Configure fails on single builds J William Piggott
2016-02-09 17:19 ` Ruediger Meier
2016-02-10 11:30 ` Karel Zak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.