blob: 6455567174b36450d469fcaeee05043012788d99 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001This patch adds support for detecting iconv support using autotools
2uclibc does not have iconv implementation inside libc like glibc, therefore
3the existing checks were not sufficient, it worked for glibc but not for
4uclibc. The new patch portably detects the iconv support and adds the
5libiconv to linker cmdline
6
7This patch should be submitted upstream too
8
9Upstream-Status: Pending
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12
13Index: usbutils-008/configure.ac
14===================================================================
15--- usbutils-008.orig/configure.ac
16+++ usbutils-008/configure.ac
17@@ -10,7 +10,9 @@ AC_USE_SYSTEM_EXTENSIONS
18 AC_SYS_LARGEFILE
19
20 AC_CHECK_HEADERS([byteswap.h])
21-AC_CHECK_FUNCS([nl_langinfo iconv])
22+
23+AM_GNU_GETTEXT
24+AM_ICONV
25
26 PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0.0)
27
28Index: usbutils-008/Makefile.am
29===================================================================
30--- usbutils-008.orig/Makefile.am
31+++ usbutils-008/Makefile.am
32@@ -29,7 +29,8 @@ lsusb_CPPFLAGS = \
33
34 lsusb_LDADD = \
35 $(LIBUSB_LIBS) \
36- $(UDEV_LIBS)
37+ $(UDEV_LIBS) \
38+ $(LIBICONV)
39
40 man_MANS = \
41 lsusb.8 \