Eric Blake <ebb9 <at> byu.net> writes: > What do you think of this patch? > > From: Eric Blake <ebb9 <at> byu.net> > Date: Wed, 20 May 2009 14:45:07 -0600 > Subject: [PATCH] Another try at making math.h work for AIX xlc. > > * m4/include_next.m4: Avoid redundant m4_quote. > (gl_CHECK_NEXT_HEADERS): Also define > NEXT_header_AS_FIRST_DIRECTIVE. > * lib/math.in.h (includes): Use it. > Reported by Jens Rehsack.
And squashing this diff in to make it work: diff --git i/ChangeLog w/ChangeLog index 2f9ff72..4ee51a9 100644 --- i/ChangeLog +++ w/ChangeLog @@ -5,6 +5,7 @@ (gl_CHECK_NEXT_HEADERS): Also define NEXT_header_AS_FIRST_DIRECTIVE. * lib/math.in.h (includes): Use it. + * modules/math (Makefile.am): Substitute it. Reported by Jens Rehsack. 2009-05-20 Bruno Haible <br...@clisp.org> diff --git i/modules/math w/modules/math index 44163e0..f79ebee 100644 --- i/modules/math +++ w/modules/math @@ -22,7 +22,7 @@ math.h: math.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed - e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE) |g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ - -e 's|@''NEXT_MATH_H''@|$(NEXT_MATH_H)|g' \ + - e 's|@''NEXT_MATH_H_AS_FIRST_DIRECTIVE''@|$(NEXT_MATH_H_AS_FIRST_DIRECTIVE)|g' \ -e 's|@''GNULIB_CEILF''@|$(GNULIB_CEILF)|g' \ -e 's|@''GNULIB_CEILL''@|$(GNULIB_CEILL)|g' \ -e 's|@''GNULIB_FLOORF''@|$(GNULIB_FLOORF)|g' \