From f5c93728e363ce2504f81e922ecffc145ecc0cf3 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 24 Jan 2008 00:39:31 +0200 Subject: [PATCH] Check for gpsbt and gpsmgr --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.39.5