tests: detect missing perl at configure runtime
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 30 Aug 2012 12:13:11 +0000 (14:13 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 30 Aug 2012 16:55:59 +0000 (18:55 +0200)
commit00f5ba15dd91a3d9780fe1fbd06a4df436ae6714
tree34daa7c97bf72787c86d0c94fca9944ad805486b
parente44178c59028e3c085a5c89014d44a4f647f3deb
tests: detect missing perl at configure runtime

* configure.ac (AM_CONDITIONAL): Set the conditional 'HAVE_PERL' to
true if the configure-time checks (as run by gl_PERL) have been able
to find a working perl.
* tests/no-perl: New script, report a diagnostic about "missing perl"
and exit with status 77.
* tests/Makefile.am (EXTRA_DIST): Distribute it.
(TESTSUITE_PERL): New, define to '$(PERL)' if a perl interpreter has
been found at configure time (i.e., if the 'HAVE_PERL' automake
conditional is true), and to '$(srcdir)/no-perl' otherwise.
(LOG_COMPILER): Use $(TESTSUITE_PERL) instead of $(PERL).
(XPL_LOG_COMPILER): Likewise.
* tests/shell-or-perl: Simplify: no need to actually check whether
perl is working.
configure.ac
tests/Makefile.am
tests/no-perl [new file with mode: 0644]
tests/shell-or-perl