From: Kaj-Michael Lang Date: Wed, 23 Jan 2008 22:39:31 +0000 (+0200) Subject: Check for gpsbt and gpsmgr X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5c93728e363ce2504f81e922ecffc145ecc0cf3;p=mapper Check for gpsbt and gpsmgr --- diff --git a/configure.ac b/configure.ac index 1c8cf8d..0a7d43b 100644 --- a/configure.ac +++ b/configure.ac @@ -240,6 +240,21 @@ AM_CONDITIONAL(WITH_OSSO, test "x$HAVE_OSSO" = "xyes") if test "x$enable_gpsd" = "xyes" ; then AC_CHECK_HEADERS([gps.h], [ac_cv_gps_h=yes]) AC_CHECK_LIB(gps, gps_open,[ac_cv_libgps=yes] ) + +PKG_CHECK_MODULES(LIBGPSBT, gpsbt, HAVE_GPSBT=yes, HAVE_GPSBT=no) +if test "x$HAVE_GPSBT" = "xyes"; then + AC_DEFINE(WITH_GPSBT, 1, [Support gpsbt]) + AC_SUBST(LIBGPSBT_CFLAGS) + AC_SUBST(LIBGPSBT_LIBS) +fi + +PKG_CHECK_MODULES(LIBGPSMGR, gpsmgr, HAVE_GPSMGR=yes, HAVE_GPSMGR=no) +if test "x$HAVE_GPSMGR" = "xyes"; then + AC_DEFINE(WITH_GPSMGR, 1, [Support gpsmgr]) + AC_SUBST(LIBGPSMGR_CFLAGS) + AC_SUBST(LIBGPSMGR_LIBS) +fi + if test "x$ac_cv_libgps" = xyes; then AC_DEFINE(WITH_LIBGPS, 1, [build with gpsd]) fi