From: Jonathan Wakely Date: Thu, 18 May 2023 17:21:50 +0000 (+0100) Subject: libstdc++: Replace obsolete shell syntax in configure.ac X-Git-Tag: basepoints/gcc-15~8704 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ed5259ccbd66d190365ab33b05ad5879263a623;p=thirdparty%2Fgcc.git libstdc++: Replace obsolete shell syntax in configure.ac 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. --- diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 167aabd8fc59..4db8a2840832 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -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 ;; diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index df01f58bd83d..0abe54e7b9a2 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -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 ;;