diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-05-18 18:21:50 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-05-31 13:17:45 +0100 |
commit | 0ed5259ccbd66d190365ab33b05ad5879263a623 (patch) | |
tree | 95af32a5808a461453ccb1ee669cd58e5a0170ab /libstdc++-v3/configure.ac | |
parent | b960c253e988c68ed3f3829125bc267bdf169356 (diff) | |
download | gcc-0ed5259ccbd66d190365ab33b05ad5879263a623.zip gcc-0ed5259ccbd66d190365ab33b05ad5879263a623.tar.gz gcc-0ed5259ccbd66d190365ab33b05ad5879263a623.tar.bz2 |
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.
Diffstat (limited to 'libstdc++-v3/configure.ac')
-rw-r--r-- | libstdc++-v3/configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index df01f58..0abe54e 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 ;; |