Lines 1-60
Link Here
|
1 |
--- aclocal.m4.orig Thu Feb 10 05:22:27 2000 |
1 |
--- aclocal.m4.orig Thu Nov 23 05:32:03 2000 |
2 |
+++ aclocal.m4 Fri Jul 28 19:30:42 2000 |
2 |
+++ aclocal.m4 Sat Dec 2 12:21:18 2000 |
3 |
@@ -1733,7 +1733,7 @@ |
3 |
@@ -1996,9 +1996,12 @@ |
4 |
# but which still want to provide support for the GNU gettext functionality. |
4 |
[CATOBJEXT=.gmo |
5 |
# Please note that the actual code is *not* freely available. |
5 |
DATADIRNAME=share], |
6 |
|
6 |
[CATOBJEXT=.mo |
7 |
-# serial 3 |
7 |
- DATADIRNAME=lib]) |
8 |
+# serial 5 |
8 |
+ DATADIRNAME=share]) |
9 |
|
|
|
10 |
AC_DEFUN(AM_WITH_NLS, |
11 |
[AC_MSG_CHECKING([whether NLS is requested]) |
12 |
@@ -1775,9 +1775,10 @@ |
13 |
AC_CHECK_LIB(intl, bindtextdomain, |
14 |
[AC_CACHE_CHECK([for gettext in libintl], |
15 |
gt_cv_func_gettext_libintl, |
16 |
- [AC_TRY_LINK([], [return (int) gettext ("")], |
17 |
- gt_cv_func_gettext_libintl=yes, |
18 |
- gt_cv_func_gettext_libintl=no)])]) |
19 |
+ [AC_CHECK_LIB(intl, gettext, |
20 |
+ gt_cv_func_gettext_libintl=yes, |
21 |
+ gt_cv_func_gettext_libintl=no)], |
22 |
+ gt_cv_func_gettext_libintl=no)]) |
23 |
fi |
24 |
|
25 |
if test "$gt_cv_func_gettext_libc" = "yes" \ |
26 |
@@ -1799,6 +1800,9 @@ |
27 |
INSTOBJEXT=.mo |
9 |
INSTOBJEXT=.mo |
28 |
fi |
10 |
fi |
29 |
fi |
11 |
+ fi |
30 |
+ if test "$gt_cv_func_gettext_libintl" = "yes"; then |
12 |
+ if test "$gt_cv_func_gettext_libintl" = "yes"; then |
31 |
+ INTLLIBS='-lintl' |
13 |
+ INTLLIBS='-lintl' |
32 |
+ fi |
14 |
fi |
33 |
]) |
15 |
]) |
34 |
|
16 |
|
35 |
if test "$CATOBJEXT" = "NONE"; then |
|
|
36 |
@@ -1883,6 +1887,12 @@ |
37 |
nls_cv_header_intl=intl/libintl.h |
38 |
nls_cv_header_libgt=intl/libgettext.h |
39 |
fi |
40 |
+ AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) |
41 |
+ AC_OUTPUT_COMMANDS( |
42 |
+ [case "$CONFIG_FILES" in *po/Makefile.in*) |
43 |
+ sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
44 |
+ esac]) |
45 |
+ |
46 |
|
47 |
# If this is used in GNU gettext we have to set USE_NLS to `yes' |
48 |
# because some of the sources are only built for this goal. |
49 |
@@ -1927,9 +1937,9 @@ |
50 |
AC_REQUIRE([AC_FUNC_MMAP])dnl |
51 |
|
52 |
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
53 |
-unistd.h values.h sys/param.h]) |
54 |
+unistd.h sys/param.h]) |
55 |
AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
56 |
-__argz_count __argz_stringify __argz_next]) |
57 |
+strdup __argz_count __argz_stringify __argz_next]) |
58 |
|
59 |
if test "${ac_cv_func_stpcpy+set}" != "set"; then |
60 |
AC_CHECK_FUNCS(stpcpy) |