Commits

Guido van Rossum  committed 8671642

Changes for AIX; also remove all references to _REENTRANT.

  • Participants
  • Parent commits ac1d5ab
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File configure.in

 		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 |
 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";;
 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
 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"])
 ])])