autoconf
[Top][All Lists]
Advanced

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

[Q] Script-wide default value


From: zaufi
Subject: [Q] Script-wide default value
Date: Fri, 18 Nov 2005 00:59:35 +0300
User-agent: KMail/1.8.3

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]