From fe6c2fdef2d0565fc38f60737fadebc8ccfe1e69 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 6 Feb 2006 23:49:52 +0000 Subject: [PATCH] * tests/headers.at (AT_TEST_CPP_GUARD_H): Use #include <...> rather than #include "...", and compile with -I'.'. --- ChangeLog | 10 ++++++++++ tests/headers.at | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f8a9f7d5..bfc43f0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-02-06 Paul Eggert + + More portability fixes for problems summarized by Nelson H. F. Beebe. + + * tests/headers.at (AT_TEST_CPP_GUARD_H): Use #include <...> rather + than #include "...", and compile with -I'.'. The old method was + not portable, according to Posix and the C standard, and it does + not work with Sun C 5.7, where previous #line directives affect + the working directory used in later #include "..." directives. + 2006-02-06 Juan Manuel Guerrero Various DJGGP specific issues in /djgpp diff --git a/tests/headers.at b/tests/headers.at index f7ccb77b..02d54632 100644 --- a/tests/headers.at +++ b/tests/headers.at @@ -57,17 +57,17 @@ AS_MKDIR_P([$dirname]) AT_DATA_GRAMMAR([$1.y], [%{ -#include "$1.h" +#include <$1.h> %} %% dummy:; %% -#include "$1.h" +#include <$1.h> ]) AT_CHECK([bison --defines=$1.h --output=y.tab.c $1.y]) -AT_COMPILE([y.tab.o], [-c y.tab.c]) +AT_COMPILE([y.tab.o], [-I. -c y.tab.c]) AT_CLEANUP ]) -- 2.47.2