Fix GNU libiconv detection
By Kalev Lember The attached patch fixes GNU libiconv detection by adding an additional libiconv symbol check to autoconf -liconv link test. Right now some iconv implementations have only iconv* symbols (GNU libc), some have only libiconv* (GNU libiconv), and some have both defined (Mac OS X's iconv), so it's necessary to check for both variants. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3684 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
09a442adb4
commit
23e247cafe
10
configure.ac
10
configure.ac
|
@ -464,7 +464,15 @@ else
|
|||
[
|
||||
ac_cv_lib_iconv="yes"
|
||||
ICONV_LIBS="-liconv"
|
||||
]
|
||||
],
|
||||
[AC_CHECK_LIB(
|
||||
[iconv],
|
||||
[libiconv],
|
||||
[
|
||||
ac_cv_lib_iconv="yes"
|
||||
ICONV_LIBS="-liconv"
|
||||
]
|
||||
)]
|
||||
)
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue