Lines 1-9
Link Here
|
1 |
--- m4/gettext.m4.orig 2010-01-03 21:26:04.000000000 +0900 |
1 |
--- m4/gettext.m4.orig 2010-01-03 12:26:04 UTC |
2 |
+++ m4/gettext.m4 2014-04-03 10:20:12.000000000 +0900 |
2 |
+++ m4/gettext.m4 |
3 |
@@ -87,13 +87,19 @@ |
3 |
@@ -86,14 +86,17 @@ AC_DEFUN([eb_GNU_GETTEXT], [dnl |
|
|
4 |
save_CPPFLAGS=$CPPFLAGS |
4 |
save_LIBS=$LIBS |
5 |
save_LIBS=$LIBS |
5 |
CPPFLAGS="$save_CPPFLAGS $iconv_includes" |
6 |
CPPFLAGS="$save_CPPFLAGS $iconv_includes" |
6 |
LIBS="$save_LIBS $iconv_libraries" |
7 |
- LIBS="$save_LIBS $iconv_libraries" |
7 |
- AC_CHECK_LIB(iconv, iconv_open, |
8 |
- AC_CHECK_LIB(iconv, iconv_open, |
8 |
- [ICONVLIBS="$iconv_libraries -liconv"; LIBS="$LIBS -liconv"]) |
9 |
- [ICONVLIBS="$iconv_libraries -liconv"; LIBS="$LIBS -liconv"]) |
9 |
- AC_CHECK_FUNCS(iconv_open locale_charset) |
10 |
- AC_CHECK_FUNCS(iconv_open locale_charset) |
Lines 11-33
Link Here
|
11 |
- if test $ac_cv_func_iconv_open != no; then |
12 |
- if test $ac_cv_func_iconv_open != no; then |
12 |
- ICONVINCS="$iconv_includes" |
13 |
- ICONVINCS="$iconv_includes" |
13 |
- fi |
14 |
- fi |
14 |
+ initial_LIBS="$LIBS" |
15 |
+ AC_CHECK_HEADER([iconv.h], |
15 |
+ AC_SEARCH_LIBS([iconv_open], |
16 |
+ [AC_DEFINE([HAVE_ICONV_H],[1],[Have iconv.h]) |
16 |
+ [iconv], |
17 |
+ for l in '' -liconv; do |
17 |
+ [AS_IF([test "$LIBS" = "$initial_LIBS"], |
18 |
+ LIBS="$save_LIBS $iconv_libraries $l" |
18 |
+ [AC_CHECK_HEADERS([iconv.h]) |
19 |
+ AC_LINK_IFELSE( |
19 |
+ AC_CHECK_FUNCS([iconv_open]) |
20 |
+ AC_LANG_PROGRAM([#include <iconv.h>],[iconv_open("","")]), |
20 |
+ ICONVLIBS="$iconv_libraries" |
21 |
+ [AC_DEFINE([HAVE_ICONV_OPEN],[1],[Have iconv_open(3)]) |
21 |
+ ICONVINCS="$iconv_includes"], |
22 |
+ ICONVINCS="$iconv_includes" |
22 |
+ [AC_CHECK_LIB([charset], [locale_charset]) |
23 |
+ ICONVLIBS="$iconv_libraries $l" |
23 |
+ AC_CHECK_HEADERS([iconv.h libcharset.h]) |
24 |
+ break],[]) |
24 |
+ AC_CHECK_FUNCS([iconv_open locale_charset]) |
25 |
+ done],[]) |
25 |
+ ICONVLIBS="$iconv_libraries -lcharset -liconv" |
|
|
26 |
+ ICONVINCS="$iconv_includes"])]) |
27 |
CPPFLAGS=$save_CPPFLAGS |
26 |
CPPFLAGS=$save_CPPFLAGS |
28 |
LIBS=$save_LIBS |
27 |
LIBS=$save_LIBS |
29 |
AC_SUBST(ICONVINCS) |
28 |
AC_SUBST(ICONVINCS) |
30 |
@@ -113,10 +119,10 @@ |
29 |
@@ -113,10 +116,10 @@ AC_DEFUN([eb_GNU_GETTEXT], [dnl |
31 |
save_LIBS=$LIBS |
30 |
save_LIBS=$LIBS |
32 |
|
31 |
|
33 |
dnl * |
32 |
dnl * |
Lines 41-47
Link Here
|
41 |
AC_LINK_IFELSE([ |
40 |
AC_LINK_IFELSE([ |
42 |
#include <stdio.h> |
41 |
#include <stdio.h> |
43 |
#ifdef ENABLE_NLS |
42 |
#ifdef ENABLE_NLS |
44 |
@@ -143,8 +149,8 @@ |
43 |
@@ -143,8 +146,8 @@ main() |
45 |
try_nls=yes, try_nls=no) |
44 |
try_nls=yes, try_nls=no) |
46 |
|
45 |
|
47 |
if test "$try_nls" = yes; then |
46 |
if test "$try_nls" = yes; then |
Lines 52-58
Link Here
|
52 |
fi |
51 |
fi |
53 |
|
52 |
|
54 |
dnl * |
53 |
dnl * |
55 |
@@ -222,11 +228,11 @@ |
54 |
@@ -222,11 +225,11 @@ main() |
56 |
fi |
55 |
fi |
57 |
|
56 |
|
58 |
dnl * |
57 |
dnl * |
Lines 67-73
Link Here
|
67 |
AC_LINK_IFELSE([ |
66 |
AC_LINK_IFELSE([ |
68 |
#include <stdio.h> |
67 |
#include <stdio.h> |
69 |
#ifdef ENABLE_NLS |
68 |
#ifdef ENABLE_NLS |
70 |
@@ -253,8 +259,8 @@ |
69 |
@@ -253,8 +256,8 @@ main() |
71 |
try_nls=yes, try_nls=no) |
70 |
try_nls=yes, try_nls=no) |
72 |
|
71 |
|
73 |
if test "$try_nls" = yes; then |
72 |
if test "$try_nls" = yes; then |