Commit 727a20cb authored by Mans Rullgard's avatar Mans Rullgard Committed by Michael Niedermayer

configure: better test for mktemp

Some variants of mktemp require a template, so provide one when
checking for the command.  We already supply a template in the
subsequent uses of mktemp.

Thanks to Michael Kostylev.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
(cherry picked from commit a210bce2)
parent 3df02975
......@@ -1794,7 +1794,7 @@ HOSTEXESUF=$(exesuf $host_os)
: ${TMPDIR:=$TMP}
: ${TMPDIR:=/tmp}
if ! check_cmd mktemp -u; then
if ! check_cmd mktemp -u XXXXXX; then
# simple replacement for missing mktemp
# NOT SAFE FOR GENERAL USE
mktemp(){
......
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