* tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct

member.
This commit is contained in:
Ralf Wildenhues 2006-09-26 18:07:16 +00:00
parent c3291e20d4
commit b3071d2b55
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
member.
2006-09-25 Paul Eggert <eggert@cs.ucla.edu> 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
* NEWS: Recommend M4 1.4.7 instead of 1.4.6. * NEWS: Recommend M4 1.4.7 instead of 1.4.6.

View File

@ -234,10 +234,12 @@ AT_CLEANUP([header1.h header2.h header3.h])
# Check that it performs the correct actions. # Check that it performs the correct actions.
# Must define HAVE_STRUCT_YES_S_YES, but not HAVE_STRUCT_YES_S_NO. # Must define HAVE_STRUCT_YES_S_YES, but not HAVE_STRUCT_YES_S_NO.
AT_CHECK_MACRO([AC_CHECK_MEMBERS], AT_CHECK_MACRO([AC_CHECK_MEMBERS],
[[AC_CHECK_MEMBERS([struct yes_s.yes, struct yes_s.no],,, [[AC_CHECK_MEMBERS([struct yes_s.yes, struct yes_s.no, struct yes_s.substruct],,,
[struct yes_s { int yes ;} ;])]], [struct sub { int x; };
struct yes_s { int yes; struct sub substruct; };])]],
[AT_CHECK_DEFINES( [AT_CHECK_DEFINES(
[/* #undef HAVE_STRUCT_YES_S_NO */ [/* #undef HAVE_STRUCT_YES_S_NO */
#define HAVE_STRUCT_YES_S_SUBSTRUCT 1
#define HAVE_STRUCT_YES_S_YES 1 #define HAVE_STRUCT_YES_S_YES 1
])]) ])])