From a75b7b0bd7d15075936cce6902742d1a495b506b Mon Sep 17 00:00:00 2001
From: Alexandre Oliva <aoliva@redhat.com>
Date: Fri, 18 May 2001 05:46:30 +0000
Subject: [PATCH] configure.target (ATOMICITYH): Actually use AIX-specific code
 on earlier versions of AIX 4.*.

* configure.target (ATOMICITYH): Actually use AIX-specific code on
earlier versions of AIX 4.*.

From-SVN: r42244
---
 libstdc++-v3/ChangeLog        | 5 +++++
 libstdc++-v3/configure.target | 8 ++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 22e0793c23d1..a20c64eb5f8b 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-18  Alexandre Oliva  <aoliva@redhat.com>
+
+	* configure.target (ATOMICITYH): Actually use AIX-specific code on
+	earlier versions of AIX 4.*.
+
 2001-05-18  Angela Marie Thomas <angela@cygnus.com>
 
         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-dg-test):  Set
diff --git a/libstdc++-v3/configure.target b/libstdc++-v3/configure.target
index c790e33ea9db..5e619d039f5d 100644
--- a/libstdc++-v3/configure.target
+++ b/libstdc++-v3/configure.target
@@ -105,8 +105,12 @@ esac
 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
 
 case "${target}" in
-   *-*-aix4.[3456789]* | *-*-aix[56789]*)
-     ATOMICITYH=$os_include_dir
+   *-*-aix[456789]*)
+     # We set os_include_dir to config/os/aix only on AIX 4.3 and
+     # newer, but config/os/aix/bits/atomicity.h works on earlier
+     # versions of AIX 4.*, so we explicitly duplicate the directory
+     # here, because os_include_dir.
+     ATOMICITYH=config/os/aix
      ;;
    *-*-aix*)
      ATOMICITYH=config/cpu/generic
-- 
GitLab