autoconf
[Top][All Lists]
Advanced

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

AC_ARG_WITH


From: Russell Shaw
Subject: AC_ARG_WITH
Date: Thu, 21 Oct 2004 16:53:06 +1000
User-agent: Mozilla Thunderbird 0.8 (X11/20040918)

Hi,

I'm learning autoconf packaging.

At the configure step, i want to specify:

  ./configure --with-default-size=5

and have appear in config.h: #define DEFAULT_SZ  5

In configure.ac, i have:

AC_ARG_WITH(
    [border_size],
    AC_HELP_STRING([--with-default-border-size],
                   [Set default border size]),
    [default_size = $withval],
    [default_size=3]
)

AC_DEFINE(DEFAULT_SZ,$default_size)


However, in config.h, all i get is:

  #define DEFAULT_SZ $default_size


How do i get:

  $define DEFAULT_SZ  5

??





reply via email to

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