From fb9fd1183057486023b032279f3cac59e901d0f0 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 28 Feb 2012 10:48:16 +0100 Subject: [PATCH] Bug 731151 - Avoid creating (and leaving around) an a.out during configure. r=khuey --- configure.in | 3 ++- js/src/configure.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 755fbf1b03b5..091841e731d9 100644 --- a/configure.in +++ b/configure.in @@ -628,9 +628,10 @@ if test "$GXX" = "yes"; then GNU_CXX=1 CXX_VERSION=`$CXX -v 2>&1 | grep 'gcc version'` fi -if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then +if test "`echo | $AS -o conftest.out -v 2>&1 | grep -c GNU`" != "0"; then GNU_AS=1 fi +rm -f conftest.out if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then GNU_LD=1 fi diff --git a/js/src/configure.in b/js/src/configure.in index 82693952662e..8f4fd37850f7 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -616,9 +616,10 @@ if test "$GXX" = "yes"; then GNU_CXX=1 CXX_VERSION=`$CXX -v 2>&1 | grep 'gcc version'` fi -if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then +if test "`echo | $AS -o conftest.out -v 2>&1 | grep -c GNU`" != "0"; then GNU_AS=1 fi +rm -f conftest.out if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then GNU_LD=1 fi