summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-07-14 17:04:26 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-07-14 17:13:07 +0200
commitac588e9d0e6b4dd59d1e929545bf39247cb8f72c (patch)
tree449da346aa80be9de35d3af1812d7e719f49f6fc
parent19f07c12a1fb4a09d866b12f58ad91b38e482a4e (diff)
build: explicitly log about --without-qmi when looking for libqmi fails
-rw-r--r--configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 9edd398f..9c294aaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,10 +218,14 @@ AC_ARG_WITH(qmi, AS_HELP_STRING([--without-qmi], [Build without QMI support]), [
AM_CONDITIONAL(WITH_QMI, test "x$with_qmi" = "xyes")
case $with_qmi in
yes)
- PKG_CHECK_MODULES(QMI, qmi-glib)
- AC_DEFINE(WITH_QMI, 1, [Define if you want QMI support])
- AC_SUBST(QMI_CFLAGS)
- AC_SUBST(QMI_LIBS)
+ PKG_CHECK_MODULES(QMI, [qmi-glib >= 1.4], [have_qmi=yes],[have_qmi=no])
+ if test "x$have_qmi" = "xno"; then
+ AC_MSG_ERROR([Couldn't find libqmi-glib. Install it, or otherwise configure using --without-qmi to disable QMI support.])
+ else
+ AC_DEFINE(WITH_QMI, 1, [Define if you want QMI support])
+ AC_SUBST(QMI_CFLAGS)
+ AC_SUBST(QMI_LIBS)
+ fi
;;
*)
with_qmi=no