Date:2010-04-27 07:51:54 (13 years 7 months ago)
Author:Xiangfu Liu
Commit:9ed1a769d6e22e765a94c8690f88e5640d839caf
Message:cleanup the configure.ac file, -lconfuse

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
Files: xbboot/configure.ac (2 diffs)
xbboot/host-app/Makefile.am (1 diff)
xbboot/host-app/host_main.c (1 diff)

Change Details

xbboot/configure.ac
1010
1111AM_MAINTAINER_MODE
1212
13AC_ARG_ENABLE([firmware],
14 [AS_HELP_STRING([--disable-firmware],
15  [Do not build initialization code]
16  [(for example, because some other package contains it).])],
17 [
18case "$enableval" in
19yes) firmware=true ;;
20no) firmware=false ;;
21*) AC_MSG_ERROR([bad value $enableval for --enable-firmware]) ;;
22esac],[firmware=false])
23AM_CONDITIONAL([COND_FIRMWARE], [test "$firmware" = true])
24
1325# Checks for programs.
1426AC_PROG_CC
1527AC_PROG_CXX
1628
1729# Checks for libraries.
1830AC_CHECK_LIB([c], [main])
19AC_CHECK_LIB([confuse], [main], [], [
20echo "Error! You need to have libconfuse-dev.\n"
21echo "Maybe run 'sudo apt-get install libconfuse-dev' under debian"
22exit -1 ])
2331AC_CHECK_LIB([gcc], [main])
2432AC_CHECK_LIB([m], [main])
2533AC_CHECK_LIB([usb], [main], [], [
...... 
3240
3341# Checks for header files.
3442AC_HEADER_STDC
35AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
43AC_CHECK_HEADERS([time.h signal.h stdlib.h string.h])
3644
3745# Checks for typedefs, structures, and compiler characteristics.
3846AC_C_INLINE
xbboot/host-app/Makefile.am
1AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse
1AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb
22
33xbboot_version.h:
44    echo -e '#ifndef XBBOOT_VERSION' \
5    '\n#define XBBOOT_VERSION "20090815-1"' \
5    '\n#define XBBOOT_VERSION "20100427-1"' \
66    '\n#endif' > xbboot_version.h
77BUILT_SOURCES = xbboot_version.h
88
xbboot/host-app/host_main.c
397397    printf("\n"
398398           "xbboot version %s - Ingenic XBurst USB Boot Vendor Requests\n"
399399           "(c) 2009 Wolfgang Spraul\n"
400           "Report bugs to <wolfgang@qi-hardware.com>.\n"
400           "Report bugs to <wolfgang@qi-hardware.com>, <xiangfu@sharism.cc>.\n"
401401           "\n"
402402           "xbboot [vendor_request] ... (must run as root)\n"
403403           " -h --help print this help message\n"

Archive Download the corresponding diff file



interactive