From cec59276017aec2337de605b342eafb1c4f11a26 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Thu, 20 Dec 2012 09:17:50 +0000 Subject: [PATCH] Fix gpsd configure script --- configure.ac | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 8cfd14c..9ad9911 100644 --- a/configure.ac +++ b/configure.ac @@ -17,12 +17,11 @@ PKG_CHECK_MODULES(GLIB, glib-2.0) PKG_CHECK_MODULES(GRITS, grits >= 0.6) # Check for gpsd support -AC_ARG_ENABLE([gps], AS_HELP_STRING([--enable-gps], [Build with gpsd support]), - [PKG_CHECK_MODULES(GPSD, libgps >= 3.0) - AC_DEFINE([HAVE_GPSD], [], [Have GPSD support]) - AC_SUBST(HAVE_GPSD, [TRUE])] -) -AM_CONDITIONAL([HAVE_GPSD], test "$HAVE_GPSD" = "TRUE") +AC_ARG_ENABLE([gps], + AS_HELP_STRING([--enable-gps], [Build with gpsd support])) +AS_IF([test "$enable_gps" = "yes"], + [PKG_CHECK_MODULES(GPSD, libgps >= 3.0)]) +AM_CONDITIONAL([HAVE_GPSD], test "x$enable_gps" = "xyes") # Define odd RSL install location AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl") -- 2.41.0