Move all knowledge that $(MAINOBJ) is built in the Modules/ directory
into Makefile.pre.in; the configure script will only determine the basename
of the file.
This fixes installation of a Python built using C++, reported by Greg
Wilson.
diff --git a/configure.in b/configure.in
index bb439c7..92a5b46 100644
--- a/configure.in
+++ b/configure.in
@@ -128,7 +128,7 @@
AC_SUBST(CXX)
AC_SUBST(MAINOBJ)
-MAINOBJ=Modules/python.o
+MAINOBJ=python.o
AC_MSG_CHECKING(for --with-cxx=<compiler>)
AC_ARG_WITH(cxx, [ --with-cxx=<compiler> enable C++ support],[
check_cxx=no
@@ -136,7 +136,7 @@
no) CXX=
with_cxx=no;;
*) CXX=$withval
- MAINOBJ=Modules/ccpython.o
+ MAINOBJ=ccpython.o
with_cxx=$withval;;
esac], [
with_cxx=no