X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=autoconf%2Fm4%2Fhuge_val.m4;h=d224d7cb64eb8ae319da6eda032afcb9a75f3535;hb=5be77762a3aa434ee877b0a03b98b5c3a7571918;hp=7ef9dcae6943081bf4946fd96ee1db7820794bc7;hpb=b2bc6e4ad6a15fd93bc256f26bcb2a05c052fb25;p=oota-llvm.git diff --git a/autoconf/m4/huge_val.m4 b/autoconf/m4/huge_val.m4 index 7ef9dcae694..d224d7cb64e 100644 --- a/autoconf/m4/huge_val.m4 +++ b/autoconf/m4/huge_val.m4 @@ -1,18 +1,16 @@ # -# This function determins if the the HUGE_VAL macro is compilable with the +# This function determins if the HUGE_VAL macro is compilable with the # -pedantic switch or not. XCode < 2.4.1 doesn't get it right. # AC_DEFUN([AC_HUGE_VAL_CHECK],[ AC_CACHE_CHECK([for HUGE_VAL sanity], [ac_cv_huge_val_sanity],[ AC_LANG_PUSH([C++]) ac_save_CXXFLAGS=$CXXFLAGS - CXXFLAGS+=" -pedantic" - AC_RUN_IFELSE( - AC_LANG_PROGRAM( - [#include ], - [double x = HUGE_VAL; return x != x; ]), - [ac_cv_huge_val_sanity=yes],[ac_cv_huge_val_sanity=no], - [ac_cv_huge_val_sanity=yes]) + CXXFLAGS="$CXXFLAGS -pedantic" + AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[double x = HUGE_VAL; return x != x;]])], + [ac_cv_huge_val_sanity=yes],[ac_cv_huge_val_sanity=no], + [ac_cv_huge_val_sanity=yes]) CXXFLAGS=$ac_save_CXXFLAGS AC_LANG_POP([C++]) ])