--- ./configure.orig	2023-09-20 04:55:54.607288918 +0000
+++ ./configure	2023-09-20 05:00:19.240061693 +0000
@@ -10764,6 +10764,13 @@
 	if test "$found_shlib" != 1; then
 		for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
 		do
+			#ifdef _AIX
+				if test -e "$d/lib${ldlibrary}.a"; then
+					python_libdir="$d"
+					found_shlib=1
+					break 2
+				fi
+			#endif
 			for f in "$d/lib${ldlibrary}.so."* ; do
 				if test -e "$f"; then
 					python_libdir="$d"
