Added check if getconf exists. (CygWin does not provide that)
Added CygWin as an acceptable "OS".
# Flags section
##############################################################################
-CPUS=$(getconf _NPROCESSORS_ONLN)
+if which getconf > /dev/null; then
+ CPUS=$(getconf _NPROCESSORS_ONLN)
+else
+ CPUS=1
+fi
PARALLEL=-j$((CPUS + 1))
echo "${CPUS} cpu's detected running make with '${PARALLEL}' flag"
--with-mpc=${DARWIN_OPT_PATH} \
-with-libiconv-prefix=${DARWIN_OPT_PATH}"
;;
+ CYGWIN*)
+ echo "Found CygWin that means Windows most likely."
+ ;;
*)
echo "Found unknown OS. Aborting!"
exit 1