summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-25 15:48:22 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:46 -0500
commit8add595b7c5fbcf6ec42a9c6ab9ec877ea0c4f8b (patch)
tree720812fe81d98b2cba2da7057ecd5b6ee28f1c69 /configure
parent12ab65bf391f5906bc168160cb9c3d455ccb547b (diff)
downloadmdso-8add595b7c5fbcf6ec42a9c6ab9ec877ea0c4f8b.tar.bz2
mdso-8add595b7c5fbcf6ec42a9c6ab9ec877ea0c4f8b.tar.xz
build system: configure test optimization: use `awk` instead of `grep | cut`.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
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"`