llvm.org GIT mirror llvm / 4411fbe
Pull in the libCrashReporterClient.a information with a warning comment. Remove library check and regenerate configure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107028 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 9 years ago
4 changed file(s) with 9 addition(s) and 98 deletion(s). Raw diff Collapse all Expand all
12471247 AC_DEFINE_UNQUOTED([USE_OPROFILE],$USE_OPROFILE,
12481248 [Define if we have the oprofile JIT-support library])
12491249
1250 dnl gCRAnnotations isn't the function we care about, but it's the only
1251 dnl thing exported.
1252 AC_CHECK_LIB(CrashReporterClient, gCRAnnotations)
1253
12541250 dnl===-----------------------------------------------------------------------===
12551251 dnl===
12561252 dnl=== SECTION 6: Check for header files
1477414774
1477514775
1477614776
14777 { echo "$as_me:$LINENO: checking for gCRAnnotations in -lCrashReporterClient" >&5
14778 echo $ECHO_N "checking for gCRAnnotations in -lCrashReporterClient... $ECHO_C" >&6; }
14779 if test "${ac_cv_lib_CrashReporterClient_gCRAnnotations+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782 ac_check_lib_save_LIBS=$LIBS
14783 LIBS="-lCrashReporterClient $LIBS"
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790
14791 /* Override any GCC internal prototype to avoid an error.
14792 Use char because int might match the return type of a GCC
14793 builtin and then its argument prototype would still apply. */
14794 #ifdef __cplusplus
14795 extern "C"
14796 #endif
14797 char gCRAnnotations ();
14798 int
14799 main ()
14800 {
14801 return gCRAnnotations ();
14802 ;
14803 return 0;
14804 }
14805 _ACEOF
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (ac_try="$ac_link"
14808 case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_link") 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14821 { (case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14824 esac
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_try") 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest$ac_exeext'
14831 { (case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_try") 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_cv_lib_CrashReporterClient_gCRAnnotations=yes
14841 else
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14844
14845 ac_cv_lib_CrashReporterClient_gCRAnnotations=no
14846 fi
14847
14848 rm -f core conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 LIBS=$ac_check_lib_save_LIBS
14851 fi
14852 { echo "$as_me:$LINENO: result: $ac_cv_lib_CrashReporterClient_gCRAnnotations" >&5
14853 echo "${ECHO_T}$ac_cv_lib_CrashReporterClient_gCRAnnotations" >&6; }
14854 if test $ac_cv_lib_CrashReporterClient_gCRAnnotations = yes; then
14855 cat >>confdefs.h <<_ACEOF
14856 #define HAVE_LIBCRASHREPORTERCLIENT 1
14857 _ACEOF
14858
14859 LIBS="-lCrashReporterClient $LIBS"
14860
14861 fi
14862
14863
14864
1486514777
1486614778
1486714779
177177 /* Set to 1 if the isnan function is found in */
178178 #undef HAVE_ISNAN_IN_MATH_H
179179
180 /* Define to 1 if you have the `CrashReporterClient' library
181 (-lCrashReporterClient). */
182 #undef HAVE_LIBCRASHREPORTERCLIENT
183
184180 /* Define if you have the libdl library or equivalent. */
185181 #undef HAVE_LIBDL
186182
5353 OS.flush();
5454 }
5555
56 // Integrate with crash reporter.
57 #if defined (__APPLE__) && !defined (HAVE_CRASHREPORTERCLIENT_H)
56 // Integrate with crash reporter libraries.
57 #if defined (__APPLE__) && defined (HAVE_CRASHREPORTERCLIENT_H)
58 // If any clients of llvm try to link to libCrashReporterClient.a themselves,
59 // only one crash info struct will be used.
60 CRASH_REPORTER_CLIENT_HIDDEN
61 struct crashreporter_annotations_t gCRAnnotations
62 __attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION)))
63 = { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0 };
64 #else if defined (__APPLE__)
5865 static const char *__crashreporter_info__ = 0;
5966 asm(".desc ___crashreporter_info__, 0x10");
6067 #endif