mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Two things: Fix testcase to use extern - otherwise the link will always
succeed. Also make the testcase clearer as to what we're doing and emit a checking notification to the log. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121101 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1325,13 +1325,21 @@ dnl Try to find Darwin specific crash reporting libraries.
|
|||||||
AC_CHECK_HEADERS([CrashReporterClient.h])
|
AC_CHECK_HEADERS([CrashReporterClient.h])
|
||||||
|
|
||||||
dnl Try to find Darwin specific crash reporting global.
|
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_CHECKING([__crashreporter_info__])
|
||||||
AC_MSG_RESULT($darwin_crashreport)
|
AC_LINK_IFELSE(
|
||||||
if test "x$darwin_crashreport = xyes"
|
AC_LANG_SOURCE(
|
||||||
then
|
[[extern const char *__crashreporter_info__;
|
||||||
AC_DEFINE([HAVE_CRASHREPORTER_INFO],[1],
|
int main() {
|
||||||
[Define if __crashreporter_info__ exists.])
|
__crashreporter_info__ = "test";
|
||||||
fi
|
return 0;
|
||||||
|
}
|
||||||
|
]]),
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
AC_DEFINE(HAVE_CRASHREPORTER_INFO, 1, Can use __crashreporter_info__),
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
AC_DEFINE(HAVE_CRASHREPORTER_INFO, 0,
|
||||||
|
Define if __crashreporter_info__ exists.))
|
||||||
|
|
||||||
dnl===-----------------------------------------------------------------------===
|
dnl===-----------------------------------------------------------------------===
|
||||||
dnl===
|
dnl===
|
||||||
dnl=== SECTION 7: Check for types and structures
|
dnl=== SECTION 7: Check for types and structures
|
||||||
|
45
configure
vendored
45
configure
vendored
@@ -17419,20 +17419,20 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
|
||||||
|
echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
/* confdefs.h. */
|
/* confdefs.h. */
|
||||||
_ACEOF
|
_ACEOF
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
const char *__crashreporter_info__;
|
extern const char *__crashreporter_info__;
|
||||||
int
|
int main() {
|
||||||
main ()
|
__crashreporter_info__ = "test";
|
||||||
{
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
_ACEOF
|
||||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
if { (ac_try="$ac_link"
|
if { (ac_try="$ac_link"
|
||||||
@@ -17468,27 +17468,30 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|||||||
ac_status=$?
|
ac_status=$?
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); }; }; then
|
(exit $ac_status); }; }; then
|
||||||
darwin_crashreport = yes
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
||||||
else
|
echo "${ECHO_T}yes" >&6; }
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
darwin_crashreport = no
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
{ echo "$as_me:$LINENO: result: $darwin_crashreport" >&5
|
|
||||||
echo "${ECHO_T}$darwin_crashreport" >&6; }
|
|
||||||
if test "x$darwin_crashreport = xyes"
|
|
||||||
then
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define HAVE_CRASHREPORTER_INFO 1
|
#define HAVE_CRASHREPORTER_INFO 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
{ echo "$as_me:$LINENO: result: no" >&5
|
||||||
|
echo "${ECHO_T}no" >&6; }
|
||||||
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define HAVE_CRASHREPORTER_INFO 0
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
|
{ echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
|
||||||
|
Reference in New Issue
Block a user