[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no AC_LANG_SOURCE call detected in body with AC_RUN_IFELSE+AC_LANG_P
From: |
Eric Blake |
Subject: |
Re: no AC_LANG_SOURCE call detected in body with AC_RUN_IFELSE+AC_LANG_PROGRAM |
Date: |
Mon, 18 Apr 2011 07:10:23 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
On 04/18/2011 05:55 AM, Vincent Lefevre wrote:
> Hi,
>
> On a Debian/sid machine, with the following configure.ac
>
> AC_INIT([Test], [1.0])
> AC_RUN_IFELSE(AC_LANG_PROGRAM([[ ]], [[ ]]),
> [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)], [AC_MSG_RESULT(can not test)])
>
> autoconf version 2.68 gives:
>
> configure.ac:2: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in
> body
Use correct quoting:
AC_RUN_IFELSE([AC_LANG_PROGRAM([[ ]], [[ ]])],
[AC_MSG_RESULT...])
> So, I don't see anything wrong with the above example.
You weren't quoting the AC_LANG_PROGRAM invocation.
>
> but since the example uses AC_LANG_PROGRAM, this should be OK.
You didn't use it quoted. Therefore, the macro expanded too early, and
if it expands to anything that contains a comma, then AC_RUN_IFELSE will
be operating on the wrong data.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature