Re: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET

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

 



Hello Rhys,

* Rhys Ulerich wrote on Thu, Jul 02, 2009 at 05:22:27PM CEST:
> I've got a macro that needs $target_cpu which is available from
> AC_CANONICAL_TARGET.  Within my macro I use
> AC_REQUIRE([AC_CANONICAL_TARGET]) which triggers the following
> warning:
> 
> configure.ac:47: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
> ../../lib/autoconf/general.m4:1723: AC_CANONICAL_TARGET is expanded from...
> m4/acx_mkl.m4:64: ACX_MKL is expanded from...
> configure.ac:47: the top level
> 
> The easy way to eliminate the warning is to include
> AC_CANONICAL_TARGET early on in my configure.ac.

Yes, and in this case, that seems to be the right way to me.

> However, I'd like to
> have the macro strictly enforce the requirement of AC_CANONICAL_TARGET
> because I anticipate putting it up on the Autoconf macro archive once
> it gets a bit more mature.
> Are there any recommended ways to rectify the warning under that use case?

Why do you think it would be a problem for users of your macro to follow
the above advice?  The current Autoconf code doesn't mangle program
names in the right way otherwise.


Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux