diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-09-16 13:02:29 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-09-16 13:02:29 +0000 |
commit | 7c00e532abd7e0132ada142ff101945ea946bcf5 (patch) | |
tree | be58f2f397164aae7085ce9f36c5edfff19f845c | |
parent | 0e5dcf90be80a6cbe671566202d292f376506d85 (diff) | |
download | navit-7c00e532abd7e0132ada142ff101945ea946bcf5.tar.gz |
Fix:vehicle_gpsd:Fix version check for autoconf build.|Hopefully concludes fix for #850. It's time we ditch autoconf...
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5643 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | configure.in | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 4d01bf993..24690191c 100644 --- a/configure.in +++ b/configure.in @@ -1059,12 +1059,7 @@ AM_CONDITIONAL(VEHICLE_FILE, test "x${vehicle_file}" = "xyes") AC_ARG_ENABLE(vehicle-gpsd, [ --disable-vehicle-gpsd disable vehicle type gpsd], vehicle_gpsd=$enableval;vehicle_gpsd_reason="configure parameter") if test "x${vehicle_gpsd}" = xyes then - PKG_CHECK_MODULES([GPSD], [libgps], have_libgps="yes", have_libgps="no") - if test "x$have_libgps" = "xyes"; then - AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have libgps.) - else - AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps", vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h and no gpsd pkgconfig" ) - fi + PKG_CHECK_MODULES([GPSD], [libgps >= 3.10], ,vehicle_gpsd="no";vehicle_gpsd_reason="package libgps >=V3.1 missing") fi AC_SUBST(GPSD_CFLAGS) AC_SUBST(GPSD_LIBS) |