summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-25 15:48:22 -0400
committermidipix <writeonce@midipix.org>2016-09-21 19:45:54 -0400
commit233b7788c5696a54552245a2184b0986041215f8 (patch)
treefaa5d50ea17d84687962291256570cedb368e70f
parent40a65452bda385e41017ec095207a1ba02ea8982 (diff)
downloadbcparser-233b7788c5696a54552245a2184b0986041215f8.tar.bz2
bcparser-233b7788c5696a54552245a2184b0986041215f8.tar.xz
build system: configure test optimization: use `awk` instead of `grep | cut`.
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 0593de5..dcce5fc 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"`