dnl From Bruno Haible.
-AC_DEFUN(bh_C_SIGNED,
+AC_DEFUN([bh_C_SIGNED],
[
AC_CACHE_CHECK([for signed], bh_cv_c_signed,
[AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
# serial 8
-dnl Usage: AM_WITH_NLS([SYMBOL], [LIBDIR]).
-dnl If SYMBOL is specified and is 'use-libtool', then a libtool library
+dnl Usage: AM_WITH_NLS([TOOLSYMBOL], [NEEDSYMBOL], [LIBDIR]).
+dnl If TOOLSYMBOL is specified and is 'use-libtool', then a libtool library
dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
dnl depending on --{enable,disable}-{shared,static} and on the presence of
dnl AM_DISABLE_SHARED). Otherwise, a static library
dnl $(top_builddir)/intl/libintl.a will be created.
+dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
+dnl implementations (in libc or libintl) without the ngettext() function
+dnl will be ignored.
dnl LIBDIR is used to find the intl libraries. If empty,
dnl the value `$(top_builddir)/intl/' is used.
dnl
dnl to fall back to GNU NLS library.
CATOBJEXT=NONE
+ dnl Add a version number to the cache macros.
+ define(gt_cv_func_gnugettext_libc, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libc])
+ define(gt_cv_func_gnugettext_libintl, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libintl])
+
AC_CHECK_HEADER(libintl.h,
[AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
[AC_TRY_LINK([#include <libintl.h>
extern int _nl_msg_cat_cntr;],
[bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr],
+return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr],
gt_cv_func_gnugettext_libc=yes,
gt_cv_func_gnugettext_libc=no)])
AC_TRY_LINK([#include <libintl.h>
extern int _nl_msg_cat_cntr;],
[bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr],
+return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr],
gt_cv_func_gnugettext_libintl=yes,
gt_cv_func_gnugettext_libintl=no)
LIBS="$gt_save_LIBS"])
BUILD_INCLUDED_LIBINTL=yes
USE_INCLUDED_LIBINTL=yes
CATOBJEXT=.gmo
- INTLLIBS='ifelse([$2],[],$(top_builddir)/intl,[$2])/libintl.ifelse([$1], use-libtool, [l], [])a'
+ INTLLIBS='ifelse([$3],[],$(top_builddir)/intl,[$3])/libintl.ifelse([$1], use-libtool, [l], [])a'
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
fi
#! /bin/sh
-# From configure.in Revision: 1.14
+# From configure.in Revision: 1.17
-ALL_LINGUAS="da de el es fr ja ko nl nn no pl pt sl sv tr"
+ALL_LINGUAS="da de el en@quot en@boldquot es fr ja ko nl nn no pl pt sl sv tr"
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
CATOBJEXT=NONE
+
+
+
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
-echo "configure:3837: checking for libintl.h" >&5
+echo "configure:3840: checking for libintl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3842 "configure"
+#line 3845 "configure"
#include "confdefs.h"
#include <libintl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
-echo "configure:3864: checking for GNU gettext in libc" >&5
-if eval "test \"`echo '$''{'gt_cv_func_gnugettext_libc'+set}'`\" = set"; then
+echo "configure:3867: checking for GNU gettext in libc" >&5
+if eval "test \"`echo '$''{'gt_cv_func_gnugettext2_libc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3869 "configure"
+#line 3872 "configure"
#include "confdefs.h"
#include <libintl.h>
extern int _nl_msg_cat_cntr;
int main() {
bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr
+return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
; return 0; }
EOF
-if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- gt_cv_func_gnugettext_libc=yes
+ gt_cv_func_gnugettext2_libc=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- gt_cv_func_gnugettext_libc=no
+ gt_cv_func_gnugettext2_libc=no
fi
rm -f conftest*
fi
-echo "$ac_t""$gt_cv_func_gnugettext_libc" 1>&6
+echo "$ac_t""$gt_cv_func_gnugettext2_libc" 1>&6
- if test "$gt_cv_func_gnugettext_libc" != "yes"; then
+ if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
-echo "configure:3894: checking for GNU gettext in libintl" >&5
-if eval "test \"`echo '$''{'gt_cv_func_gnugettext_libintl'+set}'`\" = set"; then
+echo "configure:3897: checking for GNU gettext in libintl" >&5
+if eval "test \"`echo '$''{'gt_cv_func_gnugettext2_libintl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
gt_save_LIBS="$LIBS"
LIBS="$LIBS -lintl"
cat > conftest.$ac_ext <<EOF
-#line 3901 "configure"
+#line 3904 "configure"
#include "confdefs.h"
#include <libintl.h>
extern int _nl_msg_cat_cntr;
int main() {
bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr
+return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
; return 0; }
EOF
-if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- gt_cv_func_gnugettext_libintl=yes
+ gt_cv_func_gnugettext2_libintl=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- gt_cv_func_gnugettext_libintl=no
+ gt_cv_func_gnugettext2_libintl=no
fi
rm -f conftest*
LIBS="$gt_save_LIBS"
fi
-echo "$ac_t""$gt_cv_func_gnugettext_libintl" 1>&6
+echo "$ac_t""$gt_cv_func_gnugettext2_libintl" 1>&6
fi
- if test "$gt_cv_func_gnugettext_libc" = "yes" \
- || test "$gt_cv_func_gnugettext_libintl" = "yes"; then
+ if test "$gt_cv_func_gnugettext2_libc" = "yes" \
+ || test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
cat >> confdefs.h <<\EOF
#define HAVE_GETTEXT 1
EOF
# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3935: checking for $ac_word" >&5
+echo "configure:3938: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
for ac_func in dcgettext
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3969: checking for $ac_func" >&5
+echo "configure:3972: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3974 "configure"
+#line 3977 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
# Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4024: checking for $ac_word" >&5
+echo "configure:4027: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4060: checking for $ac_word" >&5
+echo "configure:4063: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
CATOBJEXT=.gmo
fi
- if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
+ if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
INTLLIBS="-lintl"
fi
fi
# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4113: checking for $ac_word" >&5
+echo "configure:4116: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4147: checking for $ac_word" >&5
+echo "configure:4150: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4183: checking for $ac_word" >&5
+echo "configure:4186: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
LINGUAS=
else
echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
-echo "configure:4274: checking for catalogs to be installed" >&5
+echo "configure:4277: checking for catalogs to be installed" >&5
NEW_LINGUAS=
for presentlang in $ALL_LINGUAS; do
useit=no
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4338: checking for $ac_word" >&5
+echo "configure:4341: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test $EMACS != "no"; then
echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
-echo "configure:4376: checking where .elc files should go" >&5
+echo "configure:4379: checking where .elc files should go" >&5
lispdir="\$(datadir)/emacs/site-lisp"
emacs_flavor=`echo "$EMACS" | sed -e 's,^.*/,,'`
if test "x$prefix" = "xNONE"; then
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
esac
+ sed -e 's/test \([^ ]*\) = \([^ ]*\) \&\& /test \1 != \2 \|\| /' < Makefile \
+ > Makefile.tmp
+ mv Makefile.tmp Makefile
sed -e 's/rm -f \$(lispdir)/rm -f \$(DESTDIR)\$(lispdir)/' < misc/Makefile \
> misc/Makefile.tmp
+ mv misc/Makefile.tmp misc/Makefile
+ sed -e "s/list='\\\$(lisp_LISP)'; for/list='\$(lisp_LISP)'; test '\$(EMACS)' = no || for/" \
+ < misc/Makefile > misc/Makefile.tmp
mv misc/Makefile.tmp misc/Makefile
exit 0
gettext.info-2: 49514
gettext.info-3: 98183
gettext.info-4: 147581
-gettext.info-5: 197086
+gettext.info-5: 197084
\1f
Tag Table:
(Indirect)
Ref: Locating Catalogs-Footnote-2\7f148953
Node: Charset conversion\7f149102
Node: Plural forms\7f151544
-Ref: Plural forms-Footnote-1\7f161322
-Node: GUI program problems\7f161414
-Node: Optimized gettext\7f166517
-Node: Comparison\7f167850
-Node: Using libintl.a\7f172122
-Node: gettext grok\7f172893
-Node: Temp Programmers\7f175525
-Node: Temp Implementations\7f175965
-Node: Temp catgets\7f177331
-Node: Temp WSI\7f179018
-Node: Temp Notes\7f181006
-Node: Translators\7f181495
-Node: Trans Intro 0\7f181874
-Node: Trans Intro 1\7f184523
-Node: Discussions\7f186387
-Node: Organization\7f189543
-Node: Central Coordination\7f191524
-Node: National Teams\7f192652
-Node: Sub-Cultures\7f195164
-Node: Organizational Ideas\7f196083
-Node: Mailing Lists\7f197086
-Node: Information Flow\7f198889
-Node: Maintainers\7f201022
-Node: Flat and Non-Flat\7f202781
-Node: Prerequisites\7f204542
-Node: gettextize Invocation\7f208651
-Node: Adjusting Files\7f212223
-Node: po/POTFILES.in\7f213446
-Node: configure.in\7f214385
-Node: aclocal\7f216511
-Node: acconfig\7f217690
-Node: Makefile\7f218288
-Node: src/Makefile\7f220476
-Node: Conclusion\7f222873
-Node: History\7f223363
-Node: References\7f226823
-Node: Language Codes\7f228378
+Ref: Plural forms-Footnote-1\7f161320
+Node: GUI program problems\7f161412
+Node: Optimized gettext\7f166515
+Node: Comparison\7f167848
+Node: Using libintl.a\7f172120
+Node: gettext grok\7f172891
+Node: Temp Programmers\7f175523
+Node: Temp Implementations\7f175963
+Node: Temp catgets\7f177329
+Node: Temp WSI\7f179016
+Node: Temp Notes\7f181004
+Node: Translators\7f181493
+Node: Trans Intro 0\7f181872
+Node: Trans Intro 1\7f184521
+Node: Discussions\7f186385
+Node: Organization\7f189541
+Node: Central Coordination\7f191522
+Node: National Teams\7f192650
+Node: Sub-Cultures\7f195162
+Node: Organizational Ideas\7f196081
+Node: Mailing Lists\7f197084
+Node: Information Flow\7f198887
+Node: Maintainers\7f201020
+Node: Flat and Non-Flat\7f202779
+Node: Prerequisites\7f204540
+Node: gettextize Invocation\7f208649
+Node: Adjusting Files\7f212221
+Node: po/POTFILES.in\7f213444
+Node: configure.in\7f214383
+Node: aclocal\7f216509
+Node: acconfig\7f217688
+Node: Makefile\7f218286
+Node: src/Makefile\7f220474
+Node: Conclusion\7f222871
+Node: History\7f223361
+Node: References\7f226821
+Node: Language Codes\7f228376
\1f
End Tag Table