aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 4 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index c392c3044..a4abe0f9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -366,16 +366,10 @@ AC_MSG_RESULT([couldn't autodetect, assuming yes])
dnl check if mozilla's stack walker is accessible
-AC_MSG_CHECKING([for DumpStackToFile])
-
-AC_LINK_IFELSE(
- AC_LANG_PROGRAM(
- [[#include <stdio.h>]],
- [[extern void _Z15DumpStackToFileP8_IO_FILE (FILE *f);]]),
- [AC_DEFINE([HAVE_DUMPSTACKTOFILE], [1], [Define if DumpStackToFile is found]) result=yes],
- [result=no])
-
-AC_MSG_RESULT([$result])
+AC_CHECK_LIB([xpcom],[_Z15DumpStackToFileP8_IO_FILE],
+ [AC_DEFINE([HAVE_DUMPSTACKTOFILE], [1], [Define if DumpStackToFile is available]) result=yes],
+ [result=no],
+ [`pkg-config --libs $MOZILLA-xpcom`])
dnl restore flags
CXXFLAGS=$_SAVE_CXXFLAGS