diff options
author | midipix <writeonce@midipix.org> | 2016-06-25 15:48:22 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-06-25 17:31:46 -0400 |
commit | 16d92c851dc1c2ce1cf82aee90cf7353cf9fdd69 (patch) | |
tree | ab0e34c619f1eb10c3e88cbcbd4ec968ed66f313 /configure | |
parent | 71fd88363a7de0d0115b5dbace4888d50c5b3547 (diff) | |
download | apimagic-16d92c851dc1c2ce1cf82aee90cf7353cf9fdd69.tar.bz2 apimagic-16d92c851dc1c2ce1cf82aee90cf7353cf9fdd69.tar.xz |
build system: configure test optimization: use `awk` instead of `grep | cut`.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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"` |