Re: macros which define macros

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

 



Andreas Schwab <schwab <at> suse.de> writes:

> 
> Missing quotes.  Remember that m4 always expands the arguments before
> exanding the macro itself.  Also, you can use $@ to forward all
> arguments.
> 
> AC_DEFUN([CL_COMPILE_CHECK],
> [CL_CHECK([AC_COMPILE_IFELSE],[$@])])
> AC_DEFUN([CL_LINK_CHECK],
> [CL_CHECK([AC_LINK_IFELSE],[$@])])

But your correction is now overquoted - $@ already provides quotes by itself.  
You meant:

AC_DEFUN([CL_COMPILE_CHECK], [CL_CHECK([AC_COMPILE_IFELSE], $@)])

-- 
Eric Blake





_______________________________________________
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