testing for library via C++ class

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

 



I can't seem to find the appropriate way to determine if a user has a
particular library by trying to link with a class and a class method in
that library.

There is a certain static function in a library named 'vtkCommon' that
I would like to check for. I'd like to have autoconf generate a program
like:

#include <vtk/vtkRectilinearGrid.h>
int main() { vtkRectilinearGrid::New(); }

and if it compiled/linked, then assume -lvtkCommon is in a std include
path, add it to LIBS, etc. Unfortunately

AC_CHECK_LIB(vtkCommon,[vtkRectilinearGrid::New()],,AC_MSG_ERROR(...))

is failing because one needs to include the appropriate header or else
compilation fails.

How could I get behavior similar to AC_CHECK_LIB but with an additional
include / other specified line? Maybe I'm making the wrong assumption
that this should be 'easy', and I must AC_DEFINE my own macro to be
testing this sort of thing...

Thanks for any help/insights,

-tom


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux