pkg-config/check
Dan Nicholson 305913a6b1 Handle POSIX shell for tests in configure and Makefile
Although the trick of finding a POSIX shell in the system PATH works
fine most of the time, it has some drawbacks.

* The commands must be copied into every test script.
* The scripts are always forced to re-execute themselves.
* There's no guarantee the sh found in `getconf PATH` is a POSIX shell
  and there's no way to override it.

Move the handling of this shell to configure where we can detect it
once. This gives preference to bash and ksh since they're typically
POSIX compatible. It also uses the current PATH with the getconf PATH at
the end which should allow things to work on platforms where getconf
might not be available like mingw/msys.

By specifying the shell in TESTS_ENVIRONMENT, automake will run each
script with this shell and we can drop the re-exec dance.
2012-08-19 08:03:00 -07:00
..
check-cflags Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-cmd-options Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-conflicts Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-define-variable Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-idirafter Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-includedir Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-libs Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-libs-private Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-missing Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-requires-private Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-version Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
check-whitespace Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
common Ensure test search path is confined to check directory 2012-05-30 05:49:14 -07:00
config.sh.in 2009-03-30 Tollef Fog Heen <tfheen@err.no> 2009-03-30 21:50:01 +02:00
conflicts-test.pc 2008-03-23 Tollef Fog Heen <tfheen@err.no> 2008-03-23 21:39:07 +01:00
fields-blank.pc Add test case for empty fields 2010-05-27 22:23:40 +02:00
idirafter.pc Handle -idirafter specially 2010-05-09 09:43:10 +02:00
includedir.pc Add includedir test 2005-08-27 09:05:14 +00:00
Makefile.am Handle POSIX shell for tests in configure and Makefile 2012-08-19 08:03:00 -07:00
missing-requires-private.pc 2009-03-30 Tollef Fog Heen <tfheen@err.no> 2009-03-30 20:40:53 +02:00
missing-requires.pc 2009-03-30 Tollef Fog Heen <tfheen@err.no> 2009-03-30 20:49:17 +02:00
private-dep.pc 2005-06-27 Tollef Fog Heen <tfheen@err.no> 2005-07-14 13:07:31 +00:00
public-dep.pc 2008-03-23 Tollef Fog Heen <tfheen@err.no> 2008-03-23 21:39:07 +01:00
requires-test.pc 2005-06-27 Tollef Fog Heen <tfheen@err.no> 2005-07-14 13:07:31 +00:00
simple.pc 2005-05-21 Tollef Fog Heen <tfheen@err.no> 2005-07-14 13:07:18 +00:00
whitespace.pc Allow $() through unescaped. 2011-04-13 22:02:51 +02:00