passing a macro as an argument of macro

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

 




Hey,

I would like to do the following:

defining several macros that have the same signature :

dnl use: MACRO1(ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND])
AC_DEFUN([MACRO1],
[
****
])

dnl use: MACRO2(ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND])
AC_DEFUN([MACRO2],
[
****
])

and pass one of them to another macro

dnl use: MAIN_MACRO(macro)
AC_DEFUN([MAIN_MACRO],
[

dnl i want to use the 1st arg as a macro. Something like that:

$1([have_xx="yes"], [have_xx="no"])

])

MAIN_MACRO would be used that way:

MAIN_MACRO(MACRO1)
MAIN_MACRO(MACRO2)

Is it possible ? If yes, what is the syntax I should use in MAIN_MACRO ?

thank you

Vincent Torri


_______________________________________________
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