File: ac_prog_python.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 (13 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
dnl $Progeny$
dnl
dnl AC_PROG_PYTHON: Finds a python interpreter.

AC_DEFUN([AC_PROG_PYTHON],
[
  AC_REQUIRE([AC_EXEEXT])
  test x$PYTHON = x && AC_PATH_PROGS(PYTHON, python$EXEEXT, python2.2$EXEEXT)
  test x$PYTHON = x && AC_MSG_ERROR([no acceptable python interpreter found
  in \$PATH])
  AC_PROG_PYTHON_WORKS
  AC_PROVIDE([$0])
])