Re: Call the AC_CHECK_HEADER macro on a condition

2016-04-19 Thread Thomas Petazzoni
Hello, On Tue, 12 Apr 2016 11:05:51 -0400, Nick Bowler wrote: > There are several basic solutions: > > - First, you can just expand AC_PROG_CPP directly and unconditionally > before your if. This will ensure the macro is available in both cases. > > - Second is to rewrite your condition usin

Re: Call the AC_CHECK_HEADER macro on a condition

2016-04-19 Thread Julien ÉLIE
Hi all, - Second is to rewrite your condition using AS_IF, which automatically "hoists" the dependency AC_PROG_CPP (and any other dependencies) outside of the if condition. I just wanted to thank you for this explanation. I was not affected by the original issue, but your answer was very