correct error message is given upon missing pkg-config package. fixes texane/stlink#338

pull/339/head
Efe Can İçöz 2015-09-03 11:32:12 +03:00
rodzic 9dac6ce11a
commit a13aeeeff7
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -20,6 +20,11 @@ AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS(sys/poll.h)
AC_REPLACE_FUNCS(mmap)
if ! hash pkg-config; then
echo "ERROR: pkg-config is needed..."
exit 1
fi
# Checks for libraries.
PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,
AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))