On Wednesday 13 December 2006 19:44, Joshua Moore-Oliva wrote: > I was just wondering if there were any autoconf macros available for > libpqxx. I'm creating a project using autotools and would like to be > able to check for the existence of libpqxx.
libpqxx installs a pkg-config .pc-file in /usr/lib/pkgconfig/libpqxx.pc. All you need to do is check for it with PKG_CHECK_MODULES in your configure.ac in the usual way: PKG_CHECK_MODULES([LIBPQXX], [libpqxx >= 2.5.1]) AC_SUBST(LIBPQXX_CFLAGS) AC_SUBST(LIBPQXX_LIBS) HTH -- Andreas "daff" Ntaflos Vienna, Austria GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4
pgprZLUWPYLrb.pgp
Description: PGP signature
_______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
