Oops! I'm stupid lamo :) -- example is incorrect... and actualy works :)

actually I'm on autoconf hacking and described macro should be in autoconf 
package (not in acinclude.m4), but I still want to change it behaviour from 
configure.ac in described way... and it is really wont work :((

On Friday 18 November 2005 00:59, [EMAIL PROTECTED] wrote:
> Hi list! (especialy autoconf developers ;)
>
>
> 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])])
>
> and configure.ac wants to redefine default value:
>
> dnl Redefine default value hardcoded in macro
> m4_define([AS_DEFAULT_MEGA_ARG], [from configure script])
> AC_INIT([test],[1.0])
> AC_MSG_CHECKING([for MEGA argument])
>
> dnl Call my macro
> AC_MSG_RESULT(AX_MEGA)
>
> AC_OUTPUT
>
> ---
> As u may guess the problem is that it won't be redefined :(
> zaufi autoconf-test # ./configure
> checking for MEGA argument... default value
> configure: creating ./config.status
>
> it still equal to 'default value' instead of 'from configure script' :((
>
> any ideas how to find the right way???
>
> Regards.
> Zaufi


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to