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:
alonbl 2009-04-21 16:43:00 +00:00
parent 09a442adb4
commit 23e247cafe
1 changed files with 9 additions and 1 deletions

View File

@ -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"
]
)]
)
]
)