From 8a2574e09eedb0fd348ca2e914c1d2d4d53cfbff Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Wed, 31 Jul 1996 22:45:54 +0000
Subject: Changes for AIX; also remove all references to _REENTRANT.

---
 configure.in | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/configure.in b/configure.in
index dde8520..226ab68 100644
--- a/configure.in
+++ b/configure.in
@@ -29,7 +29,11 @@ then
 		MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
 	else
 		ac_sys_system=`uname -s`
-		ac_sys_release=`uname -r`
+		if test "$ac_sys_system" = "AIX" ; then
+			ac_sys_release=`uname -v`
+		else
+			ac_sys_release=`uname -r`
+		fi
 		ac_md_system=`echo $ac_sys_system |
 				   tr -d '[/ ]' | tr '[[A-Z]]' '[[a-z]]'`
 		ac_md_release=`echo $ac_sys_release |
@@ -148,6 +152,7 @@ AC_MSG_CHECKING(LDSHARED)
 if test -z "$LDSHARED"
 then
 	case $ac_sys_system/$ac_sys_release in
+	AIX*) LDSHARED="ld_so_aix";;
 	IRIX*) LDSHARED="ld -shared";;
 	SunOS/4*) LDSHARED="ld";;
 	SunOS/5*) LDSHARED="ld -G";;
@@ -182,6 +187,7 @@ AC_MSG_CHECKING(LINKFORSHARED)
 if test -z "$LINKFORSHARED"
 then
 	case $ac_sys_system in
+	AIX*)	LINKFORSHARED="-Wl,-bE:python.exp";;
 	hp*|HP*) LINKFORSHARED="-Wl,-E";;
 	Linux*) LINKFORSHARED="-rdynamic";;
 	esac
@@ -246,12 +252,10 @@ AC_DEFINE(C_THREADS)
 LIBOBJS="$LIBOBJS thread.o"],[
 AC_CHECK_LIB(pthreads, pthread_create, [AC_DEFINE(WITH_THREAD)
 AC_DEFINE(_POSIX_THREADS)
-AC_DEFINE(_REENTRANT)
 LIBS="$LIBS -lpthreads"
 LIBOBJS="$LIBOBJS thread.o"], [
 AC_CHECK_LIB(pthread, pthread_create, [AC_DEFINE(WITH_THREAD)
 AC_DEFINE(_POSIX_THREADS)
-AC_DEFINE(_REENTRANT)
 LIBS="$LIBS -lpthread"
 LIBOBJS="$LIBOBJS thread.o"])
 ])])
-- 
cgit v0.12

