Browse Source

configure: do not fork off grep subprocess while testing for whitespace

grep is not necessary for the functionality.
This avoids an unnecessary fork.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Ganesh Ajjanagadde Michael Niedermayer 10 years ago
parent
commit
6455e4fb5b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      configure

+ 3
- 2
configure View File

@@ -2974,8 +2974,9 @@ if test -f configure; then
source_path=.
else
source_path=$(cd $(dirname "$0"); pwd)
echo "$source_path" | grep -q '[[:blank:]]' &&
die "Out of tree builds are impossible with whitespace in source path."
case "$source_path" in
*[[:blank:]]*) die "Out of tree builds are impossible with whitespace in source path." ;;
esac
test -e "$source_path/config.h" &&
die "Out of tree builds are impossible with config.h in source dir."
fi


Loading…
Cancel
Save