autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional AC_CHECK_HEADER


From: Sam James
Subject: Re: Conditional AC_CHECK_HEADER
Date: Sat, 4 Feb 2023 16:58:49 +0000


> On 4 Feb 2023, at 13:42, Florian Weimer <fweimer@redhat.com> wrote:
> 
> The x11vnc configure.ac script contains this:
> 
> | if test "x$with_v4l" != "xno"; then
> | AC_CHECK_HEADER(linux/videodev.h,
> | [AC_DEFINE(HAVE_LINUX_VIDEODEV_H)],,)
> | fi
> 
> This is the point where all the default header check are inserted, so
> when the condition is false, they are not run.  Making the
> AC_CHECK_HEADER invocation unconditional fixes that.
> 
> I want to submit this upstream.  Is there are some explanation somewhere
> why it's not permitted to invoke AC_CHECK_HEADER under shell conditional
> statement?  I couldn't find it in the manual.

There's a tendency for quoting to go wrong with shell conditionals overall,
which is why I try to push people towards AS_IF.

Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]