[Top][All Lists]

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

Re: /bin/sh in configure tests

From: Ludovic Courtès
Subject: Re: /bin/sh in configure tests
Date: Sun, 13 Jan 2013 23:17:42 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Andreas Enge <address@hidden> skribis:

> A package I am trying to build contains the following lines in its 
> configure:
> case `/bin/sh -c "echo -n x"` in
> -n*)
>   case `/bin/sh -c "echo 'x\c'"` in
> ...
> Would it make sense to globally add a rule to patch-shebangs so that
> "`/bin/sh" is replaced? If not, how can this be handled?

If by globally you mean in gnu-build-system.scm, then I think that may
be too risky.

But in the package itself, you can add a phase that does:

  (substitute* "configure"
     (string-append "`" (which "bash"))))


reply via email to

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