X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/4e6eb5db5593f2d73c2c9af9c925e1a2866c8303..998925c8d088559a780a9f4fa63f66bad3e3321e:/testsuite.at diff --git a/testsuite.at b/testsuite.at index 025e78f..6511c42 100644 --- a/testsuite.at +++ b/testsuite.at @@ -1,4 +1,4 @@ -AT_COPYRIGHT([Copyright © 2019-2020 Nick Bowler +AT_COPYRIGHT([Copyright © 2019-2020, 2023 Nick Bowler License GPLv2+: GNU General Public License version 2 or any later version. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.]) @@ -42,6 +42,10 @@ dnl is the 2nd argument of AT_CHECK -- the expected exit status). m4_define([TEST_COMPILE_GOBJECT], [AT_CHECK([$HAVE_GOBJECT || exit 77 $CC $CPPFLAGS $CFLAGS $LIBGOBJECT_CFLAGS -c $1], m4_shift($@))]) +m4_define([TEST_LINK_GOBJECT], + [AT_CHECK([$SHELL "$builddir/libtool" --quiet --tag=CC --mode=link \ + $CC $CFLAGS $LDFLAGS $LIBGOBJECT_LIBS -o $1 $2])]) + dnl Same as TEST_COMPILE_GOBJECT, except that the C++ compiler is used. m4_define([TEST_COMPILEXX_GOBJECT], [AT_CHECK([$HAVE_GOBJECT || exit 77 $CXX $CPPFLAGS $CXXFLAGS $LIBGOBJECT_CFLAGS -c $1], m4_shift($@))]) @@ -90,12 +94,12 @@ m4_divert_push([PREPARE_TESTS])dnl CPPFLAGS="-I$builddir $CPPFLAGS" :; { AS_ECHO(["AUTOCONF = ${AUTOCONF=autoconf}"]) - command -v $AUTOCONF + command -v $AUTOCONF 2>&1 (set -x; $AUTOCONF --version) 2>&1 echo AS_UNSET([MAKEFLAGS]) AS_ECHO(["MAKE = ${MAKE=make}"]) - command -v $MAKE + command -v $MAKE 2>&1 (set -x; $MAKE --version) 2>&1 echo } >&AS_MESSAGE_LOG_FD