]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/udis86/lib/contrib/m4/ax_with_python.m4
update
[l4.git] / l4 / pkg / udis86 / lib / contrib / m4 / ax_with_python.m4
1 # ===========================================================================
2 #         http://www.nongnu.org/autoconf-archive/ax_with_python.html
3 # ===========================================================================
4 #
5 # SYNOPSIS
6 #
7 #   AX_WITH_PYTHON([VALUE-IF-NOT-FOUND],[PATH])
8 #
9 # DESCRIPTION
10 #
11 #   Locates an installed Python binary, placing the result in the precious
12 #   variable $PYTHON. Accepts a present $PYTHON, then --with-python, and
13 #   failing that searches for python in the given path (which defaults to
14 #   the system path). If python is found, $PYTHON is set to the full path of
15 #   the binary; if it is not found $PYTHON is set to VALUE-IF-NOT-FOUND if
16 #   provided, unchanged otherwise.
17 #
18 #   A typical use could be the following one:
19 #
20 #         AX_WITH_PYTHON
21 #
22 # LICENSE
23 #
24 #   Copyright (c) 2008 Francesco Salvestrini <salvestrini@users.sourceforge.net>
25 #
26 #   Copying and distribution of this file, with or without modification, are
27 #   permitted in any medium without royalty provided the copyright notice
28 #   and this notice are preserved.
29
30 AC_DEFUN([AX_WITH_PYTHON],[
31     AX_WITH_PROG(PYTHON,python,$1,$2)
32 ])