Commit 09a5c245 authored by Mans Rullgard's avatar Mans Rullgard

configure: fix mktemp test and fallback function

parent 44caaa56
......@@ -1792,11 +1792,11 @@ HOSTEXESUF=$(exesuf $host_os)
: ${TMPDIR:=$TMP}
: ${TMPDIR:=/tmp}
if ! check_cmd type mktemp; then
if ! check_cmd mktemp -u; then
# simple replacement for missing mktemp
# NOT SAFE FOR GENERAL USE
mktemp(){
echo "${2%XXX*}.${HOSTNAME}.${UID}.$$"
echo "${2%%XXX*}.${HOSTNAME}.${UID}.$$"
}
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment