[Q] Script-wide default value

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

 



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

Attachment: autoconf-test.tar.gz
Description: application/tgz

_______________________________________________
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