cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: warnings with libcurl.m4 and autoconf 2.68

From: Dave Reisner <d_at_falconindy.com>
Date: Mon, 21 Mar 2011 13:30:05 -0400

On Sun, Mar 20, 2011 at 10:02:24PM -0400, Dave Reisner wrote:
> Hi all,
>
> I'm using libcurl's m4 macro file (docs/libcurl/libcurl.m4) to ease
> integration into a project I'm working on. With autoconf 2.68, the
> following warning is thrown when running the pre-configure bootstrap:
>
> + autoconf
> configure.ac:97: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
> detected in body
> ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
> ../../lib/autoconf/general.m4:2660: _AC_LINK_IFELSE is expanded from...
> ../../lib/autoconf/general.m4:2677: AC_LINK_IFELSE is expanded from...
> ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from...
> ../../lib/autoconf/general.m4:2030: AC_CACHE_VAL is expanded from...
> ../../lib/autoconf/general.m4:2051: AC_CACHE_CHECK is expanded from...
> m4/libcurl.m4:38: LIBCURL_CHECK_CONFIG is expanded from...
> configure.ac:97: the top level
>
> ------------------------------->8------
>

Happily going to solve my own bug. It seems there's a missing pair of
quotes around the first argument to AC_LINK_IFELSE which results in
these warnings being thrown. The attached patch quiets things down for
me, but I'm not sure if this breaks older versions of autoconf.

thanks,
dave

Received on 2011-03-21