From 301ab19dd97deb30a073e93d3c8a969bb7f6966f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Fri, 2 Jul 2010 02:03:20 +0000 Subject: [PATCH] configure: improve GNU as checking Check for GNU assembler only when asm is enabled. Show a warning for ppc/altivec only, and fail on ARM. Originally committed as revision 23964 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/configure b/configure index a90ce14288..a20a573391 100755 --- a/configure +++ b/configure @@ -1411,6 +1411,7 @@ objformat="elf" ranlib="ranlib" strip_default="strip" yasmexe="yasm" +nogas=":" nm_opts='-g' @@ -2117,7 +2118,7 @@ case $target_os in ;; darwin) enable malloc_aligned - as="gas-preprocessor.pl $cc" + gas="gas-preprocessor.pl $cc" enabled ppc && add_asflags -force_cpusubtype_ALL SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress' strip="${strip} -x" @@ -2309,9 +2310,6 @@ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; EOF od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian -check_asm gnu_as '".macro m n\n\\n:.int 0\n.endm\nm x"' || - warn "GNU assembler not found, install gas-preprocessor" - if enabled alpha; then check_cflags -mieee @@ -2319,6 +2317,7 @@ if enabled alpha; then elif enabled arm; then check_cflags -marm + nogas=die check_ld <