[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autconf, configure & purify...
From: |
Ben Pfaff |
Subject: |
Re: autconf, configure & purify... |
Date: |
Thu, 23 Oct 2008 21:06:41 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Eric Blake <address@hidden> writes:
> According to Boggis, Antony on 10/23/2008 5:47 PM:
>> AS_HELP_STRING(--enable-purify,build with Purify [[default=no]]),
>
> This is underquoted. You need to get in the habit of properly quoting
> your arguments:
>
> AC_ARG_ENABLE([purify],
> [AS_HELP_STRING([--enable-purify], [build with Purify [default=no]]),
The Autoconf manual explicitly recommends underquoting
AS_HELP_STRING (though not its arguments):
...The following example will make this clearer.
AC_DEFUN([TEST_MACRO],
[AC_ARG_WITH([foo],
AS_HELP_STRING([--with-foo],
[use foo (default is NO)]),
[ac_cv_use_foo=$withval], [ac_cv_use_foo=no])
AC_CACHE_CHECK([whether to use foo],
[ac_cv_use_foo], [ac_cv_use_foo=no])])
Please note that the call to `AS_HELP_STRING' is *unquoted*.
It doesn't say why (and I don't know why).
--
Ben Pfaff
http://benpfaff.org