]> git.sesse.net Git - vlc/commitdiff
autoconf: Don't hardcode shell in templates
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 17 Jan 2010 17:50:36 +0000 (18:50 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 18 Jan 2010 18:14:47 +0000 (20:14 +0200)
configure.ac
vlc-config.in.in

index 753e21d342febc10f0a0fbd1223d921cf5e1e8d9..c27d7d79f7df6f6e467a331161d69f8bb4160396 100644 (file)
@@ -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
index 8d069ab2e45959fe53abe9ea9eef92b167d6e316..16065459bbb86f17e2d1eef8fbcdac0d7d4338e1 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@SHELL@
 
 prefix="@prefix@"
 exec_prefix="@exec_prefix@"