configure: support response files check is incorrect
In b53a9086 we started using printf "-o\nconftest\ncontest.o\n"
instead of printf '%q\n'
to not depend on a bash extension which I think wasn't available on OpenBSD.
However, printf "-o\nconftest\ncontest.o\n"
fails with -bash: printf: -o: invalid option
because -o is parsed as a flag to printf (this is visible in the output of configure), so we're passing an empty response file args.txt
.
I'm not sure what the consequences on the correct configuration of support for response files are, since the file is empty. But it's certainly not as robust as it should.
I think the best fix is to pass the args after --
to printf, so
printf -- "-o\nconftest\ncontest.o\n"
Fix incoming