From: Paul Eggert Date: Wed, 11 May 2005 19:38:24 +0000 (+0000) Subject: * tests/local.at (AT_COMPILE_CXX): Treat LDFLAGS like AT_COMPILE does. X-Git-Tag: BISON-2_1~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51f4735e22c1b9172f41b5774ef323103a11924a;p=platform%2Fupstream%2Fbison.git * tests/local.at (AT_COMPILE_CXX): Treat LDFLAGS like AT_COMPILE does. Problem reported by Ralf Menzel. --- diff --git a/ChangeLog b/ChangeLog index ffba1c3..2dd263f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-11 Paul Eggert + + * tests/local.at (AT_COMPILE_CXX): Treat LDFLAGS like AT_COMPILE does. + Problem reported by Ralf Menzel. + 2005-05-01 Paul Eggert * tests/actions.at: Test that stack overflow invokes destructors. diff --git a/tests/local.at b/tests/local.at index 2544b2f..fc70f86 100644 --- a/tests/local.at +++ b/tests/local.at @@ -175,11 +175,13 @@ m4_define([AT_COMPILE], # AT_COMPILE_CXX(OUTPUT, [SOURCES = OUTPUT.cc]) # -------------------------------------------- +# Compile SOURCES into OUTPUT. If OUTPUT does not contain '.', +# assume that we are linking too; this is a hack. # If the C++ compiler does not work, ignore the test. m4_define([AT_COMPILE_CXX], [AT_KEYWORDS(c++) AT_CHECK([$BISON_CXX_WORKS], 0, ignore, ignore) -AT_CHECK([$CXX $CXXFLAGS $CPPFLAGS -o $1 m4_default([$2], [$1.cc])], +AT_CHECK([$CXX $CXXFLAGS $CPPFLAGS m4_bmatch([$1], [[.]], [], [$LDFLAGS ])-o $1 m4_default([$2], [$1.cc])], 0, [ignore], [ignore])])