autoconf
[Top][All Lists]
Advanced

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

Re: ./configure find gmp.h but not gmpxx.h


From: Johan Oudinet
Subject: Re: ./configure find gmp.h but not gmpxx.h
Date: Wed, 28 May 2008 11:51:42 +0200

On Wed, May 28, 2008 at 11:29 AM, Baurzhan Ismagulov <address@hidden> wrote:
> Hello Johan,
>
> On Wed, May 28, 2008 at 11:08:22AM +0200, Johan Oudinet wrote:
>> In my configure.ac, I have:
>> AC_CHECK_HEADERS([gmp.h], , AC_MSG_ERROR([This package needs libgmp]))
>> AC_CHECK_HEADERS([gmpxx.h], , AC_MSG_ERROR([This package needs libgmpxx]))
>>
>> And when I run ./configure, I have:
>> checking gmp.h usability... yes
>> checking gmp.h presence... yes
>> checking for gmp.h... yes
>> checking gmpxx.h usability... no
>> checking gmpxx.h presence... no
>> checking for gmpxx.h... no
>> configure: error: This package needs libgmpxx
>
> I'd look in config.log to see why.
>
> Is gmpxx.h by chance a C++ header and gcc fails to compile it? If yes,
> you may want to wrap the second check with AC_LANG_PUSH(C++) and
> AC_LANG_POP.

Yes, that's it! Now it works well.

Thanks for your help!

Regards,

-- 
Johan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]