Lines 230-247
Link Here
|
230 |
dnl Check IPv6 raw sending flavor. |
230 |
dnl Check IPv6 raw sending flavor. |
231 |
CHECK_IPV6_IPPROTO_RAW |
231 |
CHECK_IPV6_IPPROTO_RAW |
232 |
|
232 |
|
233 |
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],[python2 python2.7 python2.6 python2.5 python2.4 python]) |
233 |
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],[python3 python3.8 python3.7 python3.6 python3.5 python]) |
234 |
AM_PATH_PYTHON([2.4], [HAVE_PYTHON=true], [HAVE_PYTHON=false]) |
234 |
AM_PATH_PYTHON([3.5], [HAVE_PYTHON=true], [HAVE_PYTHON=false]) |
235 |
HAVE_PYTHON2=false |
235 |
HAVE_PYTHON2=false |
236 |
if test $HAVE_PYTHON && test "x${PYTHON_VERSION%%.*}" = "x2"; then |
236 |
HAVE_PYTHON3=false |
237 |
HAVE_PYTHON2=true |
237 |
if test $HAVE_PYTHON && test "x${PYTHON_VERSION%%.*}" = "x3"; then |
|
|
238 |
HAVE_PYTHON3=true |
238 |
fi |
239 |
fi |
239 |
|
240 |
|
240 |
NDIFFDIR=ndiff |
241 |
NDIFFDIR=ndiff |
241 |
|
242 |
|
242 |
# Do they want Ndiff? |
243 |
# Do they want Ndiff? |
243 |
AC_ARG_WITH(ndiff, AC_HELP_STRING([--without-ndiff], [Skip installation of the Ndiff utility]), [], [with_ndiff=check]) |
244 |
AC_ARG_WITH(ndiff, AC_HELP_STRING([--without-ndiff], [Skip installation of the Ndiff utility]), [], [with_ndiff=check]) |
244 |
if $HAVE_PYTHON2 ; then : ; |
245 |
if $HAVE_PYTHON3 ; then : ; |
245 |
else |
246 |
else |
246 |
if test "$with_ndiff" = "check" ; then |
247 |
if test "$with_ndiff" = "check" ; then |
247 |
AC_MSG_WARN([Not building Ndiff because Python 2.x with x>=4 was not found]) |
248 |
AC_MSG_WARN([Not building Ndiff because Python 2.x with x>=4 was not found]) |