configure: fix --tempprefix option
authorJames Almer <jamrial@gmail.com>
Sun, 21 May 2017 00:29:58 +0000 (21:29 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 21 May 2017 00:29:58 +0000 (21:29 -0300)
It was broken in 091c9860559e4d33179747c5d651bc9e31bd76eb

configure

index e6aba0d..f8eb441 100755 (executable)
--- a/configure
+++ b/configure
@@ -3765,7 +3765,9 @@ HOSTEXESUF=$(exesuf $host_os)
 
 if [ -n "$tempprefix" ] ; then
     mktemp(){
-        echo $tempprefix.${HOSTNAME}.${UID}
+        tmpname="$tempprefix.${HOSTNAME}.${UID}"
+        echo "$tmpname"
+        mkdir "$tmpname"
     }
 elif ! check_cmd mktemp -u XXXXXX; then
     # simple replacement for missing mktemp