Re: failure to detect format of `double' on MS-Windows

2019-09-04 Thread Torbjörn Granlund
Vincent Lefevre  writes:

  With 17862:b1ea8c11ae1e, I get:

  $ ./configure '--host=i586-mingw32msvc' '--disable-shared'
  'host_alias=i586-mingw32msvc'
  [...]
  checking format of `double' floating point... od: conftest: No such
  file or directory
  od: conftest: No such file or directory
  unknown 
  configure: WARNING: Could not determine float format.
  configure: WARNING: Conversions to and from "double" may be slow.
  [...]

  One needs to change "conftest" to "conftest$EXEEXT".
  Patch attached.

The compilation command omits $EXEEXT and so does the od command.  Thet
looks consistent to me, so it should work.  Why does that not work on
DOS?  Will the compiler naughtily append .exe anyway?

-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


failure to detect format of `double' on MS-Windows

2019-09-04 Thread Vincent Lefevre
Hi,

With 17862:b1ea8c11ae1e, I get:

$ ./configure '--host=i586-mingw32msvc' '--disable-shared' 
'host_alias=i586-mingw32msvc'
[...]
checking format of `double' floating point... od: conftest: No such file or 
directory
od: conftest: No such file or directory
unknown 
configure: WARNING: Could not determine float format.
configure: WARNING: Conversions to and from "double" may be slow.
[...]

One needs to change "conftest" to "conftest$EXEEXT".
Patch attached.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
diff -r b1ea8c11ae1e acinclude.m4
--- a/acinclude.m4  Wed Sep 04 06:18:08 2019 +0200
+++ b/acinclude.m4  Wed Sep 04 15:15:00 2019 +0200
@@ -3316,7 +3316,7 @@
   return 0;
 }]
 EOF
-gmp_compile="$CC $CFLAGS $CPPFLAGS conftest.c -o conftest >_FD_CC 2>&1"
+gmp_compile="$CC $CFLAGS $CPPFLAGS conftest.c -o conftest$EXEEXT >_FD_CC 
2>&1"
 if AC_TRY_EVAL(gmp_compile); then
 cat >conftest.awk <<\EOF
 [
@@ -3469,11 +3469,11 @@
 }
 ]
 EOF
-  gmp_cv_c_double_format=`od -b conftest | $AWK -f conftest.awk`
+  gmp_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
   case $gmp_cv_c_double_format in
   unknown*)
-echo "cannot match anything, conftest contains" >_FD_CC
-od -b conftest >_FD_CC
+echo "cannot match anything, conftest$EXEEXT contains" >_FD_CC
+od -b conftest$EXEEXT >_FD_CC
 ;;
   esac
 else
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs