autoconf
[Top][All Lists]
Advanced

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

Re: Why does 'AC_MSG_CHECKING' output extra junk.


From: Daniel Leidert
Subject: Re: Why does 'AC_MSG_CHECKING' output extra junk.
Date: Fri, 07 Aug 2009 16:33:42 +0200

Am Freitag, den 07.08.2009, 12:45 +0100 schrieb Dr. David Kirkby:
> If I have this in my configure.ac
> 
> AC_MSG_CHECKING([if gcc uses the GNU or Sun linker])
> 
> then run the configure script, I see:
> 
> checking if gcc uses the GNU or Sun linker... checking for a sed that 
> does not truncate output... /opt/csw/bin/gsed
> 
> I've not asked it to check for sed, so why is it putting that in the end?

Because you don't output any result to your own check. AC_MSG_CHECKING
doesn't output a newline at the end. So what you see is the next check.
One would usually use the macros like that:

AC_MSG_CHECKING([for foo])
test ... ; then
        AC_MSG_RESULT([yes])
else
        AC_MSG_RESULT([no])
fi

Regards, Daniel





reply via email to

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