From 4f299ffe5f26a72289735e40e9b7c945ec29e948 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Fri, 27 Sep 2024 22:27:57 +0900 Subject: [PATCH] autogen.sh: Use $PATH_SEPARATOR as a path separator of ACLOCAL_PATH A path separator of ACLOCAL_PATH on OS/2 is ';' not ':'. So use $PATH_SEPARATOR instead of hard-coded ':'. Signed-off-by: KO Myung-Hun --- autogen.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 0c892cc2..778a98ce 100755 --- a/autogen.sh +++ b/autogen.sh @@ -46,7 +46,14 @@ fi mv -f autoconf/aclocal.m4 autoconf/aclocal.m4.old mkdir -p autoconf/m4.old autoconf/m4 mv -f autoconf/m4/*.m4 autoconf/m4.old/ 2>/dev/null || true -ACLOCAL_PATH="${ACLOCAL_PATH}${ACLOCAL_PATH:+:}`pwd`/autoconf/m4.old" +if ${PATH_SEPARATOR+false} :; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi +ACLOCAL_PATH="${ACLOCAL_PATH}${ACLOCAL_PATH:+${PATH_SEPARATOR}}`pwd`/autoconf/m4.old" export ACLOCAL_PATH "$ACLOCAL" --install --output=autoconf/aclocal.m4 -I autoconf/m4 if test ! -f autoconf/aclocal.m4; then