vcpkg/ports/gettext/config-step-order.patch

77 lines
2.4 KiB
Diff
Raw Normal View History

2023-12-19 05:09:44 +08:00
diff --git a/gettext-runtime/configure b/gettext-runtime/configure
2023-12-23 16:45:21 +08:00
index 2a376c6..a984774 100755
2023-12-19 05:09:44 +08:00
--- a/gettext-runtime/configure
+++ b/gettext-runtime/configure
@@ -22346,6 +22346,12 @@ printf "%s\n" "$acl_cv_libdirstems" >&6; }
+### Configuration step reordering
+### Similar to AM_GNU_GETTEXT(external,...), cf. gettext-runtime/m4/gettext.m4
2023-12-23 16:45:21 +08:00
+### Pull (include_next and) iconv lookup before actual GNU gettext lookup.
+for configuration_step in gettext-independent gettext-main ; do
2023-12-19 05:09:44 +08:00
+case "$configuration_step" in
+gettext-main)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
2023-12-23 16:45:21 +08:00
@@ -23288,6 +23294,9 @@ printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
2023-12-19 05:09:44 +08:00
+### Configuration step reordering
+;;
2023-12-23 16:45:21 +08:00
+gettext-independent)
# Check whether --enable-cross-guesses was given.
if test ${enable_cross_guesses+y}
then :
2023-12-19 05:09:44 +08:00
@@ -30464,6 +30473,10 @@ printf "%s\n" "$gl_cv_next_iconv_h" >&6; }
gl_next_as_first_directive=$gl_cv_next_iconv_h
fi
NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
+### Configuration step reordering
+;;
+esac
+done
diff --git a/gettext-tools/configure b/gettext-tools/configure
2023-12-23 16:45:21 +08:00
index 5ce6cf1..ee64b69 100755
2023-12-19 05:09:44 +08:00
--- a/gettext-tools/configure
+++ b/gettext-tools/configure
@@ -25735,6 +25735,12 @@ printf "%s\n" "$acl_cv_libdirstems" >&6; }
+### Configuration step reordering
+### Similar to AM_GNU_GETTEXT(external,...), cf. gettext-runtime/m4/gettext.m4
2023-12-23 16:45:21 +08:00
+### Pull (include_next and) iconv lookup before actual GNU gettext lookup.
+for configuration_step in gettext-independent gettext-main; do
2023-12-19 05:09:44 +08:00
+case "$configuration_step" in
+gettext-main)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
2023-12-23 16:45:21 +08:00
@@ -27588,6 +27594,9 @@ fi
2023-12-19 05:09:44 +08:00
+### Configuration step reordering
+;;
2023-12-23 16:45:21 +08:00
+gettext-independent)
# Check whether --enable-cross-guesses was given.
if test ${enable_cross_guesses+y}
then :
2023-12-19 05:09:44 +08:00
@@ -38458,6 +38467,10 @@ printf "%s\n" "$gl_cv_next_iconv_h" >&6; }
gl_next_as_first_directive=$gl_cv_next_iconv_h
fi
NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
+### Configuration step reordering
+;;
+esac
+done