llvm.org GIT mirror llvm / a4afeef
[autoconf] Fix m4 quoting for newer autotools This simply fixes up quoting of macro invocations to appease newer versions of autotools. http://llvm-reviews.chandlerc.com/D332 Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173878 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 6 years ago
4 changed file(s) with 210 addition(s) and 130 deletion(s). Raw diff Collapse all Expand all
12361236 dnl Verify that GCC is version 3.0 or higher
12371237 if test "$GCC" = "yes"
12381238 then
1239 AC_COMPILE_IFELSE([[#if !defined(__GNUC__) || __GNUC__ < 3
1240 #error Unsupported GCC version
1241 #endif
1242 ]], [], [AC_MSG_ERROR([gcc 3.x required, but you have a lower version])])
1239 AC_COMPILE_IFELSE(
1240 [
1241 AC_LANG_SOURCE([[
1242 #if !defined(__GNUC__) || __GNUC__ < 3
1243 #error Unsupported GCC version
1244 #endif
1245 ]])
1246 ],
1247 [], [AC_MSG_ERROR([gcc 3.x required, but you have a lower version])])
12431248 fi
12441249
12451250 dnl Check for GNU Make. We use its extensions, so don't build without it
14861491 dnl Try to find Darwin specific crash reporting global.
14871492 AC_MSG_CHECKING([__crashreporter_info__])
14881493 AC_LINK_IFELSE(
1489 AC_LANG_SOURCE(
1490 [[extern const char *__crashreporter_info__;
1491 int main() {
1492 __crashreporter_info__ = "test";
1493 return 0;
1494 }
1495 ]]),
1496 AC_MSG_RESULT(yes)
1497 AC_DEFINE(HAVE_CRASHREPORTER_INFO, 1, Can use __crashreporter_info__),
1498 AC_MSG_RESULT(no)
1499 AC_DEFINE(HAVE_CRASHREPORTER_INFO, 0,
1500 Define if __crashreporter_info__ exists.))
1494 [
1495 AC_LANG_SOURCE([[
1496 extern const char *__crashreporter_info__;
1497 int main() {
1498 __crashreporter_info__ = "test";
1499 return 0;
1500 }
1501 ]])
1502 ],
1503 [
1504 AC_MSG_RESULT([yes])
1505 AC_DEFINE([HAVE_CRASHREPORTER_INFO], [1], [Can use __crashreporter_info__])
1506 ],
1507 [
1508 AC_MSG_RESULT([no])
1509 AC_DEFINE([HAVE_CRASHREPORTER_INFO], [0], [Define if __crashreporter_info__ exists.])
1510 ])
15011511
15021512 dnl===-----------------------------------------------------------------------===
15031513 dnl===
15601570 dnl Check Win32 API EnumerateLoadedModules.
15611571 if test "$llvm_cv_os_type" = "MingW" ; then
15621572 AC_MSG_CHECKING([whether EnumerateLoadedModules() accepts new decl])
1563 AC_COMPILE_IFELSE([[#include
1564 #include
1565 extern void foo(PENUMLOADED_MODULES_CALLBACK);
1566 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));]],
1573 AC_COMPILE_IFELSE(
1574 [
1575 AC_LANG_SOURCE([[
1576 #include
1577 #include
1578 extern void foo(PENUMLOADED_MODULES_CALLBACK);
1579 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
1580 ]])
1581 ],
15671582 [
15681583 AC_MSG_RESULT([yes])
15691584 llvm_cv_win32_elmcb_pcstr="PCSTR"
16041619 dnl the C++ compiler.
16051620 AC_LANG_PUSH([C++])
16061621 AC_LINK_IFELSE(
1607 AC_LANG_SOURCE(
1608 [[int main() {
1609 volatile unsigned long val = 1;
1610 __sync_synchronize();
1611 __sync_val_compare_and_swap(&val, 1, 0);
1612 __sync_add_and_fetch(&val, 1);
1613 __sync_sub_and_fetch(&val, 1);
1614 return 0;
1615 }
1616 ]]),
1617 AC_LANG_POP([C++])
1618 AC_MSG_RESULT(yes)
1619 AC_DEFINE(LLVM_HAS_ATOMICS, 1, Has gcc/MSVC atomic intrinsics),
1620 AC_MSG_RESULT(no)
1621 AC_DEFINE(LLVM_HAS_ATOMICS, 0, Has gcc/MSVC atomic intrinsics)
1622 AC_MSG_WARN([LLVM will be built thread-unsafe because atomic builtins are missing]))
1622 [
1623 AC_LANG_SOURCE([[
1624 int main() {
1625 volatile unsigned long val = 1;
1626 __sync_synchronize();
1627 __sync_val_compare_and_swap(&val, 1, 0);
1628 __sync_add_and_fetch(&val, 1);
1629 __sync_sub_and_fetch(&val, 1);
1630 return 0;
1631 }
1632 ]])
1633 ],
1634 [
1635 AC_MSG_RESULT([yes])
1636 AC_DEFINE([LLVM_HAS_ATOMICS], [1], [Has gcc/MSVC atomic intrinsics])
1637 ],
1638 [
1639 AC_MSG_RESULT([no])
1640 AC_DEFINE([LLVM_HAS_ATOMICS], [0], [Has gcc/MSVC atomic intrinsics])
1641 AC_MSG_WARN([LLVM will be built thread-unsafe because atomic builtins are missing])
1642 ])
1643 AC_LANG_POP([C++])
16231644
16241645 dnl===-----------------------------------------------------------------------===
16251646 dnl===
66 AC_LANG_PUSH([C++])
77 ac_save_CXXFLAGS=$CXXFLAGS
88 CXXFLAGS="$CXXFLAGS -pedantic"
9 AC_RUN_IFELSE(
10 AC_LANG_PROGRAM(
11 [#include ],
12 [double x = HUGE_VAL; return x != x; ]),
13 [ac_cv_huge_val_sanity=yes],[ac_cv_huge_val_sanity=no],
14 [ac_cv_huge_val_sanity=yes])
9 AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include ]],
10 [[double x = HUGE_VAL; return x != x;]])],
11 [ac_cv_huge_val_sanity=yes],[ac_cv_huge_val_sanity=no],
12 [ac_cv_huge_val_sanity=yes])
1513 CXXFLAGS=$ac_save_CXXFLAGS
1614 AC_LANG_POP([C++])
1715 ])
0 dnl
1 dnl AC_SINGLE_CXX_CHECK(CACHEVAR, FUNCTION, HEADER, PROGRAM)
1 dnl $1, $2, $3, $4,
2 dnl
2 dnl $1, $2, $3, $4,
3
34 AC_DEFUN([AC_SINGLE_CXX_CHECK],
4 [AC_CACHE_CHECK([for $2 in $3], [$1],
5 [AC_LANG_PUSH([C++])
6 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([#include $3],[$4]),[$1=yes],[$1=no])
7 AC_LANG_POP([C++])])
8 ])
5 [
6 AC_CACHE_CHECK([for $2 in $3], [$1],
7 [
8 AC_LANG_PUSH([C++])
9 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]][$3], [$4])],
10 [$1][[=yes]],
11 [$1][[=no]])
12 AC_LANG_POP([C++])
13 ])
14 ])
915
1217712177 if test "$GCC" = "yes"
1217812178 then
1217912179 cat >conftest.$ac_ext <<_ACEOF
12180 #if !defined(__GNUC__) || __GNUC__ < 3
12181 #error Unsupported GCC version
12182 #endif
12180
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186
12187 #if !defined(__GNUC__) || __GNUC__ < 3
12188 #error Unsupported GCC version
12189 #endif
12190
1218312191
1218412192 _ACEOF
1218512193 rm -f conftest.$ac_objext
1638016388 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
1638116389 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
1638216390 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16391
16392 /* confdefs.h. */
1638416393 _ACEOF
1638516394 cat confdefs.h >>conftest.$ac_ext
1638616395 cat >>conftest.$ac_ext <<_ACEOF
1638716396 /* end confdefs.h. */
16388 extern const char *__crashreporter_info__;
16389 int main() {
16390 __crashreporter_info__ = "test";
16391 return 0;
16392 }
16397
16398 extern const char *__crashreporter_info__;
16399 int main() {
16400 __crashreporter_info__ = "test";
16401 return 0;
16402 }
16403
1639316404
1639416405 _ACEOF
1639516406 rm -f conftest.$ac_objext conftest$ac_exeext
1642616437 ac_status=$?
1642716438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642816439 (exit $ac_status); }; }; then
16440
1642916441 { echo "$as_me:$LINENO: result: yes" >&5
1643016442 echo "${ECHO_T}yes" >&6; }
1643116443
1643316445 #define HAVE_CRASHREPORTER_INFO 1
1643416446 _ACEOF
1643516447
16448
1643616449 else
1643716450 echo "$as_me: failed program was:" >&5
1643816451 sed 's/^/| /' conftest.$ac_ext >&5
1643916452
16440 { echo "$as_me:$LINENO: result: no" >&5
16453
16454 { echo "$as_me:$LINENO: result: no" >&5
1644116455 echo "${ECHO_T}no" >&6; }
1644216456
1644316457 cat >>confdefs.h <<\_ACEOF
1644416458 #define HAVE_CRASHREPORTER_INFO 0
1644516459 _ACEOF
16460
1644616461
1644716462 fi
1644816463
1802518040 fi
1802618041
1802718042
18028 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in " >&5
18043
18044 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in " >&5
1802918045 echo $ECHO_N "checking for srand48/lrand48/drand48 in ... $ECHO_C" >&6; }
1803018046 if test "${ac_cv_func_rand48+set}" = set; then
1803118047 echo $ECHO_N "(cached) $ECHO_C" >&6
1803218048 else
18033 ac_ext=cpp
18049
18050 ac_ext=cpp
1803418051 ac_cpp='$CXXCPP $CPPFLAGS'
1803518052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803618053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803718054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1803818055
18039 cat >conftest.$ac_ext <<_ACEOF
18056 cat >conftest.$ac_ext <<_ACEOF
1804018057 /* confdefs.h. */
1804118058 _ACEOF
1804218059 cat confdefs.h >>conftest.$ac_ext
1809418111 fi
1809518112
1809618113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 ac_ext=c
18114 ac_ext=c
1809818115 ac_cpp='$CPP $CPPFLAGS'
1809918116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810018117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810118118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18119
1810218120
1810318121 fi
1810418122 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
1956919587 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
1957019588 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
1957119589 cat >conftest.$ac_ext <<_ACEOF
19572 #include
19573 #include
19574 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19575 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19590
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596
19597 #include
19598 #include
19599 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19600 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19601
19602
1957619603 _ACEOF
1957719604 rm -f conftest.$ac_objext
1957819605 if { (ac_try="$ac_compile"
1963319660 fi
1963419661
1963519662
19636 { echo "$as_me:$LINENO: checking for isnan in " >&5
19663
19664 { echo "$as_me:$LINENO: checking for isnan in " >&5
1963719665 echo $ECHO_N "checking for isnan in ... $ECHO_C" >&6; }
1963819666 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
1963919667 echo $ECHO_N "(cached) $ECHO_C" >&6
1964019668 else
19641 ac_ext=cpp
19669
19670 ac_ext=cpp
1964219671 ac_cpp='$CXXCPP $CPPFLAGS'
1964319672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964419673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964519674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1964619675
19647 cat >conftest.$ac_ext <<_ACEOF
19676 cat >conftest.$ac_ext <<_ACEOF
1964819677 /* confdefs.h. */
1964919678 _ACEOF
1965019679 cat confdefs.h >>conftest.$ac_ext
1970219731 fi
1970319732
1970419733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705 ac_ext=c
19734 ac_ext=c
1970619735 ac_cpp='$CPP $CPPFLAGS'
1970719736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970819737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970919738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971019739
19740
1971119741 fi
1971219742 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
1971319743 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
1972119751
1972219752 fi
1972319753
19724 { echo "$as_me:$LINENO: checking for isnan in " >&5
19754
19755 { echo "$as_me:$LINENO: checking for isnan in " >&5
1972519756 echo $ECHO_N "checking for isnan in ... $ECHO_C" >&6; }
1972619757 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
1972719758 echo $ECHO_N "(cached) $ECHO_C" >&6
1972819759 else
19729 ac_ext=cpp
19760
19761 ac_ext=cpp
1973019762 ac_cpp='$CXXCPP $CPPFLAGS'
1973119763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973219764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973319765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1973419766
19735 cat >conftest.$ac_ext <<_ACEOF
19767 cat >conftest.$ac_ext <<_ACEOF
1973619768 /* confdefs.h. */
1973719769 _ACEOF
1973819770 cat confdefs.h >>conftest.$ac_ext
1979019822 fi
1979119823
1979219824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 ac_ext=c
19825 ac_ext=c
1979419826 ac_cpp='$CPP $CPPFLAGS'
1979519827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979619828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979719829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979819830
19831
1979919832 fi
1980019833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
1980119834 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
1980819841
1980919842 fi
1981019843
19811 { echo "$as_me:$LINENO: checking for std::isnan in " >&5
19844
19845 { echo "$as_me:$LINENO: checking for std::isnan in " >&5
1981219846 echo $ECHO_N "checking for std::isnan in ... $ECHO_C" >&6; }
1981319847 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
1981419848 echo $ECHO_N "(cached) $ECHO_C" >&6
1981519849 else
19816 ac_ext=cpp
19850
19851 ac_ext=cpp
1981719852 ac_cpp='$CXXCPP $CPPFLAGS'
1981819853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981919854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982019855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1982119856
19822 cat >conftest.$ac_ext <<_ACEOF
19857 cat >conftest.$ac_ext <<_ACEOF
1982319858 /* confdefs.h. */
1982419859 _ACEOF
1982519860 cat confdefs.h >>conftest.$ac_ext
1987719912 fi
1987819913
1987919914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 ac_ext=c
19915 ac_ext=c
1988119916 ac_cpp='$CPP $CPPFLAGS'
1988219917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1988319918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988419919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988519920
19921
1988619922 fi
1988719923 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
1988819924 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
1989719933
1989819934
1989919935
19900 { echo "$as_me:$LINENO: checking for isinf in " >&5
19936
19937 { echo "$as_me:$LINENO: checking for isinf in " >&5
1990119938 echo $ECHO_N "checking for isinf in ... $ECHO_C" >&6; }
1990219939 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
1990319940 echo $ECHO_N "(cached) $ECHO_C" >&6
1990419941 else
19905 ac_ext=cpp
19942
19943 ac_ext=cpp
1990619944 ac_cpp='$CXXCPP $CPPFLAGS'
1990719945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990819946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990919947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1991019948
19911 cat >conftest.$ac_ext <<_ACEOF
19949 cat >conftest.$ac_ext <<_ACEOF
1991219950 /* confdefs.h. */
1991319951 _ACEOF
1991419952 cat confdefs.h >>conftest.$ac_ext
1996620004 fi
1996720005
1996820006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19969 ac_ext=c
20007 ac_ext=c
1997020008 ac_cpp='$CPP $CPPFLAGS'
1997120009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997220010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997320011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997420012
20013
1997520014 fi
1997620015 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
1997720016 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
1998420023
1998520024 fi
1998620025
19987 { echo "$as_me:$LINENO: checking for isinf in " >&5
20026
20027 { echo "$as_me:$LINENO: checking for isinf in " >&5
1998820028 echo $ECHO_N "checking for isinf in ... $ECHO_C" >&6; }
1998920029 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
1999020030 echo $ECHO_N "(cached) $ECHO_C" >&6
1999120031 else
19992 ac_ext=cpp
20032
20033 ac_ext=cpp
1999320034 ac_cpp='$CXXCPP $CPPFLAGS'
1999420035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999520036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999620037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1999720038
19998 cat >conftest.$ac_ext <<_ACEOF
20039 cat >conftest.$ac_ext <<_ACEOF
1999920040 /* confdefs.h. */
2000020041 _ACEOF
2000120042 cat confdefs.h >>conftest.$ac_ext
2005320094 fi
2005420095
2005520096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056 ac_ext=c
20097 ac_ext=c
2005720098 ac_cpp='$CPP $CPPFLAGS'
2005820099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005920100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006020101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006120102
20103
2006220104 fi
2006320105 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
2006420106 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
2007120113
2007220114 fi
2007320115
20074 { echo "$as_me:$LINENO: checking for std::isinf in " >&5
20116
20117 { echo "$as_me:$LINENO: checking for std::isinf in " >&5
2007520118 echo $ECHO_N "checking for std::isinf in ... $ECHO_C" >&6; }
2007620119 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
2007720120 echo $ECHO_N "(cached) $ECHO_C" >&6
2007820121 else
20079 ac_ext=cpp
20122
20123 ac_ext=cpp
2008020124 ac_cpp='$CXXCPP $CPPFLAGS'
2008120125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008220126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008320127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2008420128
20085 cat >conftest.$ac_ext <<_ACEOF
20129 cat >conftest.$ac_ext <<_ACEOF
2008620130 /* confdefs.h. */
2008720131 _ACEOF
2008820132 cat confdefs.h >>conftest.$ac_ext
2014020184 fi
2014120185
2014220186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20143 ac_ext=c
20187 ac_ext=c
2014420188 ac_cpp='$CPP $CPPFLAGS'
2014520189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014620190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014720191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014820192
20193
2014920194 fi
2015020195 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
2015120196 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
2015820203
2015920204 fi
2016020205
20161 { echo "$as_me:$LINENO: checking for finite in " >&5
20206
20207 { echo "$as_me:$LINENO: checking for finite in " >&5
2016220208 echo $ECHO_N "checking for finite in ... $ECHO_C" >&6; }
2016320209 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
2016420210 echo $ECHO_N "(cached) $ECHO_C" >&6
2016520211 else
20166 ac_ext=cpp
20212
20213 ac_ext=cpp
2016720214 ac_cpp='$CXXCPP $CPPFLAGS'
2016820215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016920216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017020217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2017120218
20172 cat >conftest.$ac_ext <<_ACEOF
20219 cat >conftest.$ac_ext <<_ACEOF
2017320220 /* confdefs.h. */
2017420221 _ACEOF
2017520222 cat confdefs.h >>conftest.$ac_ext
2022720274 fi
2022820275
2022920276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230 ac_ext=c
20277 ac_ext=c
2023120278 ac_cpp='$CPP $CPPFLAGS'
2023220279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023320280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023420281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20282
2023520283
2023620284 fi
2023720285 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
2084920897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2085020898
2085120899 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h. */
20900
20901 /* confdefs.h. */
2085320902 _ACEOF
2085420903 cat confdefs.h >>conftest.$ac_ext
2085520904 cat >>conftest.$ac_ext <<_ACEOF
2085620905 /* end confdefs.h. */
20857 int main() {
20858 volatile unsigned long val = 1;
20859 __sync_synchronize();
20860 __sync_val_compare_and_swap(&val, 1, 0);
20861 __sync_add_and_fetch(&val, 1);
20862 __sync_sub_and_fetch(&val, 1);
20863 return 0;
20864 }
20906
20907 int main() {
20908 volatile unsigned long val = 1;
20909 __sync_synchronize();
20910 __sync_val_compare_and_swap(&val, 1, 0);
20911 __sync_add_and_fetch(&val, 1);
20912 __sync_sub_and_fetch(&val, 1);
20913 return 0;
20914 }
20915
2086520916
2086620917 _ACEOF
2086720918 rm -f conftest.$ac_objext conftest$ac_exeext
2087820929 cat conftest.err >&5
2087920930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088020931 (exit $ac_status); } &&
20881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2088220933 { (case "(($ac_try" in
2088320934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088420935 *) ac_try_echo=$ac_try;;
2089820949 ac_status=$?
2089920950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090020951 (exit $ac_status); }; }; then
20901 ac_ext=c
20952
20953 { echo "$as_me:$LINENO: result: yes" >&5
20954 echo "${ECHO_T}yes" >&6; }
20955
20956 cat >>confdefs.h <<\_ACEOF
20957 #define LLVM_HAS_ATOMICS 1
20958 _ACEOF
20959
20960
20961 else
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20964
20965
20966 { echo "$as_me:$LINENO: result: no" >&5
20967 echo "${ECHO_T}no" >&6; }
20968
20969 cat >>confdefs.h <<\_ACEOF
20970 #define LLVM_HAS_ATOMICS 0
20971 _ACEOF
20972
20973 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20974 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20975
20976 fi
20977
20978 rm -f core conftest.err conftest.$ac_objext \
20979 conftest$ac_exeext conftest.$ac_ext
20980 ac_ext=c
2090220981 ac_cpp='$CPP $CPPFLAGS'
2090320982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090420983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090520984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090620985
20907 { echo "$as_me:$LINENO: result: yes" >&5
20908 echo "${ECHO_T}yes" >&6; }
20909
20910 cat >>confdefs.h <<\_ACEOF
20911 #define LLVM_HAS_ATOMICS 1
20912 _ACEOF
20913
20914 else
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 { echo "$as_me:$LINENO: result: no" >&5
20919 echo "${ECHO_T}no" >&6; }
20920
20921 cat >>confdefs.h <<\_ACEOF
20922 #define LLVM_HAS_ATOMICS 0
20923 _ACEOF
20924
20925 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20926 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20927 fi
20928
20929 rm -f core conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
2093120986
2093220987
2093320988 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then