]> err.no Git - mapper/commitdiff
Check for gpsbt and gpsmgr
authorKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 22:39:31 +0000 (00:39 +0200)
committerKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 22:39:31 +0000 (00:39 +0200)
configure.ac

index 1c8cf8d29153fce6802808bb385862c930cf59b5..0a7d43ba463ec0560b0ce1d1ce7acd4077fd24ed 100644 (file)
@@ -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