From 0947de4fa8e5b33a4906524b29215d0d52624fec Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 25 2016 21:34:23 +0000 Subject: build system: configure test optimization: use `awk` instead of `grep | cut`. --- diff --git a/configure b/configure index 250655e..309b128 100755 --- a/configure +++ b/configure @@ -314,8 +314,7 @@ native_defaults() mb_native_os=`uname | tr '[:upper:]' '[:lower:]'` mb_native_os_sizeof_pointer=`$mb_native_cc -dM -E - < /dev/null \ - | grep __SIZEOF_POINTER__ \ - | cut -d ' ' -f3` + | awk '$2 == "__SIZEOF_POINTER__" { print $3 }'` mb_native_os_bits=`expr '8' '*' '0'"$mb_native_os_sizeof_pointer"`