I'm learning about the autotools and made it through a hello world scenario and now wanted to try wrapping up some cppunit tests into a package and build it using the autotools. In order to build the package, cppunit would have to be installed on the system. What's the best way to check for this during the ./configure portion of the build.
I looked into AC_CHECK_LIB and then ran across some info about using pkg-config. How would I use pkg-config in the autotools realm to check for the existence of cppunit on the build system & then add the include & link lines.
Any help would be appreciated. Thanks.
Steve