aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukiame <fukiame@proton.me>2026-10-03 00:30:43 +0700
committerfukiame <fukiame@proton.me>2026-10-03 23:14:30 +0700
commit8c1c305d00e00516f58010b89e758d7016c21e76 (patch)
treee065ffd5f2ade31281c759b93eee231b21324914
parent39fe36f8846f990d61c6c2dbef47d68e35096f19 (diff)
downloadslcl-8c1c305d00e00516f58010b89e758d7016c21e76.tar.gz
configure: abide by TMPDIR if already set
./configure: 149: cannot create /tmp/Makefile.slcl: Permission denied Signed-off-by: fukiame <fukiame@proton.me>
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index c967734..73c436d 100755
--- a/configure
+++ b/configure
@@ -142,7 +142,8 @@ cleanup()
rm -f $F
}
-F=/tmp/Makefile.slcl
+[ -n "$TMPDIR" ] || TMPDIR=/tmp
+F="$TMPDIR"/Makefile.slcl
trap cleanup EXIT
cat <<EOF > $F