[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Query: AC_CHECK_HEADERS / AC_CHECK_LIB for cpp headers/cpp libs
From: |
Ralf Wildenhues |
Subject: |
Re: Query: AC_CHECK_HEADERS / AC_CHECK_LIB for cpp headers/cpp libs |
Date: |
Thu, 6 Apr 2006 18:06:21 +0200 |
User-agent: |
Mutt/1.5.11 |
Hi Vasanth,
* Kalyanavarathan, Vasanth wrote on Thu, Apr 06, 2006 at 01:27:24PM CEST:
>
> A quick question about automake's AC_CHECK_HEADERS and AC_CHECK_LIBS
> use of conftest.c file.
That's an Autoconf issue, not an Automake one.
> When this check is used with CPP headers or CPP libs the test fails
> because gcc uses
> c complier instead of g++ compiler.
Try putting
AC_PROG_CXX
somewhere before your checks, and enclose your checks in
AC_LANG_PUSH([C++])
# checks go here..
AC_LANG_POP([C++])
Cheers,
Ralf