Re: Compiling lftp on Solaris with Sun Studio

Yann Rouillard <[email protected]> Wed, 23 Aug 2006 19:32:19 +0200
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
Alexander V. Lukyanov a écrit :
> On Tue, Aug 22, 2006 at 08:08:46PM +0200, Yann Rouillard wrote:
>> You shouldn't link to stdbool_.h but to stdbool.h
>> stdbool_.h is just a template file, the Makefile will create later the 
>> real stdbool.h.
> 
> Oops, did not notice that.
> 
>> But if you try to link to stdbool.h at configure time, since stdbool.h 
>> doesn't yet exist, you have the following error:
>> config.status: linking ./lib/stdbool.h to include/stdbool.h
>> config.status: error: ./lib/stdbool.h: file not found
> 
> What if I link the resulting stdbool.h from lib/Makefile?
> 

Sure why not. I am not an autoconf/automake master, you need to rely on
HAVE__STDBOOL.
However there is still a problem, HAVE__BOOL is defined because the 
configure test is performed with cc which supports the _Bool type.
But the compilation of the file which includes stdbool.h is CC which 
doesn't support _Bool.
As a result, the _Bool is not correctly defined even after the included 
stdbool.h is included.

I don't know yet how to solve this properly.

Yann