abi/bootstrap: clarify dependencies

libabigail requires libdw-dev at least in version 0.165 and autoconf to
run autoreconf.

Change-Id: Id882bcf5c57de6f14fe5e61cf2ed0e3a8553f4b4
Signed-off-by: Matthias Maennich <maennich@google.com>
diff --git a/abi/bootstrap b/abi/bootstrap
index c2f0120..66878ee 100755
--- a/abi/bootstrap
+++ b/abi/bootstrap
@@ -29,12 +29,19 @@
 
 set -x
 
-PACKAGES="libxml2-dev elfutils libdw-dev"
+PACKAGES="autoconf elfutils libxml2-dev libdw-dev"
 # Install the dependencies.
 if ! dpkg -s ${PACKAGES} > /dev/null 2>&1 ; then
     sudo apt-get install ${PACKAGES}
 fi
 
+# Assert minimum package versions
+if ! dpkg --compare-versions \
+    $(dpkg-query --showformat='${Version}' --show libdw-dev) ge 0.165 ; then
+  echo "ERROR: Minimum version of v0.165 for libdw-dev not met!"
+  exit 1
+fi
+
 if [ ! -d "${LIBABIGAIL_SRC}" ]; then
   git clone git://sourceware.org/git/libabigail.git "${LIBABIGAIL_SRC}"
 else