autoconf
[Top][All Lists]
Advanced

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

Re: changequote


From: Akim Demaille
Subject: Re: changequote
Date: 21 Dec 2000 16:14:55 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

    AC_ARG_WITH(mmalloc,
    [  --with-mmalloc          Use memory mapped malloc package],
    [case "${withval}" in
      yes)  want_mmalloc=true ;;
      no)   want_mmalloc=false;;
      *)    AC_MSG_ERROR(bad value ${withval} for GDB with-mmalloc option)
;;
    esac],[want_mmalloc=false])dnl

Didn't try to reproduce, but at least be aware that using dnl like
this is a bad idea.  Use `[]dnl' to avoid having the dnl pasted to the
last tokens of the expansion of the previous macro (here
AC_ARG_WITH).  This stupid example highlights what might happen.

% m4
define(foo, bar)
foo()dnl
bardnl
foo()`'dnl toto
bar



reply via email to

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