19783
{ echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19784
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
19785
# Check whether --enable-nls was given.
19786
if test "${enable_nls+set}" = set; then
19787
enableval=$enable_nls; USE_NLS=$enableval
19792
{ echo "$as_me:$LINENO: result: $USE_NLS" >&5
19793
echo "${ECHO_T}$USE_NLS" >&6; }
19798
case "$am__api_version" in
19800
{ { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
19801
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
19802
{ (exit 1); exit 1; }; }
19808
if test -n "0.35.0"; then
19809
{ echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
19810
echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
19812
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19813
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
19814
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19816
{ echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
19817
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
19818
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
19819
{ { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.35.0 or later." >&5
19820
echo "$as_me: error: Your intltool is too old. You need intltool 0.35.0 or later." >&2;}
19821
{ (exit 1); exit 1; }; }
19824
# Extract the first word of "intltool-update", so it can be a program name with args.
19825
set dummy intltool-update; ac_word=$2
19826
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19827
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19828
if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
19829
echo $ECHO_N "(cached) $ECHO_C" >&6
19831
case $INTLTOOL_UPDATE in
19833
ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
19836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19837
for as_dir in $PATH
19840
test -z "$as_dir" && as_dir=.
19841
for ac_exec_ext in '' $ac_executable_extensions; do
19842
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19843
ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
19844
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19854
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
19855
if test -n "$INTLTOOL_UPDATE"; then
19856
{ echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
19857
echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
19859
{ echo "$as_me:$LINENO: result: no" >&5
19860
echo "${ECHO_T}no" >&6; }
19864
# Extract the first word of "intltool-merge", so it can be a program name with args.
19865
set dummy intltool-merge; ac_word=$2
19866
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19868
if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
19869
echo $ECHO_N "(cached) $ECHO_C" >&6
19871
case $INTLTOOL_MERGE in
19873
ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
19876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19877
for as_dir in $PATH
19880
test -z "$as_dir" && as_dir=.
19881
for ac_exec_ext in '' $ac_executable_extensions; do
19882
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19883
ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
19884
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19894
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
19895
if test -n "$INTLTOOL_MERGE"; then
19896
{ echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
19897
echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
19899
{ echo "$as_me:$LINENO: result: no" >&5
19900
echo "${ECHO_T}no" >&6; }
19904
# Extract the first word of "intltool-extract", so it can be a program name with args.
19905
set dummy intltool-extract; ac_word=$2
19906
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19907
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19908
if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
19909
echo $ECHO_N "(cached) $ECHO_C" >&6
19911
case $INTLTOOL_EXTRACT in
19913
ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
19916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19917
for as_dir in $PATH
19920
test -z "$as_dir" && as_dir=.
19921
for ac_exec_ext in '' $ac_executable_extensions; do
19922
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19923
ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
19924
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19934
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
19935
if test -n "$INTLTOOL_EXTRACT"; then
19936
{ echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
19937
echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
19939
{ echo "$as_me:$LINENO: result: no" >&5
19940
echo "${ECHO_T}no" >&6; }
19944
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
19945
{ { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
19946
echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
19947
{ (exit 1); exit 1; }; }
19950
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19951
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19952
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19953
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19954
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
19955
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19956
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19957
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19958
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19959
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19960
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19961
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
19962
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19963
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19964
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19965
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19966
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19967
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19968
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20066
# Check the gettext tools to make sure they are GNU
20067
# Extract the first word of "xgettext", so it can be a program name with args.
20068
set dummy xgettext; ac_word=$2
20069
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20071
if test "${ac_cv_path_XGETTEXT+set}" = set; then
20072
echo $ECHO_N "(cached) $ECHO_C" >&6
20076
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20080
for as_dir in $PATH
20083
test -z "$as_dir" && as_dir=.
20084
for ac_exec_ext in '' $ac_executable_extensions; do
20085
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20086
ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
20087
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20097
XGETTEXT=$ac_cv_path_XGETTEXT
20098
if test -n "$XGETTEXT"; then
20099
{ echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20100
echo "${ECHO_T}$XGETTEXT" >&6; }
20102
{ echo "$as_me:$LINENO: result: no" >&5
20103
echo "${ECHO_T}no" >&6; }
20107
# Extract the first word of "msgmerge", so it can be a program name with args.
20108
set dummy msgmerge; ac_word=$2
20109
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20110
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20111
if test "${ac_cv_path_MSGMERGE+set}" = set; then
20112
echo $ECHO_N "(cached) $ECHO_C" >&6
20116
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20120
for as_dir in $PATH
20123
test -z "$as_dir" && as_dir=.
20124
for ac_exec_ext in '' $ac_executable_extensions; do
20125
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20126
ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
20127
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20137
MSGMERGE=$ac_cv_path_MSGMERGE
20138
if test -n "$MSGMERGE"; then
20139
{ echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20140
echo "${ECHO_T}$MSGMERGE" >&6; }
20142
{ echo "$as_me:$LINENO: result: no" >&5
20143
echo "${ECHO_T}no" >&6; }
20147
# Extract the first word of "msgfmt", so it can be a program name with args.
20148
set dummy msgfmt; ac_word=$2
20149
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20150
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20151
if test "${ac_cv_path_MSGFMT+set}" = set; then
20152
echo $ECHO_N "(cached) $ECHO_C" >&6
20156
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160
for as_dir in $PATH
20163
test -z "$as_dir" && as_dir=.
20164
for ac_exec_ext in '' $ac_executable_extensions; do
20165
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20166
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
20167
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20177
MSGFMT=$ac_cv_path_MSGFMT
20178
if test -n "$MSGFMT"; then
20179
{ echo "$as_me:$LINENO: result: $MSGFMT" >&5
20180
echo "${ECHO_T}$MSGFMT" >&6; }
20182
{ echo "$as_me:$LINENO: result: no" >&5
20183
echo "${ECHO_T}no" >&6; }
20187
# Extract the first word of "gmsgfmt", so it can be a program name with args.
20188
set dummy gmsgfmt; ac_word=$2
20189
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20190
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20191
if test "${ac_cv_path_GMSGFMT+set}" = set; then
20192
echo $ECHO_N "(cached) $ECHO_C" >&6
20196
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20200
for as_dir in $PATH
20203
test -z "$as_dir" && as_dir=.
20204
for ac_exec_ext in '' $ac_executable_extensions; do
20205
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20206
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20207
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20214
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20218
GMSGFMT=$ac_cv_path_GMSGFMT
20219
if test -n "$GMSGFMT"; then
20220
{ echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20221
echo "${ECHO_T}$GMSGFMT" >&6; }
20223
{ echo "$as_me:$LINENO: result: no" >&5
20224
echo "${ECHO_T}no" >&6; }
20228
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
20229
{ { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20230
echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20231
{ (exit 1); exit 1; }; }
20233
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
20234
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
20235
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
20236
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
20237
{ { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20238
echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20239
{ (exit 1); exit 1; }; }
20242
# Extract the first word of "perl", so it can be a program name with args.
20243
set dummy perl; ac_word=$2
20244
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20246
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
20247
echo $ECHO_N "(cached) $ECHO_C" >&6
20249
case $INTLTOOL_PERL in
20251
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
20254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20255
for as_dir in $PATH
20258
test -z "$as_dir" && as_dir=.
20259
for ac_exec_ext in '' $ac_executable_extensions; do
20260
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20261
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
20262
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20272
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
20273
if test -n "$INTLTOOL_PERL"; then
20274
{ echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
20275
echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
20277
{ echo "$as_me:$LINENO: result: no" >&5
20278
echo "${ECHO_T}no" >&6; }
20282
if test -z "$INTLTOOL_PERL"; then
20283
{ { echo "$as_me:$LINENO: error: perl not found" >&5
20284
echo "$as_me: error: perl not found" >&2;}
20285
{ (exit 1); exit 1; }; }
20287
{ echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
20288
echo $ECHO_N "checking for perl >= 5.8.1... $ECHO_C" >&6; }
20289
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
20290
if test $? -ne 0; then
20291
{ { echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
20292
echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
20293
{ (exit 1); exit 1; }; }
20295
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
20296
{ echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
20297
echo "${ECHO_T}$IT_PERL_VERSION" >&6; }
20299
if test "x" != "xno-xml"; then
20300
{ echo "$as_me:$LINENO: checking for XML::Parser" >&5
20301
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
20302
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
20303
{ echo "$as_me:$LINENO: result: ok" >&5
20304
echo "${ECHO_T}ok" >&6; }
20306
{ { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
20307
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
20308
{ (exit 1); exit 1; }; }
20312
# Substitute ALL_LINGUAS so we can use it in po/Makefile
20315
# Set DATADIRNAME correctly if it is not set yet
20316
# (copied from glib-gettext.m4)
20317
if test -z "$DATADIRNAME"; then
20318
cat >conftest.$ac_ext <<_ACEOF
20321
cat confdefs.h >>conftest.$ac_ext
20322
cat >>conftest.$ac_ext <<_ACEOF
20323
/* end confdefs.h. */
20328
extern int _nl_msg_cat_cntr;
20329
return _nl_msg_cat_cntr
20334
rm -f conftest.$ac_objext conftest$ac_exeext
20335
if { (ac_try="$ac_link"
20336
case "(($ac_try" in
20337
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338
*) ac_try_echo=$ac_try;;
20340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341
(eval "$ac_link") 2>conftest.er1
20343
grep -v '^ *+' conftest.er1 >conftest.err
20345
cat conftest.err >&5
20346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347
(exit $ac_status); } && {
20348
test -z "$ac_c_werror_flag" ||
20349
test ! -s conftest.err
20350
} && test -s conftest$ac_exeext &&
20351
$as_test_x conftest$ac_exeext; then
20354
echo "$as_me: failed program was:" >&5
20355
sed 's/^/| /' conftest.$ac_ext >&5
20359
{ echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20360
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
20361
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20362
echo $ECHO_N "(cached) $ECHO_C" >&6
20364
cat >conftest.$ac_ext <<_ACEOF
20367
cat confdefs.h >>conftest.$ac_ext
20368
cat >>conftest.$ac_ext <<_ACEOF
20369
/* end confdefs.h. */
20370
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20371
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20372
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20374
/* System header to define __stub macros and hopefully few prototypes,
20375
which can conflict with char bind_textdomain_codeset (); below.
20376
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20377
<limits.h> exists even on freestanding compilers. */
20380
# include <limits.h>
20382
# include <assert.h>
20385
#undef bind_textdomain_codeset
20387
/* Override any GCC internal prototype to avoid an error.
20388
Use char because int might match the return type of a GCC
20389
builtin and then its argument prototype would still apply. */
20393
char bind_textdomain_codeset ();
20394
/* The GNU C library defines this for functions which it implements
20395
to always fail with ENOSYS. Some functions are actually named
20396
something starting with __ and the normal name is an alias. */
20397
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
20404
return bind_textdomain_codeset ();
20409
rm -f conftest.$ac_objext conftest$ac_exeext
20410
if { (ac_try="$ac_link"
20411
case "(($ac_try" in
20412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413
*) ac_try_echo=$ac_try;;
20415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416
(eval "$ac_link") 2>conftest.er1
20418
grep -v '^ *+' conftest.er1 >conftest.err
20420
cat conftest.err >&5
20421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422
(exit $ac_status); } && {
20423
test -z "$ac_c_werror_flag" ||
20424
test ! -s conftest.err
20425
} && test -s conftest$ac_exeext &&
20426
$as_test_x conftest$ac_exeext; then
20427
ac_cv_func_bind_textdomain_codeset=yes
20429
echo "$as_me: failed program was:" >&5
20430
sed 's/^/| /' conftest.$ac_ext >&5
20432
ac_cv_func_bind_textdomain_codeset=no
20435
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20436
conftest$ac_exeext conftest.$ac_ext
20438
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20439
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
20440
if test $ac_cv_func_bind_textdomain_codeset = yes; then
20453
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20454
conftest$ac_exeext conftest.$ac_ext
21639
22381
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21640
22382
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
21641
22383
if test "$am_cv_func_iconv" = yes; then
22384
{ echo "$as_me:$LINENO: checking for working iconv" >&5
22385
echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
22386
if test "${am_cv_func_iconv_works+set}" = set; then
22387
echo $ECHO_N "(cached) $ECHO_C" >&6
22390
am_save_LIBS="$LIBS"
22391
if test $am_cv_lib_iconv = yes; then
22392
LIBS="$LIBS $LIBICONV"
22394
if test "$cross_compiling" = yes; then
22396
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
22397
*) am_cv_func_iconv_works="guessing yes" ;;
22400
cat >conftest.$ac_ext <<_ACEOF
22403
cat confdefs.h >>conftest.$ac_ext
22404
cat >>conftest.$ac_ext <<_ACEOF
22405
/* end confdefs.h. */
22408
#include <string.h>
22411
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
22414
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
22415
if (cd_utf8_to_88591 != (iconv_t)(-1))
22417
static const char input[] = "\342\202\254"; /* EURO SIGN */
22419
const char *inptr = input;
22420
size_t inbytesleft = strlen (input);
22421
char *outptr = buf;
22422
size_t outbytesleft = sizeof (buf);
22423
size_t res = iconv (cd_utf8_to_88591,
22424
(char **) &inptr, &inbytesleft,
22425
&outptr, &outbytesleft);
22430
#if 0 /* This bug could be worked around by the caller. */
22431
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22433
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22434
if (cd_88591_to_utf8 != (iconv_t)(-1))
22436
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22438
const char *inptr = input;
22439
size_t inbytesleft = strlen (input);
22440
char *outptr = buf;
22441
size_t outbytesleft = sizeof (buf);
22442
size_t res = iconv (cd_88591_to_utf8,
22443
(char **) &inptr, &inbytesleft,
22444
&outptr, &outbytesleft);
22450
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22452
if (/* Try standardized names. */
22453
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22454
/* Try IRIX, OSF/1 names. */
22455
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22456
/* Try AIX names. */
22457
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22458
/* Try HP-UX names. */
22459
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22464
rm -f conftest$ac_exeext
22465
if { (ac_try="$ac_link"
22466
case "(($ac_try" in
22467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468
*) ac_try_echo=$ac_try;;
22470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471
(eval "$ac_link") 2>&5
22473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22475
{ (case "(($ac_try" in
22476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477
*) ac_try_echo=$ac_try;;
22479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480
(eval "$ac_try") 2>&5
22482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483
(exit $ac_status); }; }; then
22484
am_cv_func_iconv_works=yes
22486
echo "$as_me: program exited with status $ac_status" >&5
22487
echo "$as_me: failed program was:" >&5
22488
sed 's/^/| /' conftest.$ac_ext >&5
22490
( exit $ac_status )
22491
am_cv_func_iconv_works=no
22493
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22497
LIBS="$am_save_LIBS"
22500
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
22501
echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
22502
case "$am_cv_func_iconv_works" in
22503
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
22504
*) am_func_iconv=yes ;;
22507
am_func_iconv=no am_cv_lib_iconv=no
22509
if test "$am_func_iconv" = yes; then
21643
22511
cat >>confdefs.h <<\_ACEOF
21644
22512
#define HAVE_ICONV 1