mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use a link test to check for GNU libiconv (#13894)
This commit is contained in:
parent
843946a867
commit
3a40e3d95b
1 changed files with 1 additions and 10 deletions
|
@ -28,20 +28,11 @@ if test "$PHP_ICONV" != "no"; then
|
|||
|
||||
if test -z "$iconv_impl_name"; then
|
||||
AC_MSG_CHECKING([if using GNU libiconv])
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
#include <iconv.h>
|
||||
#include <stdio.h>
|
||||
int main(void) {
|
||||
printf("%d", _libiconv_version);
|
||||
return 0;
|
||||
}
|
||||
]])],[
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>], [(void) _libiconv_version])],[
|
||||
AC_MSG_RESULT(yes)
|
||||
iconv_impl_name="gnu_libiconv"
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
],[
|
||||
AC_MSG_RESULT([no, cross-compiling])
|
||||
])
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue