Re: How to change the shebang in 'configure' to require Bash

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

 



On Sun, 18 Mar 2018, R. Diez wrote:

I realise that this decision goes against Autoconf's portability principle. But even as a humble user, I am entitled to some freedom of choice. 8-)

I could write some code in configure.ac to detect the current shell. But is there any way to tell Autoconf to output a Bash shebang in the generated 'configure' script, instead of the standard "#! /bin/sh".

Users also have the freedom of choice to move on (to some other software) when configure fails.

Bash is not always /bin/bash.  It may be installed in other paths.

The configure script does some checks of the current shell and it is not uncommon for it to decide to use bash rather than the initial shell.

Given your feelings about Autoconf's configure, perhaps you should use a configure look-alike as GNU lzip (written by Antonio Diaz Diaz) does.

Bob
--
Bob Friesenhahn
bfriesen@xxxxxxxxxxxxxxxxxxx, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux