[vlc-devel] [PATCH 1/2] autoconf: Don't hardcode shell in templates

Francois Cartegnie fcvlcdev at free.fr
Sun Jan 17 18:50:36 CET 2010


---
 configure.ac     |    5 ++++-
 vlc-config.in.in |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index b73734f..24ddfab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5210,7 +5210,10 @@ dnl Do we have to use make or gmake ?
 USE_MAKE_OR_GMAKE=`case "${SYS}" in openbsd*) echo "gmake";; *) echo "make";; esac`
 dnl Shortcut to nice compile message
 rm -f compile
-echo '#! /bin/sh' >compile
+if test -n $SHELL; then
+  SHELL=${CONFIG_SHELL-/bin/sh}
+fi
+echo '#! '$SHELL >compile
 echo rm -f .error\$\$ >>compile
 echo ERROR=0 >>compile
 echo export PATH=$PATH LANG=C >>compile
diff --git a/vlc-config.in.in b/vlc-config.in.in
index 8d069ab..1606545 100644
--- a/vlc-config.in.in
+++ b/vlc-config.in.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@SHELL@
 
 prefix="@prefix@"
 exec_prefix="@exec_prefix@"
-- 
1.6.4.4




More information about the vlc-devel mailing list