]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Replace obsolete shell syntax in configure.ac
authorJonathan Wakely <jwakely@redhat.com>
Thu, 18 May 2023 17:21:50 +0000 (18:21 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 31 May 2023 12:17:45 +0000 (13:17 +0100)
The current POSIX standard says that the -a and -o operators to the
'test' utility are obsolete, and the shell operators && and || should be
used instead.

libstdc++-v3/ChangeLog:

* configure.ac: Replace use of -o operator for test.
* configure: Regenerate.

libstdc++-v3/configure
libstdc++-v3/configure.ac

index 167aabd8fc59079189c6b43bdbcda924cac185da..4db8a2840832f65f96262eb7ea17040286f79b4d 100755 (executable)
@@ -3298,7 +3298,7 @@ if test "$build" != "$host"; then
       *-*-darwin*,*-*-darwin*)
        hostos=`echo $host | sed 's/.*-darwin/darwin/'`
        targetos=`echo $target | sed 's/.*-darwin/darwin/'`
-       if test $hostos = $targetos -o $targetos = darwin ; then
+       if test $hostos = $targetos || test $targetos = darwin ; then
          GLIBCXX_IS_NATIVE=true
        fi
        ;;
index df01f58bd83d0e3c5fc8d35d80b08e3b41c40d91..0abe54e7b9a218e82179e18af58c01b7b7320cc1 100644 (file)
@@ -45,7 +45,7 @@ if test "$build" != "$host"; then
       *-*-darwin*,*-*-darwin*)
        hostos=`echo $host | sed 's/.*-darwin/darwin/'`
        targetos=`echo $target | sed 's/.*-darwin/darwin/'`
-       if test $hostos = $targetos -o $targetos = darwin ; then
+       if test $hostos = $targetos || test $targetos = darwin ; then
          GLIBCXX_IS_NATIVE=true
        fi
        ;;