]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Clean up the diff -u test a little.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 26 Feb 2009 21:25:50 +0000 (21:25 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 26 Feb 2009 21:25:50 +0000 (21:25 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9279

configure.in

index ed8fd3fe343c94bd91bff99345dc90d82814262c..a3dcd838f11621d3b1bfb9d662de4640ff530264 100644 (file)
@@ -121,14 +121,16 @@ AC_SUBST(DIFF)
 
 # Comparing two identical files results in 0, unless -u isn't supported (as
 # it's not on AIX).
-touch tmp-xxx;
-if diff -u tmp-xxx tmp-xxx ; then
+tmpfile="tmp-xxx-yyy-zzz"
+touch $tmpfile;
+if diff -u $tmpfile $tmpfile ; then
     AC_MSG_RESULT([yes])
     DIFF="diff -u"
 else
     AC_MSG_RESULT([no])
     DIFF="diff"
 fi
+rm $tmpfile
 
 
 # We don't want gcc < 3.0