1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-26 01:07:12 +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:
ZhangJieJing 2009-08-05 08:09:27 +08:00 committed by Xiangfu Liu
parent f426319446
commit 4d4837484a

View File

@ -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"