File dbus-1.14.4-add-enable-relocation-force.patch of Package mingw64-dbus-1
--- dbus-1.14.4/configure.ac.orig 2023-01-19 00:42:59.359801336 +0100
+++ dbus-1.14.4/configure.ac 2023-01-19 00:45:40.420672983 +0100
@@ -1506,12 +1506,13 @@
AC_DEFINE_UNQUOTED(DBUS_LIBEXECDIR,"$DBUS_LIBEXECDIR", [Directory for installing the libexec binaries])
AC_ARG_ENABLE([relocation],
- [AS_HELP_STRING([--enable-relocation[=yes/no/auto]],
+ [AS_HELP_STRING([--enable-relocation[=yes/no/auto/force]],
[Make pkg-config metadata relocatable [default=auto]])],
[], [enable_relocation=auto])
can_relocate=yes
+AS_IF([test "x$enable_relocation" != xforce], [
AS_CASE(["${exec_prefix}"],
['NONE'|'${prefix}'|"${prefix}"],
[:],
@@ -1522,6 +1523,7 @@
AS_IF([test "x$enable_relocation" = xyes],
[AC_MSG_ERROR([Relocatable pkg-config metadata requires --exec-prefix='\${prefix}', not ${exec_prefix}])])
])
+])
AS_CASE(["${libdir}"],
['${prefix}/lib'|'${prefix}/lib64'|'${exec_prefix}/lib'|'${exec_prefix}/lib64'|"${prefix}/lib"|"${exec_prefix}/lib"|"${prefix}/lib64"|"${exec_prefix}/lib64"],
@@ -1530,7 +1532,7 @@
[
can_relocate=no
# If the user said --enable-relocation but we can't do it, error out
- AS_IF([test "x$enable_relocation" = xyes],
+ AS_IF([test "x$enable_relocation" = xyes || test "x$enable_relocation" = xforce],
[AC_MSG_ERROR([Relocatable pkg-config metadata requires default libdir, not ${libdir}])])
])