configure.in: Add AIX multithread support fragment.
authorDavid Edelsohn <edelsohn@gnu.org>
Tue, 19 Sep 2000 20:36:39 +0000 (20:36 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Tue, 19 Sep 2000 20:36:39 +0000 (16:36 -0400)
* configure.in: Add AIX multithread support fragment.
* config/aix.mt: Define _PTHREADS in MT_CFLAGS if -pthread
commandline option present.

From-SVN: r36543

libstdc++/ChangeLog
libstdc++/config/aix.mt [new file with mode: 0644]
libstdc++/configure.in

index b6d1b7ea5f8886fddd2689d8552aee740dd649db..5da8c11dfa999274978bbb88f89bbb86993da351 100644 (file)
@@ -1,3 +1,9 @@
+2000-09-19  David Edelsohn  <edelsohn@gnu.org>
+
+       * configure.in: Add AIX multithread support fragment.
+       * config/aix.mt: Define _PTHREADS in MT_CFLAGS if -pthread
+       commandline option present.
+
 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
 
        * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
@@ -67,7 +73,7 @@
 
        * Makefile.in: Change "pic" to depend on $(PICFLAG), not
        on $(enable_shared).
-       * aix.ml: Build AIX-style shared library.
+       * config/aix.ml: Build AIX-style shared library.
 
 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
 
diff --git a/libstdc++/config/aix.mt b/libstdc++/config/aix.mt
new file mode 100644 (file)
index 0000000..d24e14f
--- /dev/null
@@ -0,0 +1 @@
+MT_CFLAGS = `case "$(CXXFLAGS)" in *-pthread* ) echo -D_PTHREADS ;; esac`
index 993849f4957c0fbbb8dc421c9e5ecf0ef6ed4cb1..ac55a7583ce90a8a48c26fbed2ed5f8c3edfc4dd 100644 (file)
@@ -89,6 +89,8 @@ fi
 
 # Make sure the right flags are defined for multi-threading.
 case "${target}" in
+  *-*-aix*)    
+       frags="${frags} aix.mt" ;;
   *-*-linux*)
        case "x${enable_threads}" in
                xyes|xposix)    frags="${frags} linux.mt" ;;