summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2007-07-10 14:34:32 -0400
committerDavid Zeuthen <davidz@redhat.com>2007-07-10 14:34:32 -0400
commit00ded4be1c4037cf06c04230ff05745dccdc929d (patch)
tree0784168ecdf0d8832feb119cd2dc6221f562eb99 /configure.in
parentf6a3238fa22256e17864c27e37167830aa8fc4d4 (diff)
automatically disable 0.5.10 features when building against 0.5.9
For this to work the hal pkg-config file will need to be in the Buildroot; on Fedora systems this means that BuildRequire:hal-devel is required.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 5681e61..587ebbc 100644
--- a/configure.in
+++ b/configure.in
@@ -7,6 +7,8 @@ AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_LN_S
+PKG_PROG_PKG_CONFIG
+
dnl ---------------------------------------------------------------------------
dnl - Should we ship the recall data
dnl ---------------------------------------------------------------------------
@@ -47,8 +49,17 @@ dnl ---------------------------------------------------------------------------
dnl - Should we enable WLAN killswitch support for ipw chipsets?
dnl ---------------------------------------------------------------------------
AC_ARG_ENABLE(killswitch_ipw_wlan, [ --enable-killswitch-ipw-wlan Include support for WLAN killswitch (requires hal >= 0.5.10)],enable_killswitch_ipw_wlan=$enableval,enable_killswitch_ipw_wlan=yes)
+
+if ! $PKG_CONFIG --atleast-version 0.5.10 hal; then
+ if test x$enable_killswitch_ipw_wlan == xyes ; then
+ AC_MSG_WARN([hal 0.5.10 or later is required for ipw killswitch. Disabling this feature.])
+ enable_killswitch_ipw_wlan=no
+ fi
+fi
+
AM_CONDITIONAL(BUILD_KILLSWITCH_IPW_WLAN, test x$enable_killswitch_ipw_wlan == xyes)
+
AC_OUTPUT([
Makefile
fdi/Makefile
@@ -74,5 +85,5 @@ echo "
killswitch support for Dell wlan: ${enable_killswitch_dell_wlan}
killswitch support for Dell Bluetooth: ${enable_killswitch_dell_bluetooth}
killswitch support for Sony Bluetooth: ${enable_killswitch_sony_bluetooth}
- killswitch support for IPW wlan: ${enable_killswitch_ipw_wlan}
+ killswitch support for IPW wlan: ${enable_killswitch_ipw_wlan} (requires hal >= 0.5.10)
"