configure: use ./src instead of src

Fix “do "src/doc/t2h.pm" failed, '.' is no longer in @INC; did you mean do "./src/doc/t2h.pm"?”
when we have such a symlink.
This commit is contained in:
Nicolas George
2026-04-25 17:25:28 +02:00
parent 45fe315cf0
commit 0b08d82425
Vendored
+2 -2
View File
@@ -4538,7 +4538,7 @@ mkdir -p ffbuild
if test -f configure; then
source_path=.
elif test -f src/configure; then
source_path=src
source_path=./src
else
source_path=$(cd $(dirname "$0"); pwd)
case "$source_path" in
@@ -6377,7 +6377,7 @@ link_name=$(mktemp -u $TMPDIR/name_XXXXXXXX)
mkdir "$link_dest"
$ln_s "$link_dest" "$link_name"
touch "$link_dest/test_file"
if [ "$source_path" != "." ] && [ "$source_path" != "src" ] && ([ ! -d src ] || [ -L src ]) && [ -e "$link_name/test_file" ]; then
if [ "$source_path" != "." ] && [ "$source_path" != "./src" ] && ([ ! -d src ] || [ -L src ]) && [ -e "$link_name/test_file" ]; then
# create link to source path
[ -e src ] && rm src
$ln_s "$source_path" src