From 5ce3272e513e0dafedcc40f121e2d71bef3a3688 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 6 Dec 2021 17:53:37 +0900 Subject: autogen.sh: Copy auxiliary files instead of symlinks with `-i` When accessing from containers, symbolic links may not be able to reach outer file systems. --- autogen.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 44a1922cb0..f8cdf3c0c1 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,4 +6,12 @@ case "$0" in *) srcdir="";; esac -exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"} +symlink='--install --symlink' +case " $* " in + *" -i "*|*" --install "*) + # reset to copy missing standard auxiliary files, instead of symlinks + symlink= + ;; +esac + +exec ${AUTORECONF:-autoreconf} ${symlink} "$@" ${srcdir:+"$srcdir"} -- cgit v1.2.3