[GIT] ppl/ppl(master): AC_RUN_IFELSE invocations now have a safe action for cross-compiling.

Module: ppl/ppl Branch: master Commit: 1b1eb0199360341a2a250a5843b2406c87514728 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=1b1eb01993603...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Fri Mar 20 15:32:51 2009 +0100
AC_RUN_IFELSE invocations now have a safe action for cross-compiling.
---
m4/ac_check_fpu_control.m4 | 2 ++ m4/ac_cxx_double_binary_format.m4 | 6 ++++-- m4/ac_cxx_double_exact_output.m4 | 3 ++- m4/ac_cxx_float_binary_format.m4 | 5 +++-- m4/ac_cxx_float_exact_output.m4 | 3 ++- m4/ac_cxx_long_double_binary_format.m4 | 17 ++++++++++++----- m4/ac_cxx_long_double_exact_output.m4 | 3 ++- 7 files changed, 27 insertions(+), 12 deletions(-)
diff --git a/m4/ac_check_fpu_control.m4 b/m4/ac_check_fpu_control.m4 index 1e717ee..ae2aa6e 100644 --- a/m4/ac_check_fpu_control.m4 +++ b/m4/ac_check_fpu_control.m4 @@ -114,6 +114,8 @@ main() { AC_MSG_RESULT(yes) ac_cv_can_control_fpu=1, AC_MSG_RESULT(no) + ac_cv_can_control_fpu=0, + AC_MSG_RESULT(no) ac_cv_can_control_fpu=0 ) AM_CONDITIONAL(CAN_CONTROL_FPU, test $ac_cv_can_control_fpu = 1) diff --git a/m4/ac_cxx_double_binary_format.m4 b/m4/ac_cxx_double_binary_format.m4 index c6792d9..5d52890 100644 --- a/m4/ac_cxx_double_binary_format.m4 +++ b/m4/ac_cxx_double_binary_format.m4 @@ -29,7 +29,7 @@ ac_save_LIBS="$LIBS" AC_LANG_PUSH(C++)
AC_MSG_CHECKING([the binary format of C++ doubles]) -ac_cxx_double_binary_format=unknown + AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <limits> #ifdef HAVE_STDINT_H @@ -91,7 +91,9 @@ main() { ]])], AC_DEFINE(CXX_DOUBLE_BINARY_FORMAT, PPL_FLOAT_IEEE754_DOUBLE, [The unique code of the binary format of C++ doubles, if supported; undefined otherwise.]) - ac_cxx_double_binary_format="IEEE754 Double Precision") + ac_cxx_double_binary_format="IEEE754 Double Precision", + ac_cxx_double_binary_format=unknown, + ac_cxx_double_binary_format=unknown)
AC_MSG_RESULT($ac_cxx_double_binary_format)
diff --git a/m4/ac_cxx_double_exact_output.m4 b/m4/ac_cxx_double_exact_output.m4 index 2223b79..1bed488 100644 --- a/m4/ac_cxx_double_exact_output.m4 +++ b/m4/ac_cxx_double_exact_output.m4 @@ -28,7 +28,6 @@ ac_save_LIBS="$LIBS" AC_LANG_PUSH(C++)
AC_MSG_CHECKING([whether C++ provides exact output for doubles]) -ac_cxx_double_exact_output=unknown
AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <limits> @@ -127,6 +126,8 @@ main() { AC_MSG_RESULT(yes) ac_cxx_double_exact_output=1, AC_MSG_RESULT(no) + ac_cxx_double_exact_output=0, + AC_MSG_RESULT(no) ac_cxx_double_exact_output=0)
AC_DEFINE_UNQUOTED(CXX_DOUBLE_EXACT_OUTPUT, $ac_cxx_double_exact_output, diff --git a/m4/ac_cxx_float_binary_format.m4 b/m4/ac_cxx_float_binary_format.m4 index f59a9f6..4e91fd4 100644 --- a/m4/ac_cxx_float_binary_format.m4 +++ b/m4/ac_cxx_float_binary_format.m4 @@ -27,7 +27,6 @@ ac_save_LIBS="$LIBS" AC_LANG_PUSH(C++)
AC_MSG_CHECKING([the binary format of C++ floats]) -ac_cxx_float_binary_format=unknown AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <limits> #ifdef HAVE_STDINT_H @@ -80,7 +79,9 @@ main() { ]])], AC_DEFINE(CXX_FLOAT_BINARY_FORMAT, PPL_FLOAT_IEEE754_SINGLE, [The binary format of C++ floats, if supported; undefined otherwise.]) - ac_cxx_float_binary_format="IEEE754 Single Precision") + ac_cxx_float_binary_format="IEEE754 Single Precision", + ac_cxx_float_binary_format=unknown, + ac_cxx_float_binary_format=unknown)
AC_MSG_RESULT($ac_cxx_float_binary_format)
diff --git a/m4/ac_cxx_float_exact_output.m4 b/m4/ac_cxx_float_exact_output.m4 index 9f0eb2b..79c8a0d 100644 --- a/m4/ac_cxx_float_exact_output.m4 +++ b/m4/ac_cxx_float_exact_output.m4 @@ -28,7 +28,6 @@ ac_save_LIBS="$LIBS" AC_LANG_PUSH(C++)
AC_MSG_CHECKING([whether C++ provides exact output for floats]) -ac_cxx_float_exact_output=unknown
AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <limits> @@ -118,6 +117,8 @@ main() { AC_MSG_RESULT(yes) ac_cxx_float_exact_output=1, AC_MSG_RESULT(no) + ac_cxx_float_exact_output=0, + AC_MSG_RESULT(no) ac_cxx_float_exact_output=0)
AC_DEFINE_UNQUOTED(CXX_FLOAT_EXACT_OUTPUT, $ac_cxx_float_exact_output, diff --git a/m4/ac_cxx_long_double_binary_format.m4 b/m4/ac_cxx_long_double_binary_format.m4 index e7d9ce8..678cc10 100644 --- a/m4/ac_cxx_long_double_binary_format.m4 +++ b/m4/ac_cxx_long_double_binary_format.m4 @@ -27,7 +27,6 @@ ac_save_LIBS="$LIBS" AC_LANG_PUSH(C++)
AC_MSG_CHECKING([the binary format of C++ long doubles]) -ac_cxx_long_double_binary_format=unknown
AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <limits> @@ -90,7 +89,9 @@ main() { ]])], AC_DEFINE(CXX_LONG_DOUBLE_BINARY_FORMAT, PPL_FLOAT_INTEL_DOUBLE_EXTENDED, [The unique code of the binary format of C++ long doubles, if supported; undefined otherwise.]) - ac_cxx_long_double_binary_format="Intel Double-Extended") + ac_cxx_long_double_binary_format="Intel Double-Extended", + ac_cxx_long_double_binary_format=unknown, + ac_cxx_long_double_binary_format=unknown)
if test x"$ac_cxx_long_double_binary_format" = x"unknown" then @@ -168,7 +169,9 @@ main() { ]])], AC_DEFINE(CXX_LONG_DOUBLE_BINARY_FORMAT, PPL_FLOAT_IEEE754_QUAD, [The unique code of the binary format of C++ long doubles, if supported; undefined otherwise.]) - ac_cxx_long_double_binary_format="IEEE754 Quad Precision") + ac_cxx_long_double_binary_format="IEEE754 Quad Precision", + ac_cxx_long_double_binary_format=unknown, + ac_cxx_long_double_binary_format=unknown) fi
if test x"$ac_cxx_long_double_binary_format" = x"unknown" @@ -234,7 +237,9 @@ main() { ]])], AC_DEFINE(CXX_LONG_DOUBLE_BINARY_FORMAT, PPL_FLOAT_INTEL_DOUBLE_EXTENDED, [The unique code of the binary format of C++ long doubles, if supported; undefined otherwise.]) - ac_cxx_long_double_binary_format="Intel Double-Extended") + ac_cxx_long_double_binary_format="Intel Double-Extended", + ac_cxx_long_double_binary_format=unknown, + ac_cxx_long_double_binary_format=unknown) fi
if test x"$ac_cxx_long_double_binary_format" = x"unknown" @@ -300,7 +305,9 @@ main() { ]])], AC_DEFINE(CXX_LONG_DOUBLE_BINARY_FORMAT, PPL_FLOAT_IEEE754_DOUBLE, [The unique code of the binary format of C++ long doubles, if supported; undefined otherwise.]) - ac_cxx_long_double_binary_format="IEEE754 Double Precision") + ac_cxx_long_double_binary_format="IEEE754 Double Precision", + ac_cxx_long_double_binary_format=unknown, + ac_cxx_long_double_binary_format=unknown) fi
AC_MSG_RESULT($ac_cxx_long_double_binary_format) diff --git a/m4/ac_cxx_long_double_exact_output.m4 b/m4/ac_cxx_long_double_exact_output.m4 index 1b45409..9c0055d 100644 --- a/m4/ac_cxx_long_double_exact_output.m4 +++ b/m4/ac_cxx_long_double_exact_output.m4 @@ -29,7 +29,6 @@ ac_save_LIBS="$LIBS" AC_LANG_PUSH(C++)
AC_MSG_CHECKING([whether C++ provides exact output for long doubles]) -ac_cxx_long_double_exact_output=unknown
AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <limits> @@ -241,6 +240,8 @@ main() { AC_MSG_RESULT(yes) ac_cxx_long_double_exact_output=1, AC_MSG_RESULT(no) + ac_cxx_long_double_exact_output=0, + AC_MSG_RESULT(no) ac_cxx_long_double_exact_output=0)
AC_DEFINE_UNQUOTED(CXX_LONG_DOUBLE_EXACT_OUTPUT, $ac_cxx_long_double_exact_output,
participants (1)
-
Roberto Bagnara