summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-08-18 18:59:59 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-08-18 18:59:59 +0000
commit92b9b2e8e4555f86934f403df1463c189a8270d5 (patch)
tree4993516c9cf51a40de50963de8be6852c7578c1e /configure.ac
parentd3cec3a652a041957aa263f2b6c81b7a1afa9fed (diff)
downloadgpsd-92b9b2e8e4555f86934f403df1463c189a8270d5.tar.gz
A gpsd with no protocols is an invalid configuration; make configure fail.
This'll probably be easier to maintain than tests all over the source tree.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 35b832df..bb38160e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -450,8 +450,6 @@ dnl AC_SUBST(DBUS_GLIB_LIBS)
dnl fi
AM_CONDITIONAL([HAVE_DBUS], [test x"$ac_dbus" = x"yes"])
-AC_OUTPUT(Makefile gpsd.spec)
-
dnl Output the configuration summary
echo ""
echo "=========================================="
@@ -479,5 +477,19 @@ echo "Enable DBUS support : $ac_dbus"
echo "Limited max client fd : $ac_maxclientfd"
echo "Limited max devices : $ac_maxdevices"
echo "------------------------------------------"
+
+if test x"$ac_nmea" = "xno" -a \
+ x"$ac_fv18" = "xno" -a \
+ x"$ac_sirf" = "xno" -a \
+ x"$ac_tsip" = "xno" -a \
+ x"$ac_tripmate" = "xno" -a \
+ x"$ac_earthmate" = "xno" -a \
+ x"$ac_itrax" = "xno" -a \
+ x"$ac_italk" = "xno" -a \
+ x"$ac_garmin" = "xno" -a \
+ x"$ac_evermore" = "xno"; then
+ AC_MSG_ERROR(Can't build gpsd with no protocols enabled)
+fi
+AC_OUTPUT(Makefile gpsd.spec)
echo "Configure finished, type 'make' to build."