From 8f4194963239f065f04a24ea59ee65eeb542ec0d Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 17 Feb 2013 23:59:17 -0500 Subject: [PATCH] build: No need to rely on grep for simple glob pattern. --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5cd9ca5..19b6739 100755 --- a/configure +++ b/configure @@ -109,6 +109,7 @@ generate_stdout() echo " VERSION = $VERSION" echo " BUILD_DIR = $P_PWD" echo " SRC_DIR = $BUILD_DIR" + echo " SYSTEM = $SYSTEM" echo " PROFILE = $PROFILE" echo " CC = $CC" echo " COMPILER = $COMPILER" @@ -249,7 +250,7 @@ fi DCORES=2 printf "Detecting operating system......." -SYSTEM=`uname -s 2> /dev/null | grep "^[A-Za-z0-9]*" -o` +SYSTEM=`uname -s 2> /dev/null` case "$SYSTEM" in "SunOS") SYSTEM=solaris @@ -278,7 +279,7 @@ case "$SYSTEM" in DCORES=`sysctl -n hw.ncpu` SYSTEM=darwin ;; - "MINGW32") + MINGW32*) DCORES=2 SYSTEM=mingw32 LDFLAGS="-mthreads $LDFLAGS"