--- ./Makefile.pre.in_orig	2015-05-19 12:37:50.000000000 -0500
+++ Makefile.pre.in	2015-05-20 00:30:44.000000000 -0500
@@ -1109,7 +1109,7 @@
 		$(INSTALL_DATA) Modules/python.exp		\
 				$(DESTDIR)$(LIBPL)/python.exp;		\
 		echo; echo "$(LIBPL)/python.exp";		\
-		$(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix	\
+		$(INSTALL_SCRIPT) Modules/makexp_aix	\
 				$(DESTDIR)$(LIBPL)/makexp_aix;		\
 		echo "$(LIBPL)/makexp_aix";			\
 		$(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix	\
--- ./configure_orig	2015-05-20 00:31:54.000000000 -0500
+++ ./configure	2015-05-20 00:33:00.000000000 -0500
@@ -8166,7 +8166,7 @@
 then
 	case $ac_sys_system/$ac_sys_release in
 	AIX*)
-		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
+		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
 		;;
 	BeOS*)
--- ./Modules/ld_so_aix.in_orig	2015-05-20 00:33:16.000000000 -0500
+++ ./Modules/ld_so_aix.in	2015-05-20 00:33:59.000000000 -0500
@@ -69,7 +69,10 @@
   echo $usage; exit 2
 fi
 
-makexp=`dirname $0`/makexp_aix
+makexp=`dirname $0`/@srcdir@/makexp_aix
+if test ! -e "$makexp" ; then
+  makeexp=makexp_aix
+fi
 
 # Check for existence of compiler.
 CC=$1; shift
