diff options
author | Eric Christopher <echristo@apple.com> | 2010-12-03 07:45:22 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-12-03 07:45:22 +0000 |
commit | 481d402ab03e163e180d2650fae13704858f8d81 (patch) | |
tree | 4b7b2c21936998c1a4986da5fd6a491f3cb592c0 /autoconf | |
parent | 9b391c513e0051289c7013dd9917eb6176724920 (diff) | |
download | external_llvm-481d402ab03e163e180d2650fae13704858f8d81.zip external_llvm-481d402ab03e163e180d2650fae13704858f8d81.tar.gz external_llvm-481d402ab03e163e180d2650fae13704858f8d81.tar.bz2 |
Apparently OS X 10.4 doesn't have __crashreporter_info__.
Try to fix building on the wayback machine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index ee58d8e..b8d4a30 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1321,9 +1321,17 @@ if test "$llvm_cv_enable_libffi" = "yes" ; then AC_CHECK_HEADERS([ffi.h ffi/ffi.h]) fi -dnl Try to find Darwin specific crash reporting library. +dnl Try to find Darwin specific crash reporting libraries. AC_CHECK_HEADERS([CrashReporterClient.h]) +dnl Try to find Darwin specific crash reporting global. +AC_LINK_IFELSE([AC_LANG_PROGRAM([[const char *__crashreporter_info__;]], [[]])],[darwin_crashreport = yes],[darwin_crashreport = no]) +AC_MSG_RESULT($darwin_crashreport) +if test "x$darwin_crashreport = xyes" +then + AC_DEFINE([HAVE_CRASHREPORTER_INFO],[1], + [Define if __crashreporter_info__ exists.]) +fi dnl===-----------------------------------------------------------------------=== dnl=== dnl=== SECTION 7: Check for types and structures |