File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -3292,6 +3292,8 @@ then
3292
3292
' ' ) MACHDEP=" unknown" ;;
3293
3293
esac
3294
3294
fi
3295
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: \" $MACHDEP \" " >&5
3296
+ $as_echo " \" $MACHDEP \" " >&6 ; }
3295
3297
3296
3298
3297
3299
if test " $cross_compiling " = yes; then
@@ -15131,10 +15133,10 @@ $as_echo "$LDVERSION" >&6; }
15131
15133
15132
15134
# On Android and Cygwin the shared libraries must be linked with libpython.
15133
15135
15134
- if test -z " $ANDROID_API_LEVEL " -o " $MACHDEP " ! = " cygwin" ; then
15135
- LIBPYTHON=' '
15136
- else
15136
+ if test -n " $ANDROID_API_LEVEL " -o " $MACHDEP " = " cygwin" ; then
15137
15137
LIBPYTHON=" -lpython${VERSION}${ABIFLAGS} "
15138
+ else
15139
+ LIBPYTHON=' '
15138
15140
fi
15139
15141
15140
15142
Original file line number Diff line number Diff line change 411
411
'') MACHDEP="unknown";;
412
412
esac
413
413
fi
414
+ AC_MSG_RESULT ( "$MACHDEP" )
414
415
415
416
AC_SUBST ( _PYTHON_HOST_PLATFORM )
416
417
if test "$cross_compiling" = yes; then
@@ -4622,10 +4623,10 @@ AC_MSG_RESULT($LDVERSION)
4622
4623
4623
4624
# On Android and Cygwin the shared libraries must be linked with libpython.
4624
4625
AC_SUBST ( LIBPYTHON )
4625
- if test -z "$ANDROID_API_LEVEL" -o "$MACHDEP" != "cygwin"; then
4626
- LIBPYTHON=''
4627
- else
4626
+ if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
4628
4627
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
4628
+ else
4629
+ LIBPYTHON=''
4629
4630
fi
4630
4631
4631
4632
dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
You can’t perform that action at this time.
0 commit comments