Skip to content

Commit

Permalink
Update configure scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jhogberg committed Dec 19, 2024
1 parent 1042ae2 commit e76656e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erts/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@
/* Define if x86/x86_64 out of order instructions should be synchronized */
#undef ETHR_X86_OUT_OF_ORDER

/* Define to 1 if _Float16 can be converted from/to double. */
#undef FLOAT16_IS_CONVERTIBLE

/* Define to 1 if you have the <arpa/nameser.h> header file. */
#undef HAVE_ARPA_NAMESER_H

Expand Down
31 changes: 31 additions & 0 deletions erts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -19754,6 +19754,37 @@ printf "%s\n" "#define SIZEOF__FLOAT16 $ac_cv_sizeof__Float16" >>confdefs.h



cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
_Float16 x = 0.0;
int
main (void)
{

;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Float16 convertible" >&5
printf %s "checking for _Float16 convertible... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

printf "%s\n" "#define FLOAT16_IS_CONVERTIBLE 1" >>confdefs.h


else case e in #(
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Float16 convertible" >&5
printf %s "checking for _Float16 convertible... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

BITS64=

if test $ac_cv_sizeof_void_p = 8; then
Expand Down

0 comments on commit e76656e

Please sign in to comment.