autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiline arguments to AC_CHECK_HEADERS and AC_CHECK_FUNCS


From: Stepan Kasal
Subject: Re: Multiline arguments to AC_CHECK_HEADERS and AC_CHECK_FUNCS
Date: Mon, 14 May 2007 17:26:54 +0200
User-agent: Mutt/1.4.2.1i

Hello Paul,

On Fri, May 11, 2007 at 10:07:18AM -0700, Paul Eggert wrote:
> Stepan Kasal <address@hidden> writes:
> > +ac_list="$1"
> > +for ac_func in $ac_list
> 
> While I agree we have a problem, I'm not sure I like this solution.
> It's incompatible, as it will reject things like
> AC_CHECK_HEADERS("file-1.h" "file-2.h").o

but this construct works only for project which do not use
autoheader.

With autoheader you get
        /* Define to 1 if you have the <"file-1.h"> header file. */
        #undef HAVE__FILE_1_H_
Even with AC_CHECK_HEADERS([file-1.h \ file-2.h]) you get
        /* Define to 1 if you have the <\> header file. */
        #undef HAVE__

Note that the backslashes in calls like
        AC_CHECK_HEADERS([file-1.h \
          file-2.h])
work only because AH_CHECK_HEADERS calls m4_foreach_w and it calls
m4_normalize, which removes \<NL>.


OTOH, it is easy to fix this--by using the old construct only if the
prameter does not contain a quote, see the attached patch.


Which of the two patches, if any, can I commit?

Stepan

Attachment: autoconf-20070514-multiline-args.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]