PageRenderTime 20ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/autotools/m4/ax_with_perl.m4

#
m4 | 35 lines | 3 code | 2 blank | 30 comment | 0 complexity | 0ea70f8400829f1dc4ca2db762ce6ac1 MD5 | raw file
 1# ===========================================================================
 2#       http://www.gnu.org/software/autoconf-archive/ax_with_perl.html
 3# ===========================================================================
 4#
 5# SYNOPSIS
 6#
 7#   AX_WITH_PERL([VALUE-IF-NOT-FOUND],[PATH])
 8#
 9# DESCRIPTION
10#
11#   Locates an installed Perl binary, placing the result in the precious
12#   variable $PERL. Accepts a present $PERL, then --with-perl, and failing
13#   that searches for perl in the given path (which defaults to the system
14#   path). If perl is found, $PERL is set to the full path of the binary; if
15#   it is not found $PERL is set to VALUE-IF-NOT-FOUND if provided,
16#   unchanged otherwise.
17#
18#   A typical use could be the following one:
19#
20#     AX_WITH_PERL
21#
22# LICENSE
23#
24#   Copyright (c) 2009 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. This file is offered as-is, without any
29#   warranty.
30
31#serial 12
32
33AC_DEFUN([AX_WITH_PERL],[
34    AX_WITH_PROG(PERL,perl,$1,$2)
35])