Followup for bug 648980 - mktemp doesn't exist on Windows. r=glandium
authorJoshua Cranmer <Pidgeot18@gmail.com>
Thu, 21 Mar 2013 15:10:05 -0500
changeset 125837 4504520f7f244f5eba3d17a63c995ed27a263b67
parent 125836 af59a6b444f04362affc4bca41be60d26bdc5e6c
child 125838 dee55e5465e51cd14643492dbb3867bfc55c85ac
push id24464
push useremorley@mozilla.com
push dateFri, 22 Mar 2013 14:00:12 +0000
treeherdermozilla-central@3825fdbcec62 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs648980
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Followup for bug 648980 - mktemp doesn't exist on Windows. r=glandium
configure.in
--- a/configure.in
+++ b/configure.in
@@ -4388,17 +4388,17 @@ fi
 if test -f "${srcdir}/${MOZ_BUILD_APP}/configure.in" ; then
   do_output_subdirs() {
     if test -n "$_subconfigure_subdirs"; then
       AC_MSG_ERROR([Cannot specify more than one sub-sub-configure])
      fi
     _subconfigure_subdir="$1"
     _subconfigure_config_args="$ac_configure_args"
   }
-  tmpscript=`mktemp -t subscript.XXXXXX` || exit 1
+  tmpscript=`python -c 'import os, tempfile; print tempfile.mktemp(prefix="subscript.").replace(os.sep, "/")'` || exit 1
   m4 "${srcdir}/build/autoconf/subconfigure.m4" \
      "${srcdir}/build/autoconf/altoptions.m4" \
      "${srcdir}/${MOZ_BUILD_APP}/configure.in" > $tmpscript
   . $tmpscript
   rm -f $tmpscript
 fi
 
 # Allow someone to change MOZ_APP_NAME and MOZ_APP_BASENAME in mozconfig