configure: Update libgettextpo check to detect too old versions.

This commit is contained in:
Alexandre Julliard 2011-01-08 15:53:26 +01:00
parent 7e6c75f1d1
commit 88155ca8c8
2 changed files with 14 additions and 14 deletions

24
configure vendored
View File

@ -10591,9 +10591,9 @@ if test "x$enable_tools" != xno
then then
if test "$ac_cv_header_gettext_po_h" = "yes" if test "$ac_cv_header_gettext_po_h" = "yes"
then then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_file_write in -lgettextpo" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
$as_echo_n "checking for po_file_write in -lgettextpo... " >&6; } $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
if test "${ac_cv_lib_gettextpo_po_file_write+set}" = set; then : if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
@ -10607,27 +10607,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
char po_file_write (); char po_message_msgctxt ();
int int
main () main ()
{ {
return po_file_write (); return po_message_msgctxt ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_gettextpo_po_file_write=yes ac_cv_lib_gettextpo_po_message_msgctxt=yes
else else
ac_cv_lib_gettextpo_po_file_write=no ac_cv_lib_gettextpo_po_message_msgctxt=no
fi fi
rm -f core conftest.err conftest.$ac_objext \ rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_file_write" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
$as_echo "$ac_cv_lib_gettextpo_po_file_write" >&6; } $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
if test "x$ac_cv_lib_gettextpo_po_file_write" = x""yes; then : if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
@ -10638,9 +10638,9 @@ fi
fi fi
if test "x$LIBGETTEXTPO" = "x"; then : if test "x$LIBGETTEXTPO" = "x"; then :
case "x$with_gettextpo" in case "x$with_gettextpo" in
x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found. Internationalization won't be fully supported." ;; x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
xno) ;; xno) ;;
*) as_fn_error $? "GetText ${notice_platform}development files not found. Internationalization won't be fully supported. *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
This is an error since --with-gettextpo was requested." "$LINENO" 5 ;; This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
esac esac
fi fi

View File

@ -1414,11 +1414,11 @@ if test "x$enable_tools" != xno
then then
if test "$ac_cv_header_gettext_po_h" = "yes" if test "$ac_cv_header_gettext_po_h" = "yes"
then then
AC_CHECK_LIB(gettextpo,po_file_write, AC_CHECK_LIB(gettextpo,po_message_msgctxt,
[AC_DEFINE(HAVE_LIBGETTEXTPO,1,[Define to 1 if you have the `gettextpo' library (-lgettextpo).]) [AC_DEFINE(HAVE_LIBGETTEXTPO,1,[Define to 1 if you have the `gettextpo' library (-lgettextpo).])
AC_SUBST(LIBGETTEXTPO,"-lgettextpo")]) AC_SUBST(LIBGETTEXTPO,"-lgettextpo")])
fi fi
WINE_WARNING_WITH(gettextpo,[test "x$LIBGETTEXTPO" = "x"],[GetText ${notice_platform}development files not found. Internationalization won't be fully supported.]) WINE_WARNING_WITH(gettextpo,[test "x$LIBGETTEXTPO" = "x"],[GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.])
fi fi
dnl **** Check for EsounD **** dnl **** Check for EsounD ****