[FFmpeg-devel] [PATCH 09/17] configure: fix mktemp test and fallback function

Mans Rullgard mans
Tue Jan 18 20:32:13 CET 2011


---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index fccb65b..183d3ca 100755
--- a/configure
+++ b/configure
@@ -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
 
-- 
1.7.3.5




More information about the ffmpeg-devel mailing list