Commit e154a394 by Alexandre Oliva Committed by Alexandre Oliva

configure.in (DEFAULT_LINKER, [...]): Use grep instead of test and sed to check…

configure.in (DEFAULT_LINKER, [...]): Use grep instead of test and sed to check whether they're GNU programs.

* configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER): Use grep
instead of test and sed to check whether they're GNU programs.
* configure: Rebuilt.

From-SVN: r26158
parent 965c3f43
Sat Apr 3 19:21:05 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
* configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER): Use grep
instead of test and sed to check whether they're GNU programs.
* configure: Rebuilt.
Sat Apr 3 17:57:35 1999 Alexandre Oliva <oliva@dcc.unicamp.br> Sat Apr 3 17:57:35 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
* Makefile.in (install-headers-tar, install-headers-cpio): avoid * Makefile.in (install-headers-tar, install-headers-cpio): avoid
......
...@@ -649,7 +649,7 @@ fi ...@@ -649,7 +649,7 @@ fi
if test x"${DEFAULT_LINKER+set}" = x"set"; then if test x"${DEFAULT_LINKER+set}" = x"set"; then
if test ! -x "$DEFAULT_LINKER"; then if test ! -x "$DEFAULT_LINKER"; then
echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
gnu_ld_flag=yes gnu_ld_flag=yes
fi fi
cat >> confdefs.h <<EOF cat >> confdefs.h <<EOF
...@@ -677,7 +677,7 @@ fi ...@@ -677,7 +677,7 @@ fi
if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
if test ! -x "$DEFAULT_ASSEMBLER"; then if test ! -x "$DEFAULT_ASSEMBLER"; then
echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
gas_flag=yes gas_flag=yes
fi fi
cat >> confdefs.h <<EOF cat >> confdefs.h <<EOF
...@@ -1248,7 +1248,7 @@ fi ...@@ -1248,7 +1248,7 @@ fi
echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
echo "configure:1250: checking whether a default assembler was specified" >&5 echo "configure:1250: checking whether a default assembler was specified" >&5
if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
if test x"$with_gas" = x"no"; then if test x"$gas_flag" = x"no"; then
echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
else else
echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
...@@ -1260,7 +1260,7 @@ fi ...@@ -1260,7 +1260,7 @@ fi
echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
echo "configure:1262: checking whether a default linker was specified" >&5 echo "configure:1262: checking whether a default linker was specified" >&5
if test x"${DEFAULT_LINKER+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"$gnu_ld_flag" = x"no"; then
echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
else else
echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
......
...@@ -98,7 +98,7 @@ DEFAULT_LINKER="$with_ld") ...@@ -98,7 +98,7 @@ DEFAULT_LINKER="$with_ld")
if test x"${DEFAULT_LINKER+set}" = x"set"; then if test x"${DEFAULT_LINKER+set}" = x"set"; then
if test ! -x "$DEFAULT_LINKER"; then if test ! -x "$DEFAULT_LINKER"; then
AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER]) AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
gnu_ld_flag=yes gnu_ld_flag=yes
fi fi
AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER") AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
...@@ -116,7 +116,7 @@ DEFAULT_ASSEMBLER="$with_as") ...@@ -116,7 +116,7 @@ DEFAULT_ASSEMBLER="$with_as")
if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
if test ! -x "$DEFAULT_ASSEMBLER"; then if test ! -x "$DEFAULT_ASSEMBLER"; then
AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER]) AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
gas_flag=yes gas_flag=yes
fi fi
AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER") AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
...@@ -289,7 +289,7 @@ AC_PROG_MAKE_SET ...@@ -289,7 +289,7 @@ 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"${DEFAULT_ASSEMBLER+set}" = x"set"; then if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
if test x"$with_gas" = x"no"; then if test x"$gas_flag" = x"no"; then
AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)]) AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
else else
AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)]) AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
...@@ -300,7 +300,7 @@ fi ...@@ -300,7 +300,7 @@ fi
AC_MSG_CHECKING([whether a default linker was specified]) AC_MSG_CHECKING([whether a default linker was specified])
if test x"${DEFAULT_LINKER+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"$gnu_ld_flag" = x"no"; then
AC_MSG_RESULT([yes ($DEFAULT_LINKER)]) AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
else else
AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)]) AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
......
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