On 03/07/2012 11:24 AM, Eric Blake wrote:
On 03/07/2012 09:49 AM, Peter O'Gorman wrote:
noexec seems to mean warn a lot.
Please try with ac_cv_sh_n_works=no set and exported in the environment
before building and testing autoconf. I think ksh93 should be removed
from the list of shells with working sh -n.
Can we boil things down to a simple test case of the use of ksh -n that
causes all these test failures? If so, then the real fix would be to
fix the .m4 file that sets ac_cv_sh_n_works in the first place.
I'd like confirmation from Martin that this is the issue first :-)
If it is then the patch is trivial:
--- a/configure.ac
+++ b/configure.ac
@@ -60,8 +60,7 @@ AC_CACHE_CHECK([whether /bin/sh -n is known to work],
[ac_cv_s
/bin/sh -c '
test -n "${BASH_VERSION+set}" || # Bash
test -n "${KSH_VERSION+set}" || # pdksh
- test -n "${ZSH_VERSION+set}" || # zsh
- test -n "${.sh.version}" # ksh93; put this last since its syntax
is dodgy
+ test -n "${ZSH_VERSION+set}" # zsh
'
) 2>/dev/null
then ac_cv_sh_n_works=yes
Peter