Re: Porting the configure script to C99

Florian Weimer <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
* Thomas Dickey:

> On Fri, Dec 02, 2022 at 11:16:32PM +0100, Florian Weimer wrote:
>> * Thomas Dickey:
>> 
>> >> diff --git a/configure b/configure
>> >> index 97f6d1d5646d05c5..6db52b514b3b9a3c 100755
>> >> --- a/configure
>> >> +++ b/configure
>> >> @@ -31122,6 +31122,7 @@ else
>> >>  #line 31122 "configure"
>> >>  #include "confdefs.h"
>> >>  
>> >> +#include <stdio.h>
>> >>  #if HAVE_TERMIO_H
>> >>  #include <termio.h>
>> >>  #endif
>> >> @@ -31629,6 +31630,9 @@ else
>> >>  #line 31629 "configure"
>> >>  #include "confdefs.h"
>> >>  /* Thanks to Mike Rendell for this test.  */
>> >> +#if HAVE_UNISTD_H
>> >> +# include <unistd.h>
>> >> +#endif
>> >
>> > "middle chunk" is referring to this, I suppose.
>> >
>> > AC_INCLUDES_DEFAULT includes a lot of headers, not just this one.
>> >
>> > what problem does that #include solve?
>> 
>> Our configure says this at the top: “Generated by Autoconf
>> 2.52.20210509.”  I don't think it uses AC_INCLUDES_DEFAULT yet, it
>> seems:
>
> I was actually talking about the "newer" version of autoconf.

The newer version should be okay without it, true.

Thanks,
Florian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.