mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 08:24:40 +02:00
cleanup the configure.ac file, -lconfuse
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
parent
59a440415b
commit
9ed1a769d6
@ -10,16 +10,24 @@ AM_CONFIG_HEADER([config.h])
|
||||
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AC_ARG_ENABLE([firmware],
|
||||
[AS_HELP_STRING([--disable-firmware],
|
||||
[Do not build initialization code]
|
||||
[(for example, because some other package contains it).])],
|
||||
[
|
||||
case "$enableval" in
|
||||
yes) firmware=true ;;
|
||||
no) firmware=false ;;
|
||||
*) AC_MSG_ERROR([bad value $enableval for --enable-firmware]) ;;
|
||||
esac],[firmware=false])
|
||||
AM_CONDITIONAL([COND_FIRMWARE], [test "$firmware" = true])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([c], [main])
|
||||
AC_CHECK_LIB([confuse], [main], [], [
|
||||
echo "Error! You need to have libconfuse-dev.\n"
|
||||
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], [], [
|
||||
@ -32,7 +40,7 @@ CFLAGS="$CFLAGS $USB_CFLAGS"
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
|
||||
AC_CHECK_HEADERS([time.h signal.h stdlib.h string.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_INLINE
|
||||
|
@ -1,8 +1,8 @@
|
||||
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse
|
||||
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb
|
||||
|
||||
xbboot_version.h:
|
||||
echo -e '#ifndef XBBOOT_VERSION' \
|
||||
'\n#define XBBOOT_VERSION "20090815-1"' \
|
||||
'\n#define XBBOOT_VERSION "20100427-1"' \
|
||||
'\n#endif' > xbboot_version.h
|
||||
BUILT_SOURCES = xbboot_version.h
|
||||
|
||||
|
@ -397,7 +397,7 @@ void show_help()
|
||||
printf("\n"
|
||||
"xbboot version %s - Ingenic XBurst USB Boot Vendor Requests\n"
|
||||
"(c) 2009 Wolfgang Spraul\n"
|
||||
"Report bugs to <wolfgang@qi-hardware.com>.\n"
|
||||
"Report bugs to <wolfgang@qi-hardware.com>, <xiangfu@sharism.cc>.\n"
|
||||
"\n"
|
||||
"xbboot [vendor_request] ... (must run as root)\n"
|
||||
" -h --help print this help message\n"
|
||||
|
Loading…
Reference in New Issue
Block a user