blob: f594285d3aea2b6cac5fcf6083627e6df2b4ee8d [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From e18bcc65d5772e518c6496b439bad8a986f7e434 Mon Sep 17 00:00:00 2001
2From: Rosen Penev <rosenp@gmail.com>
3Date: Thu, 20 Jun 2019 15:18:19 -0700
4Subject: [PATCH] configure: Fix iconv check for cross compilation
5
6AC_CHECK_LIB is more friendly towards cross-compilation.
7
8Added check for libiconv_open as that can be used when the libc lacks iconv.
9---
10 configure.ac | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13--- a/configure.ac
14+++ b/configure.ac
15@@ -59,7 +59,8 @@ if test "x$with_udev" != "xno"; then
16 [true])
17 fi
18
19-AC_SEARCH_LIBS(iconv_open, iconv)
20+AC_CHECK_LIB(iconv, iconv_open)
21+AC_CHECK_LIB(iconv, libiconv_open)
22
23 # xxd (distributed with vim) is used in the testsuite
24 AC_CHECK_PROG([XXD_FOUND], [xxd], [yes])