configure --with-as broken

Andreas Schwab schwab@issan.informatik.uni-dortmund.de
Mon Oct 26 02:24:00 GMT 1998


The test in configure that checks the value of $AS should be skipped when
it is not an absolute file name, because $AS is always set due to
$GCC_FLAGS_TO_PASS in the toplevel Makefile.


1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* configure.in: Ignore non-absolute value in $AS.

--- egcs-2.92/gcc/configure.in.~2~	Thu Oct 22 22:54:15 1998
+++ egcs-2.92/gcc/configure.in	Sat Oct 24 09:34:43 1998
@@ -112,14 +112,17 @@
 AC_ARG_WITH(as,
 [  --with-as               arrange to use the specified as (full pathname).],
 AS="$with_as")
-if test x"${AS+set}" = x"set"; then
+# Ignore any non-absolute value which comes from ${GCC_FLAGS_TO_PASS}.
+case $AS in
+/*)
   if test ! -x "$AS"; then
     AC_MSG_WARN([cannot execute: $AS: check --with-as or env. var. AS])
   elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
     gas_flag=yes
   fi
   AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$AS")
-fi
+  ;;
+esac
 
 # With stabs
 AC_ARG_WITH(stabs,

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org



More information about the Gcc mailing list