autoconf
[Top][All Lists]
Advanced

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

Re: iterating over arguments


From: Sam Steingold
Subject: Re: iterating over arguments
Date: Fri, 11 Sep 2009 17:12:56 -0400

On Fri, Sep 11, 2009 at 1:34 PM, Ralf Wildenhues <address@hidden> wrote:
>
> AC_DEFUN([CL_CLISP_REQUIRE_FEATURE], [dnl
> m4_foreach_w([cl_feat], [$1],
> [m4_pushdef([CL_FEAT], [m4_toupper([cl_feat])])dnl
> AC_CACHE_CHECK([for CL_FEAT in CLISP], [cl_cv_clisp_][cl_feat],
>  [CLISP_SET([...])
> ])
> m4_popdef([CL_FEAT])
> ])
> ])
>

m4 seems to take forever (11 minutes on  Intel(R) Core(TM)2 Duo CPU
P8400  @ 2.26GHz and counting - had to kill it) processing this:

AC_DEFUN([CL_CLISP_REQUIRE_FEATURES], [dnl
m4_foreach_w([cl_feat], [$1],
[m4_pushdef([CL_FEAT], [m4_toupper([cl_feat])])dnl
AC_CACHE_CHECK([for CL_FEAT in CLISP],
[cl_cv_clisp_][cl_feat],
 [CLISP_SET([cl_cv_clisp_][cl_feat],[[#+cl_feat "yes" #-cl_feat "no"]])
 ])
m4_popdef([CL_FEAT])
])])

CL_CLISP_REQUIRE_FEATURES([ffi mt screen])

also, don't I need
AC_REQUIRE([CL_CLISP])
since CLISP_SET uses something set by CL_CLISP?

also, will it correctly substitute "ffi" for "cl_feat" inside ... let
me count ... 4 levels of [[[[]]]]?

thanks!

-- 
Sam Steingold <http://sds.podval.org>




reply via email to

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