mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-12-23 04:41:10 +02:00
autoconf: add error message when check lib usb and confuse failed. And prompts user to install the lib.
Signed-off-by: JieJing.Zhang <kzjeef@gmail.com>
This commit is contained in:
parent
f426319446
commit
4d4837484a
@ -15,10 +15,16 @@ AC_PROG_CXX
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([c], [main])
|
||||
AC_CHECK_LIB([confuse], [main])
|
||||
AC_CHECK_LIB([confuse], [main], [], [
|
||||
echo "Error! You need to have libconfuse."
|
||||
echo "Maybe run 'sudo apt-get install libconfuse-dev' under debian"
|
||||
exit -1 ])
|
||||
AC_CHECK_LIB([gcc], [main])
|
||||
AC_CHECK_LIB([m], [main])
|
||||
AC_CHECK_LIB([usb], [main])
|
||||
AC_CHECK_LIB([usb], [main], [], [
|
||||
echo "Error! You need to have libconfuse. \n"
|
||||
echo "Maybe run 'sudo apt-get install libusb-dev' under debian"
|
||||
exit -1 ])
|
||||
|
||||
LIBS="$LIBS $USB_LIBS"
|
||||
CFLAGS="$CFLAGS $USB_CFLAGS"
|
||||
|
Loading…
Reference in New Issue
Block a user