diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-19 22:57:53 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-19 22:57:53 +0000 |
commit | 837eabffe49342d4a20813996e1f621b09ab103e (patch) | |
tree | b1949689ab7e790238a76412db253ed63c9db39c /libbacktrace/configure | |
parent | e7583cee909386b8746bbd9f2e5066fffed1f2d4 (diff) | |
download | gcc-837eabffe49342d4a20813996e1f621b09ab103e.tar.gz |
* configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
as a target library.
* configure: Rebuild.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191503 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/configure')
-rwxr-xr-x | libbacktrace/configure | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libbacktrace/configure b/libbacktrace/configure index bbd5d1182d3..a57b51b2951 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -11734,6 +11734,7 @@ fi +if test -n "${with_target_subdir}"; then # Check whether --with-system-libunwind was given. @@ -11770,6 +11771,20 @@ $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h fi +else + ac_fn_c_check_func "$LINENO" "_Unwind_GetIPInfo" "ac_cv_func__Unwind_GetIPInfo" +if test "x$ac_cv_func__Unwind_GetIPInfo" = x""yes; then : + have_unwind_getipinfo=yes +else + have_unwind_getipinfo=no +fi + + if test "$have_unwind_getipinfo" = "yes"; then + +$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h + + fi +fi # When building as a target library, shared libraries may want to link # this in. We don't want to provide another shared library to |