Date:2011-04-05 17:56:25 (9 years 5 months ago)
Author:Peter Zotov
Commit:c26a0ce1da3bde5a48d8919372a7b647277dd1eb
Message:Adjusted configure.ac to search for libraries required for jzboot.

Files: configure.ac (2 diffs)
jzboot (1 diff)

Change Details

configure.ac
4646AC_CHECK_LIB([gcc], [main])
4747AC_CHECK_LIB([m], [main])
4848AC_CHECK_LIB([usb], [main], [], [
49echo "Error! You need to have libusb. \n"
49echo "Error! You need to have libusb-0.1. \n"
5050echo "Maybe run 'sudo apt-get install libusb-dev' under debian"
5151exit -1 ])
52AC_CHECK_LIB([usb-1.0], [main], [], [
53echo "Error! You need to have libusb-1.0. \n"
54echo "Maybe run 'sudo apt-get install libusb1.0-0-dev' under debian"
55exit -1 ])
56
57AC_ARG_WITH([readline],
58  [AS_HELP_STRING([--with-readline],
59     [support fancy command line editing @<:@default=check@:>@])],
60     [],
61  [with_readline=check])
62
63READLINE_LIBS=
64AS_IF([test "x$with_readline" != xno],
65  [AC_CHECK_LIB([readline], [main],
66    [AC_SUBST([READLINE_LIBS], ["-lreadline -lncurses"])
67     AC_DEFINE([HAVE_READLINE], [1],
68               [Define if you have libreadline])
69    ],
70    [if test "x$with_readline" != xcheck; then
71      AC_MSG_FAILURE(
72        [--with-readline was given, but test for readline failed])
73     fi
74    ], -lncurses)])
5275
53LIBS="$LIBS $USB_LIBS"
76LIBS="$LIBS $USB_LIBS $READLINE_LIBS"
5477CFLAGS="$CFLAGS $USB_CFLAGS"
5578
5679# Checks for header files.
...... 
7093AC_CONFIG_FILES(Makefile \
7194        usbboot/Makefile usbboot/src/Makefile \
7295        xbboot/Makefile xbboot/host-app/Makefile \
73        jzboot/Makefile)
96        jzboot/Makefile jzboot/src/Makefile)
7497AC_OUTPUT
jzboot
1Subproject commit ce7446fd4c4743a685aa1d85b852743874c034c3
1Subproject commit 8b4338fc90376ed10d814f8ae2ca1a0a4436c049

Archive Download the corresponding diff file



interactive