[FFmpeg-devel] [PATCH] configure: better test for mktemp

Mans Rullgard mans
Fri Jan 21 21:44:03 CET 2011


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: Mans Rullgard <mans at mansr.com>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 0f1c62d..76ea08d 100755
--- a/configure
+++ b/configure
@@ -1793,7 +1793,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(){
-- 
1.7.3.5




More information about the ffmpeg-devel mailing list