Commit 3ccc3a56 by Alexandre Oliva Committed by Alexandre Oliva

configure.in (DEFAULT_LINKER): renamed from LD

	* configure.in (DEFAULT_LINKER): renamed from LD
	(DEFAULT_ASSEMBLER): renamed from AS; reverted Schwab's patch
	(gcc_cv_as): try $DEFAULT_ASSEMBLER before $AS
	* configure: rebuilt

From-SVN: r23497
parent 5daa7518
Mon Nov 2 07:52:28 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
* configure.in (DEFAULT_LINKER): renamed from LD
(DEFAULT_ASSEMBLER): renamed from AS; reverted Schwab's patch
(gcc_cv_as): try $DEFAULT_ASSEMBLER before $AS
* configure: rebuilt
Mon Nov 2 01:48:10 1998 Alexandre Oliva <oliva@dcc.unicamp.br> Mon Nov 2 01:48:10 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
* BUGS: fix the regexp for `more' to find the appropriate node. * BUGS: fix the regexp for `more' to find the appropriate node.
......
...@@ -93,14 +93,14 @@ gnu_ld_flag=no) ...@@ -93,14 +93,14 @@ gnu_ld_flag=no)
# With pre-defined ld # With pre-defined ld
AC_ARG_WITH(ld, AC_ARG_WITH(ld,
[ --with-ld arrange to use the specified ld (full pathname).], [ --with-ld arrange to use the specified ld (full pathname).],
LD="$with_ld") DEFAULT_LINKER="$with_ld")
if test x"${LD+set}" = x"set"; then if test x"${DEFAULT_LINKER+set}" = x"set"; then
if test ! -x "$LD"; then if test ! -x "$DEFAULT_LINKER"; then
AC_MSG_WARN([cannot execute: $LD: check --with-ld or env. var. LD]) AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
gnu_ld_flag=yes gnu_ld_flag=yes
fi fi
AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$LD") AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
fi fi
# With GNU as # With GNU as
...@@ -111,18 +111,15 @@ gas_flag=no) ...@@ -111,18 +111,15 @@ gas_flag=no)
AC_ARG_WITH(as, AC_ARG_WITH(as,
[ --with-as arrange to use the specified as (full pathname).], [ --with-as arrange to use the specified as (full pathname).],
AS="$with_as") DEFAULT_ASSEMBLER="$with_as")
# Ignore any non-absolute value which comes from ${GCC_FLAGS_TO_PASS}. if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
case $AS in if test ! -x "$DEFAULT_ASSEMBLER"; then
/*) AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
if test ! -x "$AS"; then elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; 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 gas_flag=yes
fi fi
AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$AS") AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
;; fi
esac
# With stabs # With stabs
AC_ARG_WITH(stabs, AC_ARG_WITH(stabs,
...@@ -292,22 +289,22 @@ AC_SUBST(stage1_warn_cflags) ...@@ -292,22 +289,22 @@ AC_SUBST(stage1_warn_cflags)
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_MSG_CHECKING([whether a default assembler was specified]) AC_MSG_CHECKING([whether a default assembler was specified])
if test x"${AS+set}" = x"set"; then if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
if test x"$with_gas" = x"no"; then if test x"$with_gas" = x"no"; then
AC_MSG_RESULT([yes ($AS)]) AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
else else
AC_MSG_RESULT([yes ($AS - GNU as)]) AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
fi fi
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi fi
AC_MSG_CHECKING([whether a default linker was specified]) AC_MSG_CHECKING([whether a default linker was specified])
if test x"${LD+set}" = x"set"; then if test x"${DEFAULT_LINKER+set}" = x"set"; then
if test x"$with_gnu_ld" = x"no"; then if test x"$with_gnu_ld" = x"no"; then
AC_MSG_RESULT([yes ($LD)]) AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
else else
AC_MSG_RESULT([yes ($LD - GNU ld)]) AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
fi fi
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
...@@ -3717,8 +3714,10 @@ AC_MSG_CHECKING(assembler alignment features) ...@@ -3717,8 +3714,10 @@ AC_MSG_CHECKING(assembler alignment features)
gcc_cv_as= gcc_cv_as=
gcc_cv_as_alignment_features= gcc_cv_as_alignment_features=
gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
if test -x "$AS"; then if test -x "$DEFAULT_ASSEMBLER"; then
gcc_cv_as=$AS gcc_cv_as="$DEFAULT_ASSEMBLER"
elif test -x "$AS"; then
gcc_cv_as="$AS"
elif test -x as$host_exeext; then elif test -x as$host_exeext; then
# Build using assembler in the current directory. # Build using assembler in the current directory.
gcc_cv_as=./as$host_exeext gcc_cv_as=./as$host_exeext
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment