summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-04-05 09:55:57 +0200
committerYorhel <git@yorhel.nl>2015-04-05 09:58:05 +0200
commit61a7846c767d7082293d0c7cbe88bedde3059740 (patch)
tree12917013fce2f59dae04b6caa86cfc6e9f00c1ad
parent777db9a5dfa23ed60f41fce272be20ff2c93ee90 (diff)
config: Use /bin/sh as default shell and don't check for its existence
/bin/bash is not available on every system, nor always the default. /bin/sh is standardised, but not always the preferred interactive shell, hence it's configurable. There's no need to check for the existence of this shell during config, since it's an option that only affects run-time - and you may compile ncdu on a totally different system than you would run it on.
-rw-r--r--configure.ac8
1 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index b1e8c5c..0b3cf23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,14 +58,10 @@ fi
# Configure default shell for spawning shell when $SHELL is not set
AC_ARG_WITH([shell],
[AS_HELP_STRING([--with-shell],
- [used interpreter as default shell (default is /bin/bash)])],
+ [used interpreter as default shell (default is /bin/sh)])],
[DEFAULT_SHELL=$withval],
- [DEFAULT_SHELL=/bin/bash])
+ [DEFAULT_SHELL=/bin/sh])
AC_MSG_NOTICE([Using $DEFAULT_SHELL as the default shell if \$SHELL is not set])
-AC_CHECK_PROG(TEST_SHELL, $DEFAULT_SHELL, yes, no, [/])
-if test "x$TEST_SHELL" != "xyes"; then
- AC_MSG_ERROR([Default shell interpreter $DEFAULT_SHELL not found])
-fi
AC_DEFINE_UNQUOTED(DEFAULT_SHELL, "$DEFAULT_SHELL", [Used default shell interpreter])