[Omake] Re: Problems with TryCompileC etc.

Aleksey Nogin nogin at metaprl.org
Tue Sep 2 09:41:51 PDT 2008


On 02.09.2008 05:56, John Billings wrote:

> On Tue, Sep 02, 2008 at 01:44:35PM +0100, John Billings wrote:
>> I've been having problems with some of the autoconf functions.
>> As a minimal example, the following (in an otherwise empty OMakefile)
>> always returns false:
>>
>>   echo $(TryCompileC 'int main() { return 0; }')
>>
>> Do you have any hints how to get this working?
> 
> Looks like it's a quoting issue.  The following works:
> 
>   foo = int main() { return 0; }
>   echo $(TryCompileC $(foo))
> 
Right, the OMake literal quoting is $'...' (note the leading $). The 
following does work correctly:

echo $(TryCompileC $'int main() { return 0; }')

Aleksey


More information about the Omake mailing list