|
|
@ -127,7 +127,7 @@ AC_CHECK_HEADERS(unistd.h fcntl.h, [have_exec=yes]) |
|
|
|
AC_CHECK_HEADER(dirent.h, [have_dir=yes]) |
|
|
|
AC_CHECK_HEADER(dirent.h, [have_dir=yes]) |
|
|
|
|
|
|
|
|
|
|
|
# solaris? |
|
|
|
# solaris? |
|
|
|
AC_CHECK_HEADER(sys/old_procfs.h, [AM_CPPFLAGS="$AM_CPPFLAGS -D__solaris__"]) |
|
|
|
AC_CHECK_HEADER(sys/old_procfs.h, [AM_CPPFLAGS=-D__solaris__]) |
|
|
|
|
|
|
|
|
|
|
|
# Arguments |
|
|
|
# Arguments |
|
|
|
AM_MAINTAINER_MODE |
|
|
|
AM_MAINTAINER_MODE |
|
|
@ -197,22 +197,17 @@ if test "$have_stacktrace" = "yes"; then |
|
|
|
# } bug |
|
|
|
# } bug |
|
|
|
AC_CHECK_HEADER([demangle.h], |
|
|
|
AC_CHECK_HEADER([demangle.h], |
|
|
|
[AC_DEFINE([HAVE_DEMANGLE_H])], |
|
|
|
[AC_DEFINE([HAVE_DEMANGLE_H])], |
|
|
|
[AC_CHECK_HEADER([libcwd/demangle.h], |
|
|
|
[AC_MSG_WARN([Header "demangle.h" from the binutils not found! |
|
|
|
[AC_DEFINE([HAVE_DEMANGLE_H]) |
|
|
|
|
|
|
|
AM_CPPFLAGS="$AM_CPPFLAGS -I/usr/include/libcwd"], |
|
|
|
|
|
|
|
[AC_MSG_WARN( |
|
|
|
|
|
|
|
[Header "demangle.h" from the binutils not found! |
|
|
|
|
|
|
|
- unfortunately, the bintils do not install this header |
|
|
|
- unfortunately, the bintils do not install this header |
|
|
|
(even though they should) |
|
|
|
(even though they should) |
|
|
|
- if available, install package libcwd (Ubuntu since 13.04 Trusty) |
|
|
|
|
|
|
|
- the required symbols are now declared in stacktrace.cxx according to my |
|
|
|
- the required symbols are now declared in stacktrace.cxx according to my |
|
|
|
own binutils version (binutils-2.16.1) it may or may not be compatible to |
|
|
|
own binutils version (binutils-2.16.1) it may or may not be compatible to |
|
|
|
yours])])]) |
|
|
|
yours])]) |
|
|
|
AC_SEARCH_LIBS(cplus_demangle, [demangle iberty_pic iberty cwd], |
|
|
|
AC_SEARCH_LIBS(cplus_demangle, [demangle iberty_pic iberty], |
|
|
|
[AC_MSG_RESULT([OK, found cplus_demangle])], |
|
|
|
[AC_MSG_RESULT([OK, found cplus_demangle])], |
|
|
|
[AC_MSG_ERROR([Function cplus_demangle not found! |
|
|
|
[AC_MSG_ERROR([Function cplus_demangle not found! |
|
|
|
- I looked in libdemangle, libiberty and libcwd |
|
|
|
- I looked in libdemangle and libiberty |
|
|
|
- Try "ls -l /usr/lib/libdemangle* /usr/lib/libiberty* /usr/lib/libcwd*" |
|
|
|
- Try "ls -l /usr/lib/libdemangle* /usr/lib/libiberty*" |
|
|
|
- is one of them installed? |
|
|
|
- is one of them installed? |
|
|
|
- If yes, try: "nm <filename> | grep cplus_demangle" |
|
|
|
- If yes, try: "nm <filename> | grep cplus_demangle" |
|
|
|
-> is the symbol defined? |
|
|
|
-> is the symbol defined? |
|
|
@ -307,8 +302,6 @@ AC_SUBST(PACKAGENAME) |
|
|
|
AC_SUBST(AM_CXXFLAGS) |
|
|
|
AC_SUBST(AM_CXXFLAGS) |
|
|
|
AC_SUBST(AM_CPPFLAGS) |
|
|
|
AC_SUBST(AM_CPPFLAGS) |
|
|
|
AC_SUBST(LIBS) |
|
|
|
AC_SUBST(LIBS) |
|
|
|
DISTCHECK_CONFIGURE_FLAGS="$(env)" |
|
|
|
|
|
|
|
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# create output |
|
|
|
# create output |
|
|
|
AC_OUTPUT |
|
|
|
AC_OUTPUT |
|
|
|