build: No need to rely on grep for simple glob pattern.

ck_pring
Samy Al Bahra 12 years ago
parent 3a85d746fa
commit 8f41949632

5
configure vendored

@ -109,6 +109,7 @@ generate_stdout()
echo " VERSION = $VERSION" echo " VERSION = $VERSION"
echo " BUILD_DIR = $P_PWD" echo " BUILD_DIR = $P_PWD"
echo " SRC_DIR = $BUILD_DIR" echo " SRC_DIR = $BUILD_DIR"
echo " SYSTEM = $SYSTEM"
echo " PROFILE = $PROFILE" echo " PROFILE = $PROFILE"
echo " CC = $CC" echo " CC = $CC"
echo " COMPILER = $COMPILER" echo " COMPILER = $COMPILER"
@ -249,7 +250,7 @@ fi
DCORES=2 DCORES=2
printf "Detecting operating system......." 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 case "$SYSTEM" in
"SunOS") "SunOS")
SYSTEM=solaris SYSTEM=solaris
@ -278,7 +279,7 @@ case "$SYSTEM" in
DCORES=`sysctl -n hw.ncpu` DCORES=`sysctl -n hw.ncpu`
SYSTEM=darwin SYSTEM=darwin
;; ;;
"MINGW32") MINGW32*)
DCORES=2 DCORES=2
SYSTEM=mingw32 SYSTEM=mingw32
LDFLAGS="-mthreads $LDFLAGS" LDFLAGS="-mthreads $LDFLAGS"

Loading…
Cancel
Save