> From: Basile STARYNKEVITCH <[email protected]>
> Cc: [email protected]
> Date: Sat, 05 Sep 2026 14:32:59 +0200
> 
> Hello all,
> 
> On Debian/Trixie I have make-guile 4.4.1 installed.
> 
> But when I run make --version the (optional) libguile supporting
> feature is not shown.
> 
> I would like some program option to GNU make which tests availability
> of GNU guile extension to GNU make 4.4 or future GNU make (without any
> makefile or GNUmakefile)
> 
> Perhaps some --eval= is enough? Then it probably could be documented as
> an example?

The Make manual says in the node "Guile Function":

     You can determine whether GNU Guile support is available by checking
  the '.FEATURES' variable for the word GUILE.

So this should do the trick:

   $ make --eval="all:;@echo ${.FEATURES}"

Here it shows this:

   target-specific order-only second-expansion else-if shortest-stem undefine 
oneshell nocomment grouped-target extra-prereqs notintermediate shell-export 
archives jobserver output-sync guile load dospaths

As you see, "guile" is right there.

Reply via email to