21 |
# We need a recent Autotest. |
# We need a recent Autotest. |
22 |
m4_version_prereq([2.52c]) |
m4_version_prereq([2.52c]) |
23 |
|
|
24 |
# AT_CHECK_M4(FLAGS, [EXIT-STATUS = 0], STDOUT, STDERR) |
# AT_CHECK_M4(FLAGS, [EXIT-STATUS], [STDOUT], [STDERR]) |
25 |
# ----------------------------------------------------- |
# ----------------------------------------------------- |
26 |
# Hide the impact of libtool on program_invocation_name, and hide |
# Hide the impact of libtool on program_invocation_name, and hide |
27 |
# the differences of paths when src != build. |
# the differences of paths when src != build. |
28 |
m4_define([AT_CHECK_M4], |
m4_define([AT_CHECK_M4], |
29 |
[AT_CHECK([M4PATH=$top_srcdir $M4 -M $top_builddir/modules -d $1], |
[AT_CHECK([M4PATH=$top_srcdir m4 -M $top_builddir/modules -d $1], |
30 |
[m4_default([$2], [0])], |
[$2], [$3], [$4]) |
|
[$3], [stderr]) |
|
|
AT_CHECK([[sed -e 's,^[^:]*[lt-]*m4[.ex]*:,m4:,' \ |
|
|
-e 's,m4: ../../,m4: ../,' stderr >&2]], 0, [], [$4]) |
|
31 |
]) |
]) |
32 |
|
|
33 |
|
|
34 |
# We use `dnl' in zillions of places... |
# We use `dnl' in zillions of places... |
35 |
m4_pattern_allow([^dnl$]) |
m4_pattern_allow([^dnl$]) |
36 |
|
|
37 |
AT_INIT([$M4]) |
|
38 |
|
|
39 |
|
## ----------- ## |
40 |
|
## The suite. ## |
41 |
|
## ----------- ## |
42 |
|
|
43 |
|
AT_INIT([m4]) |
44 |
|
|
45 |
# Hand crafted tests. |
# Hand crafted tests. |
46 |
m4_include([others.at]) |
m4_include([others.at]) |