[vlc-devel] commit: autoconf: Don't hardcode shell in templates (Francois Cartegnie )

git version control git at videolan.org
Mon Jan 18 19:16:20 CET 2010


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jan 17 18:50:36 2010 +0100| [0a0db525cf8fe71f395b178cfbb20e3ec92fde74] | committer: Rémi Denis-Courmont 

autoconf: Don't hardcode shell in templates

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a0db525cf8fe71f395b178cfbb20e3ec92fde74
---

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

diff --git a/configure.ac b/configure.ac
index 753e21d..c27d7d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5090,7 +5090,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@"




More information about the vlc-devel mailing list