Hi Zaufi, * zaufi@xxxxxxxxxxx wrote on Thu, Nov 17, 2005 at 10:59:35PM CET: > > I'm trying to write some macro with ability to change its default behaviour > via redefine 'global' variable. My acinclude.m4 contain my macro definition > like this: > > AC_DEFUN([AX_MEGA], > [m4_ifdef([AC_DEFAULT_MEGA_ARG], [AC_DEFAULT_MEGA_ARG], [default value])]) ^ > dnl Redefine default value hardcoded in macro > m4_define([AS_DEFAULT_MEGA_ARG], [from configure script]) ^ Note also the former can be written shorter as AC_DEFUN([AX_MEGA], [m4_default([AC_DEFAULT_MEGA_ARG], [default value])]) Cheers, Ralf _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf