configure: Generate rules to update po files when gettextpo is explicitly requested.
This commit is contained in:
parent
f4ec097c9b
commit
9159cfe0e6
|
@ -204,7 +204,7 @@ wine_fn_pot_rules ()
|
||||||
ac_dir=$[1]
|
ac_dir=$[1]
|
||||||
ac_flags=$[2]
|
ac_flags=$[2]
|
||||||
|
|
||||||
test "x$enable_maintainer_mode" = xyes || return
|
test "x$with_gettextpo" = xyes || return
|
||||||
|
|
||||||
if wine_fn_has_flag mc $ac_flags
|
if wine_fn_has_flag mc $ac_flags
|
||||||
then
|
then
|
||||||
|
|
|
@ -1475,7 +1475,7 @@ Optional Packages:
|
||||||
--without-fontconfig do not use fontconfig
|
--without-fontconfig do not use fontconfig
|
||||||
--without-freetype do not use the FreeType library
|
--without-freetype do not use the FreeType library
|
||||||
--without-gettext do not use gettext
|
--without-gettext do not use gettext
|
||||||
--without-gettextpo do not use the GetTextPO library
|
--with-gettextpo use the GetTextPO library to rebuild po files
|
||||||
--without-gphoto do not use gphoto (Digital Camera support)
|
--without-gphoto do not use gphoto (Digital Camera support)
|
||||||
--without-glu do not use the GLU library
|
--without-glu do not use the GLU library
|
||||||
--without-gnutls do not use GnuTLS (schannel support)
|
--without-gnutls do not use GnuTLS (schannel support)
|
||||||
|
@ -10549,11 +10549,11 @@ $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if test "x$LIBGETTEXTPO" = "x"; then :
|
test "x$with_gettextpo" != xyes || 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 (or too old). Internationalization won't be fully supported." ;;
|
x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
|
||||||
xno) ;;
|
xno) ;;
|
||||||
*) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
|
*) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
|
||||||
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
|
||||||
|
@ -14294,7 +14294,7 @@ wine_fn_pot_rules ()
|
||||||
ac_dir=$1
|
ac_dir=$1
|
||||||
ac_flags=$2
|
ac_flags=$2
|
||||||
|
|
||||||
test "x$enable_maintainer_mode" = xyes || return
|
test "x$with_gettextpo" = xyes || return
|
||||||
|
|
||||||
if wine_fn_has_flag mc $ac_flags
|
if wine_fn_has_flag mc $ac_flags
|
||||||
then
|
then
|
||||||
|
@ -15430,10 +15430,14 @@ then
|
||||||
\$(srcdir)/include/config.h.in: include/stamp-h.in
|
\$(srcdir)/include/config.h.in: include/stamp-h.in
|
||||||
\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
|
\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
|
||||||
cd \$(srcdir) && autoheader --warnings=all
|
cd \$(srcdir) && autoheader --warnings=all
|
||||||
@echo timestamp > \$@
|
@echo timestamp > \$@"
|
||||||
|
fi
|
||||||
|
|
||||||
ALL_POT_FILES =$ALL_POT_FILES
|
if test "x$with_gettextpo" = xyes
|
||||||
\$(LINGUAS:%=$srcdir/po/%.po): \$(srcdir)/po/wine.pot
|
then
|
||||||
|
test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
|
||||||
|
wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
|
||||||
|
\$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
|
||||||
msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
|
msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
|
||||||
\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
|
\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
|
||||||
msgcat -o \$@ \$(ALL_POT_FILES)"
|
msgcat -o \$@ \$(ALL_POT_FILES)"
|
||||||
|
|
16
configure.ac
16
configure.ac
|
@ -46,7 +46,7 @@ AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontcon
|
||||||
[if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi])
|
[if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi])
|
||||||
AC_ARG_WITH(freetype, AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
|
AC_ARG_WITH(freetype, AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
|
||||||
AC_ARG_WITH(gettext, AS_HELP_STRING([--without-gettext],[do not use gettext]))
|
AC_ARG_WITH(gettext, AS_HELP_STRING([--without-gettext],[do not use gettext]))
|
||||||
AC_ARG_WITH(gettextpo, AS_HELP_STRING([--without-gettextpo],[do not use the GetTextPO library]),
|
AC_ARG_WITH(gettextpo, AS_HELP_STRING([--with-gettextpo],[use the GetTextPO library to rebuild po files]),
|
||||||
[if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi])
|
[if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi])
|
||||||
AC_ARG_WITH(gphoto, AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
|
AC_ARG_WITH(gphoto, AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
|
||||||
AC_ARG_WITH(glu, AS_HELP_STRING([--without-glu],[do not use the GLU library]),
|
AC_ARG_WITH(glu, AS_HELP_STRING([--without-glu],[do not use the GLU library]),
|
||||||
|
@ -1440,7 +1440,8 @@ then
|
||||||
[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 (or too old). Internationalization won't be fully supported.])
|
test "x$with_gettextpo" != xyes || WINE_NOTICE_WITH(gettextpo,[test "x$LIBGETTEXTPO" = "x"],
|
||||||
|
[GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl **** Check for gstreamer ****
|
dnl **** Check for gstreamer ****
|
||||||
|
@ -3063,10 +3064,15 @@ then
|
||||||
\$(srcdir)/include/config.h.in: include/stamp-h.in
|
\$(srcdir)/include/config.h.in: include/stamp-h.in
|
||||||
\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
|
\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
|
||||||
cd \$(srcdir) && autoheader --warnings=all
|
cd \$(srcdir) && autoheader --warnings=all
|
||||||
@echo timestamp > \$[@]
|
@echo timestamp > \$[@]])
|
||||||
|
fi
|
||||||
|
|
||||||
ALL_POT_FILES =$ALL_POT_FILES
|
if test "x$with_gettextpo" = xyes
|
||||||
\$(LINGUAS:%=$srcdir/po/%.po): \$(srcdir)/po/wine.pot
|
then
|
||||||
|
test "$srcdir" = . || AC_MSG_ERROR([Rebuilding po files is not supported for out of tree builds.])
|
||||||
|
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
|
||||||
|
[ALL_POT_FILES =$ALL_POT_FILES
|
||||||
|
\$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
|
||||||
msgmerge -q \$[@] \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$[@].new && mv \$[@].new \$[@]
|
msgmerge -q \$[@] \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$[@].new && mv \$[@].new \$[@]
|
||||||
\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
|
\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
|
||||||
msgcat -o \$[@] \$(ALL_POT_FILES)])
|
msgcat -o \$[@] \$(ALL_POT_FILES)])
|
||||||
|
|
Loading…
Reference in New Issue