From: mquinson Date: Fri, 7 Apr 2006 13:36:50 +0000 (+0000) Subject: check whether what we need to display neat backtraces is here or not X-Git-Tag: v3.3~3256 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b0e2569a31f82b42409bc6d6f3fa0bf01e93b906?ds=sidebyside check whether what we need to display neat backtraces is here or not git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2102 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/configure.ac b/configure.ac index 6659638c23..077635847b 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,8 @@ AC_CHECK_HEADERS([sys/socket.h \ AC_CHECK_FUNCS([gettimeofday usleep \ getdtablesize \ sysconf\ - readv]) + readv\ + popen]) # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/) AC_FUNC_SNPRINTF @@ -233,6 +234,12 @@ then fi fi +# Can we extract really usable backtraces? (also need the popen function) +AC_PATH_PROG(ADDR2LINE, addr2line) +if test x$ADDR2LINE != x ; then + AC_DEFINE_UNQUOTED(ADDR2LINE,"$ADDR2LINE",[Path to the addr2line tool]) +fi + ################### ## Makes the output ##