40 lines
1 KiB
Text
40 lines
1 KiB
Text
--- m4/iconv.m4.orig Thu Jun 7 22:00:05 2001
|
|
+++ m4/iconv.m4 Fri Jun 8 12:45:23 2001
|
|
@@ -19,16 +19,16 @@
|
|
am_cv_func_iconv="no, consider installing GNU libiconv"
|
|
am_cv_lib_iconv=no
|
|
AC_TRY_LINK([#include <stdlib.h>
|
|
-#include <iconv.h>],
|
|
+#include <giconv.h>],
|
|
[iconv_t cd = iconv_open("","");
|
|
iconv(cd,NULL,NULL,NULL,NULL);
|
|
iconv_close(cd);],
|
|
am_cv_func_iconv=yes)
|
|
if test "$am_cv_func_iconv" != yes; then
|
|
am_save_LIBS="$LIBS"
|
|
- LIBS="$LIBS -liconv"
|
|
+ LIBS="$LIBS -lgiconv"
|
|
AC_TRY_LINK([#include <stdlib.h>
|
|
-#include <iconv.h>],
|
|
+#include <giconv.h>],
|
|
[iconv_t cd = iconv_open("","");
|
|
iconv(cd,NULL,NULL,NULL,NULL);
|
|
iconv_close(cd);],
|
|
@@ -43,7 +43,7 @@
|
|
AC_CACHE_VAL(am_cv_proto_iconv, [
|
|
AC_TRY_COMPILE([
|
|
#include <stdlib.h>
|
|
-#include <iconv.h>
|
|
+#include <giconv.h>
|
|
extern
|
|
#ifdef __cplusplus
|
|
"C"
|
|
@@ -63,7 +63,7 @@
|
|
fi
|
|
LIBICONV=
|
|
if test "$am_cv_lib_iconv" = yes; then
|
|
- LIBICONV="-liconv"
|
|
+ LIBICONV="-lgiconv"
|
|
fi
|
|
AC_SUBST(LIBICONV)
|
|
])
|