/tools/autotools/m4/ax_with_perl.m4
m4 | 35 lines | 3 code | 2 blank | 30 comment | 0 complexity | 0ea70f8400829f1dc4ca2db762ce6ac1 MD5 | raw file
Possible License(s): GPL-2.0
- # ===========================================================================
- # http://www.gnu.org/software/autoconf-archive/ax_with_perl.html
- # ===========================================================================
- #
- # SYNOPSIS
- #
- # AX_WITH_PERL([VALUE-IF-NOT-FOUND],[PATH])
- #
- # DESCRIPTION
- #
- # Locates an installed Perl binary, placing the result in the precious
- # variable $PERL. Accepts a present $PERL, then --with-perl, and failing
- # that searches for perl in the given path (which defaults to the system
- # path). If perl is found, $PERL is set to the full path of the binary; if
- # it is not found $PERL is set to VALUE-IF-NOT-FOUND if provided,
- # unchanged otherwise.
- #
- # A typical use could be the following one:
- #
- # AX_WITH_PERL
- #
- # LICENSE
- #
- # Copyright (c) 2009 Francesco Salvestrini <salvestrini@users.sourceforge.net>
- #
- # Copying and distribution of this file, with or without modification, are
- # permitted in any medium without royalty provided the copyright notice
- # and this notice are preserved. This file is offered as-is, without any
- # warranty.
- #serial 12
- AC_DEFUN([AX_WITH_PERL],[
- AX_WITH_PROG(PERL,perl,$1,$2)
- ])