bpo-21536: Fix configure.ac for LIBPYTHON on Android/Cygwin (GH-13552)

Add also missing AC_MSG_RESULT for AC_MSG_CHECKING(MACHDEP).
This commit is contained in:
E. M. Bray 2019-05-24 18:39:39 +02:00 committed by Victor Stinner
parent bc66faccb8
commit b1fc417841
2 changed files with 9 additions and 6 deletions

View file

@ -411,6 +411,7 @@ then
'') MACHDEP="unknown";;
esac
fi
AC_MSG_RESULT("$MACHDEP")
AC_SUBST(_PYTHON_HOST_PLATFORM)
if test "$cross_compiling" = yes; then
@ -4622,10 +4623,10 @@ AC_MSG_RESULT($LDVERSION)
# On Android and Cygwin the shared libraries must be linked with libpython.
AC_SUBST(LIBPYTHON)
if test -z "$ANDROID_API_LEVEL" -o "$MACHDEP" != "cygwin"; then
LIBPYTHON=''
else
if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
else
LIBPYTHON=''
fi
dnl define LIBPL after ABIFLAGS and LDVERSION is defined.