1 AT_COPYRIGHT([Copyright © 2019 Nick Bowler
2 License GPLv2+: GNU General Public License version 2 or any later version.
3 This is free software: you are free to change and redistribute it.
4 There is NO WARRANTY, to the extent permitted by law.])
6 dnl Compile a C source file with default cflags for libgobject. The test
7 dnl group is skipped if libgobject was not enabled at configure time. The
8 dnl first argument contains extra compiler flags, which must include the
9 dnl source file name. The remaining arguments correspond to the remaining
10 dnl arguments of AT_CHECK (e.g., the 2nd argument to TEST_COMPILE_GOBJECT
11 dnl is the 2nd argument of AT_CHECK -- the expected exit status).
12 m4_define([TEST_COMPILE_GOBJECT], [AT_CHECK([$HAVE_GOBJECT || exit 77
13 $CC $CPPFLAGS $CFLAGS $LIBGOBJECT_CFLAGS -c $1], m4_shift($@))])
15 dnl Same as TEST_COMPILE_GOBJECT, except that the C++ compiler is used.
16 m4_define([TEST_COMPILEXX_GOBJECT], [AT_CHECK([$HAVE_GOBJECT || exit 77
17 $CXX $CPPFLAGS $CXXFLAGS $LIBGOBJECT_CFLAGS -c $1], m4_shift($@))])
24 m4_include([tests/general.at])