summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-03-13 23:11:02 +0100
committerKevin Ryde <user42@zip.com.au>2002-03-13 23:11:02 +0100
commit3fbef3d16c96115aff2bc54d288cae66c852f7fb (patch)
treef72f2adeb668ad4c58d14e89fde5f6a70606b195 /acinclude.m4
parent809503ecb0f6134679525842d1da78ec9fdeae65 (diff)
downloadgmp-3fbef3d16c96115aff2bc54d288cae66c852f7fb.tar.gz
Use $AWK in:
* acinclude.m4, configure.in (GMP_C_DOUBLE_FORMAT): New macro.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m415
1 files changed, 10 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 45da6f237..021aee130 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1818,10 +1818,15 @@ dnl GMP_C_DOUBLE_FORMAT
dnl -------------------
dnl Determine the floating point format.
dnl
-dnl The number -123456789.0 should appear in the object file, with the
-dnl special start and end sequences to avoid false matches. "od -b" is
-dnl supported even by Unix V7, and the awk used to do the matching doesn't
-dnl use functions or anything, so even an "old" awk will suffice.
+dnl The object file is grepped, in order to work when cross compiling. A
+dnl start and end sequence is included to avoid false matches, and
+dnl allowance is made for the desired data crossing an "od -b" line
+dnl boundary. The test number is a small integer so it should appear
+dnl exactly, no rounding or truncation etc.
+dnl
+dnl "od -b", incidentally, is supported even by Unix V7, and the awk script
+dnl used doesn't have functions or anything, so even an "old" awk should
+dnl suffice.
AC_DEFUN(GMP_C_DOUBLE_FORMAT,
[AC_REQUIRE([AC_PROG_CC])
@@ -1940,7 +1945,7 @@ END {
}
]
EOF
- gmp_cv_c_double_format=`od -b conftest.$OBJEXT | awk -f conftest.awk`
+ gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
case $gmp_cv_c_double_format in
unknown*)
echo "cannot match anything, conftest.$OBJEXT contains" >&AC_FD_CC