mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Require bind_textdomain_codeset() not just gettext() to enable NLS support.
GNU gettext before 0.10.36 does not have that function, and is generally too incomplete to be usable.
This commit is contained in:
24
configure
vendored
24
configure
vendored
@ -24625,9 +24625,9 @@ _ACEOF
|
||||
|
||||
if test "$enable_nls" = yes ; then
|
||||
|
||||
{ echo "$as_me:$LINENO: checking for library containing gettext" >&5
|
||||
echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_search_gettext+set}" = set; then
|
||||
{ echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
|
||||
echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_func_search_save_LIBS=$LIBS
|
||||
@ -24644,11 +24644,11 @@ cat >>conftest.$ac_ext <<_ACEOF
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char gettext ();
|
||||
char bind_textdomain_codeset ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return gettext ();
|
||||
return bind_textdomain_codeset ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
@ -24678,7 +24678,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
test ! -s conftest.err
|
||||
} && test -s conftest$ac_exeext &&
|
||||
$as_test_x conftest$ac_exeext; then
|
||||
ac_cv_search_gettext=$ac_res
|
||||
ac_cv_search_bind_textdomain_codeset=$ac_res
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
@ -24688,21 +24688,21 @@ fi
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||
conftest$ac_exeext
|
||||
if test "${ac_cv_search_gettext+set}" = set; then
|
||||
if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test "${ac_cv_search_gettext+set}" = set; then
|
||||
if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
|
||||
:
|
||||
else
|
||||
ac_cv_search_gettext=no
|
||||
ac_cv_search_bind_textdomain_codeset=no
|
||||
fi
|
||||
rm conftest.$ac_ext
|
||||
LIBS=$ac_func_search_save_LIBS
|
||||
fi
|
||||
{ echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
|
||||
echo "${ECHO_T}$ac_cv_search_gettext" >&6; }
|
||||
ac_res=$ac_cv_search_gettext
|
||||
{ echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
|
||||
echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
|
||||
ac_res=$ac_cv_search_bind_textdomain_codeset
|
||||
if test "$ac_res" != no; then
|
||||
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
||||
|
||||
|
Reference in New Issue
Block a user