10 # uses warn/error code.
20 # m4_text_wrap is used to display the help strings. Also, check that
21 # commas are not swallowed. This can easily happen because of
25 [[m4_warn([foo], [foo])
27 m4_warn([syntax], [syntax])
30 AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir -o-],
32 [configure.ac:3: warning: syntax
35 AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir -o- -Wall],
37 [configure.ac:1: warning: foo
38 configure.ac:2: warning: bar
39 configure.ac:3: warning: syntax
42 AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir -o- -Wnone,bar],
44 [configure.ac:2: warning: bar
47 AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir -o- -Wnone,bar,error],
49 [configure.ac:2: error: bar
50 configure.ac:2: the top level
56 ## ----------------------------------- ##
57 ## m4_require: circular dependencies. ##
58 ## ----------------------------------- ##
60 AT_SETUP([[m4_require: circular dependencies]])
62 # m4_text_wrap is used to display the help strings. Also, check that
63 # commas are not swallowed. This can easily happen because of
66 AT_DATA([configure.ac],
80 AT_CHECK_AUTOCONF([], 1, [],
81 [[configure.ac:11: error: m4_require: circular dependency of foo
82 configure.ac:11: foo is required by...
83 configure.ac:5: bar is expanded from...
84 configure.ac:11: bar is required by...
85 configure.ac:2: foo is expanded from...
86 configure.ac:11: foo is required by...
87 configure.ac:8: baz is expanded from...
88 configure.ac:11: the top level
98 AT_SETUP([[m4_text_wrap]])
100 # m4_text_wrap is used to display the help strings. Also, check that
101 # commas are not swallowed. This can easily happen because of
104 AT_DATA([configure.ac],
105 [[AC_PLAIN_SCRIPT()dnl
106 m4_text_wrap([Short string */], [ ], [/* ], 20)
108 m4_text_wrap([Much longer string */], [ ], [/* ], 20)
110 m4_text_wrap([Short doc.], [ ], [ --short ], 30)
112 m4_text_wrap([Short doc.], [ ], [ --too-wide], 30)
114 m4_text_wrap([Super long documentation.], [ ], [ --too-wide], 30)
116 m4_text_wrap([First, second , third, [,quoted]])
134 First, second , third, [,quoted]
137 AT_CHECK_AUTOCONF([-o-], 0, [expout])