X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9c0304f908af9fe113f015e8fce41fd4b69bb982..d4acfcad1ce01a174dea2d855443fa2e82ff5d5c:/configure.ac 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 ##