summaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-17 06:42:12 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-17 06:42:12 +0000
commitbd356bb6d247b18723734d4d1d0b32191cfb1a9a (patch)
tree1882cabb94561f964beaa242d722700c4239ab25 /libstdc++-v3/configure
parentc8aed844acdc89884d630c7e3266ecd8d4101847 (diff)
downloadgcc-bd356bb6d247b18723734d4d1d0b32191cfb1a9a.tar.gz
2016-04-17 Basile Starynkevitch <basile@starynkevitch.net>
{{merging with even more of GCC 6, using subversion 1.9 svn merge -r232606:233050 ^/trunk }} [gcc/] 2016-04-17 Basile Starynkevitch <basile@starynkevitch.net> * melt/libmelt-ana-gimple.melt: (gimple_transaction): Use gimple_transaction_label_norm. Not sure that (gccif "6." ...) does what it should... git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@235078 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-xlibstdc++-v3/configure59
1 files changed, 44 insertions, 15 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 5e91deb0016..efba47a1b04 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -18177,14 +18177,14 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_overload" >&5
$as_echo "$glibcxx_cv_math11_overload" >&6; }
;;
- *-*-*gnu* | *-*-aix*)
+ *-*-*gnu* | *-*-aix* | *-*-hpux*)
# If <math.h> defines the obsolete isinf(double) and isnan(double)
# functions (instead of or as well as the C99 generic macros) then we
# can't define std::isinf(double) and std::isnan(double) in <cmath>
# and must use the ones from <math.h> instead.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isinf and isnan functions in <math.h>" >&5
-$as_echo_n "checking for obsolete isinf and isnan functions in <math.h>... " >&6; }
- if test "${glibcxx_cv_obsolete_isinf_isnan+set}" = set; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isinf function in <math.h>" >&5
+$as_echo_n "checking for obsolete isinf function in <math.h>... " >&6; }
+ if test "${glibcxx_cv_obsolete_isinf+set}" = set; then :
$as_echo_n "(cached) " >&6
else
@@ -18192,38 +18192,67 @@ else
/* end confdefs.h. */
#include <math.h>
#undef isinf
- #undef isnan
namespace std {
using ::isinf;
bool isinf(float);
bool isinf(long double);
+ }
+ using std::isinf;
+ bool b = isinf(0.0);
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ glibcxx_cv_obsolete_isinf=yes
+else
+ glibcxx_cv_obsolete_isinf=no
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isinf" >&5
+$as_echo "$glibcxx_cv_obsolete_isinf" >&6; }
+ if test $glibcxx_cv_obsolete_isinf = yes; then
+
+$as_echo "#define HAVE_OBSOLETE_ISINF 1" >>confdefs.h
+
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isnan function in <math.h>" >&5
+$as_echo_n "checking for obsolete isnan function in <math.h>... " >&6; }
+ if test "${glibcxx_cv_obsolete_isnan+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <math.h>
+ #undef isnan
+ namespace std {
using ::isnan;
bool isnan(float);
bool isnan(long double);
}
- using std::isinf;
using std::isnan;
- bool b = isinf(0.0) || isnan(0.0);
+ bool b = isnan(0.0);
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
- glibcxx_cv_obsolete_isinf_isnan=yes
+ glibcxx_cv_obsolete_isnan=yes
else
- glibcxx_cv_obsolete_isinf_isnan=no
+ glibcxx_cv_obsolete_isnan=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isnan" >&5
+$as_echo "$glibcxx_cv_obsolete_isnan" >&6; }
+ if test $glibcxx_cv_obsolete_isnan = yes; then
-
- if test $glibcxx_cv_obsolete_isinf_isnan = yes; then
-
-$as_echo "#define HAVE_OBSOLETE_ISINF_ISNAN 1" >>confdefs.h
+$as_echo "#define HAVE_OBSOLETE_ISNAN 1" >>confdefs.h
fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isinf_isnan" >&5
-$as_echo "$glibcxx_cv_obsolete_isinf_isnan" >&6; }
;;
esac