Re: Conditional AC_CHECK_HEADER

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

 




> On 4 Feb 2023, at 13:42, Florian Weimer <fweimer@xxxxxxxxxx> 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


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux