configure.in (CHILL_FOR_TARGET, [...]): Use slightly more portable shell script to...
authorGeoff Keating <geoffk@cygnus.com>
Fri, 11 Aug 2000 22:02:04 +0000 (22:02 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 11 Aug 2000 22:02:04 +0000 (22:02 +0000)
* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Use slightly more
portable shell script to convert blanks to commas in $LANGUAGES.

From-SVN: r35645

ChangeLog
configure.in

index 117bd44e65c43814aba239f3b5243342596a2376..5ee21875049931b0242907dd8779e5e48ddab090 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-11  Geoffrey Keating  <geoffk@cygnus.com>
+
+       * configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Use slightly more
+       portable shell script to convert blanks to commas in $LANGUAGES.
+
 2000-08-11  Alexandre Oliva  <aoliva@redhat.com>
 
        * config-ml.in (CC, CXX): Don't introduce a leading space.
index 69a5f0869ac19b3c45ed546b333c58bfd2c4cedb..e119076b5672c78ef2f366cbdde2c728948553a9 100644 (file)
@@ -1298,7 +1298,13 @@ esac
 if test "x${CHILL_FOR_TARGET+set}" = xset; then
   :
 elif test -d ${topsrcdir}/gcc &&
-   echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr ' ' ','`}," |
+   # This used to be
+   # echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr ' ' ','`},"
+   # but that didn't work on the AIX 4.3.3 /bin/sh.
+   # echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr " " ","`},"
+   # doesn't work on the Solaris 5.6 /bin/sh.
+   # This works on both:
+   echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr \  ,`}," |
    grep ',CHILL,' > /dev/null ; then
   CHILL_FOR_TARGET='$$r/gcc/xgcc -L$$r/gcc/ch/runtime/'
 elif test "$host" = "$target"; then
@@ -1314,7 +1320,13 @@ esac
 if test "x${CXX_FOR_TARGET+set}" = xset; then
   :
 elif test -d ${topsrcdir}/gcc &&
-   echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr ' ' ','`}," |
+   # This used to be
+   # echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr ' ' ','`},"
+   # but that didn't work on the AIX 4.3.3 /bin/sh.
+   # echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr " " ","`},"
+   # doesn't work on the Solaris 5.6 /bin/sh.
+   # This works on both:
+   echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr \  ,`}," |
    grep ',c[+][+],' > /dev/null ; then
   CXX_FOR_TARGET='$$r/gcc/g++ -nostdinc++ '$libstdcxx_flags
 elif test "$host" = "$target"; then