Commit 5dff3c4b68 made rpm use autoreconfHook, so the patch that we are making to `configure` gets lost when the file is regenerated. To fix this, just patch the equivalent string in the `configure.ac` file instead. Fixes #15287
5dff3c4b68