File: ac_prog_python_works.m4

package info (click to toggle)
discover 2.1.2-10.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,756 kB
  • sloc: sh: 7,862; ansic: 7,280; xml: 1,809; makefile: 679
file content (15 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
dnl $Progeny$
dnl
dnl
AC_DEFUN([AC_PROG_PYTHON_WORKS],
[
  AC_CACHE_CHECK([if $PYTHON works], ac_cv_prog_python_works, [
  TEST="a = [[ x for x in True, 1, map ]]"
  if AC_TRY_COMMAND($PYTHON -c "$TEST") >/dev/null 2>&1; then
    ac_cv_prog_python_works=yes
  else
    AC_MSG_ERROR(The Python interpreter $PYTHON failed (see config.log))
  fi
])
  AC_PROVIDE([$0])
])