From: Mans Rullgard Date: Wed, 6 Oct 2010 23:44:52 +0000 (+0100) Subject: configure: fix mktemp test and fallback function X-Git-Tag: v0.7b1~916 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09a5c2452cab8931f70ecb51705114682c962f98;p=platform%2Fupstream%2Flibav.git configure: fix mktemp test and fallback function --- diff --git a/configure b/configure index 123de51..895b855 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