While cross-compiling a gnulib testdir, I see this line in the
configure output:
../configure: line 12368: test: too many arguments
It comes from this line:
if test $gl_cv_func_chown_follows_symlink = no; then
This patch should fix it.
2019-09-08 Bruno Haible <[email protected]>
chown: Fix configure output (regression from 2019-03-23).
* m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
gl_cv_func_chown_follows_symlink variable.
diff --git a/m4/chown.m4 b/m4/chown.m4
index b798325..b693686 100644
--- a/m4/chown.m4
+++ b/m4/chown.m4
@@ -1,4 +1,4 @@
-# serial 32
+# serial 33
# Determine whether we need the chown wrapper.
dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2019 Free Software
@@ -80,9 +80,10 @@ AC_DEFUN_ONCE([gl_FUNC_CHOWN],
HAVE_CHOWN=0
else
dnl Some old systems treated chown like lchown.
- if test $gl_cv_func_chown_follows_symlink = no; then
- REPLACE_CHOWN=1
- fi
+ case "$gl_cv_func_chown_follows_symlink" in
+ *yes) ;;
+ *) REPLACE_CHOWN=1 ;;
+ esac
dnl Some old systems tried to use uid/gid -1 literally.
case "$ac_cv_func_chown_works" in